Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-13T16:27:18-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16805 2012-01-13T16:27:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16805&p=60453#p60453 <![CDATA[Re: current_user_can_for_blog function implementation]]> 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?

Statistics: Posted by Raam Dev — January 13th, 2012, 4:27 pm


]]>
2012-01-11T12:01:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16805&p=60208#p60208 <![CDATA[current_user_can_for_blog function implementation]]>
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.

Statistics: Posted by fitcajun — January 11th, 2012, 12:01 pm


]]>