Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Role Scoper vs 'Event Calendar / Scheduler' compatibility problem

UserPost

8:56 am
February 16, 2011


lmm211

New Member

posts 1

1

Hi,

I've seen a number of previous posts about compatibility problems with the Events Calendar, but i've tried all the fixes suggested there with the 'Events Calendar / Scheduler' plug-in and none of them work.  Removing the pluggable line seems to do the job with allowing Role Scoper to work, but it causes a fatal error in the calendar and I can't find where to put it back in again to get the calendar to work.

Any suggestions?  These are the only two plugins I can find that do exactly what I want.

Any help would be greatly appreciated!

Lynne

1:11 pm
March 11, 2011


Kevin

Admin

posts 2503

2

I would try the following, with the knowledge that it is a custom hack that will need to be reinstated whenever either plugin is updated:

  • Reinstate an unmodified working copy of Events Calendar
  • Use Plugin Organizer to ensure that Role Scoper loads first.
  • Copy user-plug_rs.php into the Events Calendar plugin folder
  • Right above any pluggable.php calls in the Events Calendar code, add this:
    include_once( 'user-plug_rs.php' );
  • Remove this line from role-scoper.php:
    require_once('user-plug_rs.php');

This should work for any plugin which is not also trying to custom-define the wp_set_current_user function. In that case, you would actually need to merge code from the two customized functions.

Let me know how it works out. Please install the current Role Scoper development version before applying this hack because it contains some changes to user-plug_rs.php which you will need later.

Maybe in a future RS version I can eliminate the pluggable.php sensitivity.


About the Agapetry forum

Currently Online:

16 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1249

Posts: 5659

Members:

There are 1261 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