Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Hide a sidebar widget

UserPost

2:34 am
July 23, 2009


dpixl

New Member

posts 1

1

Hi!

I'm using role scoper to exclude a category "Events" so only a definded user group is able to see it after they log in. I'm also using "RS EVENT multiday" plugin on my site as a sidebar widget, which shows the posts in the Category "Events".

My problem is that the "Events" in the sidebar are visible to all users (of course when they click on one of them, they are not directed to the post, but to an error site, if they dont belong to a specific user group).

My question:
Is there a possibility to also hide this widget so that it's only visible for this specific user group?

Thanks for your help and sorry for my bad english!

Regards,
Daniel

4:58 am
August 1, 2009


Kevin

Admin

posts 2503

2

dpixl said:

Hi!

I'm also using "RS EVENT multiday" plugin on my site as a sidebar widget, which shows the posts in the Category "Events".

My problem is that the "Events" in the sidebar are visible to all users (of course when they click on one of them, they are not directed to the post, but to an error site, if they dont belong to a specific user group).

Regards,
Daniel


Daniel, there's nothing wrong with that English! Don't underestimate your progress.

The problem with the RS Event multiday plugin is its direct posts query, which does not allow for any filtering by other plugins. A quick workaround can be achieved by adding one line of code to rs-event-multiday.php:

after:

if(!empty($event_ids) && !empty($event_list))
{
	/*** To store previous dates if we have $group_by_date turned on */
	$previous_date = false;

	/*** Loop through each event */
	foreach($event_list as $event)
	{

add: (after curly brace)

	     // kevinB addition to force observance of Role Scoper-imposed restrictions
	     if ( ! current_user_can( 'read_post', $event->id ) )
		continue;

About the Agapetry forum

Currently Online:

10 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1247

Posts: 5656

Members:

There are 1259 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin