PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

current_user_can_for_blog function implementation

s2Member Plugin. A Membership plugin for WordPress®.

current_user_can_for_blog function implementation

Postby fitcajun » January 11th, 2012, 12:01 pm

Hey guys,

I’m learning as I go here, and I am having trouble implementing a conditional function on a multisite blog. Here is the error I get:

Fatal error: s2If, unsafe conditional function [ current_user_can_for_blog(1,access_s2member_level2) ] in /data/15/2/81/110/2570110/user/2817683/htdocs/blog1/wp-content/plugins/s2member/includes/classes/sc-if-conds-in.inc.php on line 152

Here is the code on the page:

[s2If current_user_can_for_blog(1,access_s2member_level2) AND current_user_is_not_for_blog(1,s2member_level2)]
For video instructions (3:43), click here (requires an 'Athlete' membership)
[/s2If]

What am I doing wrong?

The code is located on a page on blog 3 and the content I wish to link to is located on blog 1.
User avatar
fitcajun
Registered User
Registered User
 
Posts: 3
Joined: October 17, 2010

Re: current_user_can_for_blog function implementation

Postby Raam Dev » January 13th, 2012, 4:27 pm

Could you try installing the PHP Execution and using the PHP version of the conditional (WP Admin -> s2Member -> API/Scripting -> Advanced/PHP Conditionals) to see if that fixes the problem?
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest

cron