Community Support Forums — WordPress® ( Users Helping Users ) — 2011-10-12T15:22:23-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15433 2011-10-12T15:22:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15433&p=46705#p46705 <![CDATA[Re: Advanced content hide/reveal]]>

Code:
<?php if (s2member_registration_time() > && (current_user_can(access_s2member_ccap_life) || current_user_can(access_s2member_ccap_lifeTwo))) { ?>


Let me know if this helps.

Statistics: Posted by Cristián Lávaque — October 12th, 2011, 3:22 pm


]]>
2011-10-11T13:45:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15433&p=45377#p45377 <![CDATA[Re: Advanced content hide/reveal]]>
In other words,
Code:
<?php if (s2member_registration_time() > 0 
     
&& current_user_can(access_s2member_ccap_life)) { ?>

will affect ccap "life" but not ccap "lifeTwo"
whereas
Code:
<?php if (s2member_registration_time() > 0 
    
&& current_user_can(access_s2member_ccap_lifeTwo)) { ?>

will affect ccap "lifeTwo" but not ccap "life"

Even though the member is always on level 0...

So I can drip them successively to the same member?

(weird kind of beginner at coding here, yes, apologies for what may be a very obvious statement)

Statistics: Posted by surochek — October 11th, 2011, 1:45 pm


]]>
2011-10-11T12:28:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15433&p=45353#p45353 <![CDATA[Re: Advanced content hide/reveal]]>

Statistics: Posted by Cristián Lávaque — October 11th, 2011, 12:28 pm


]]>
2011-10-09T15:16:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15433&p=45207#p45207 <![CDATA[Re: Advanced content hide/reveal]]> Statistics: Posted by surochek — October 9th, 2011, 3:16 pm


]]>
2011-10-06T10:32:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15433&p=44967#p44967 <![CDATA[Re: Advanced content hide/reveal]]>
Code:

    <?php if (s2member_registration_time() > 0 && current_user_can(access_s2member_ccap_life)) { ?>
    This will be displayed to all Members that have registered at some point.
    <?php } ?>


Then, for successive days:
Code:

    <?php if (s2member_registration_time() > 1 && current_user_can(access_s2member_ccap_life)) { ?>
    This will be displayed to all Members that have registered at some point.
    <?php } elseif (s2member_registration_time() < 1 && current_user_can(access_s2member_ccap_life)) { ?>
    Please be patient. Your next lesson will be available in due time.
    <?php } else { ?>
    Please register for this course to see the lessons.
    <?php } ?>

Statistics: Posted by surochek — October 6th, 2011, 10:32 am


]]>
2011-10-06T04:23:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15433&p=44944#p44944 <![CDATA[Re: Advanced content hide/reveal]]> WP Admin -> s2Member -> API / Scripting -> s2Member Content Dripping

surocheck, let me know if this also gives you the error:

Code:
<?php if (s2member_registration_time() > 0 && current_user_can(access_s2member_ccap_life)) { ?>
This will be displayed to all Members that have registered at some point.
<?php } elseif (s2member_registration_time() > 0 && !current_user_can(access_s2member_ccap_life)) { ?>
Please be patient. Your next lesson will be available in due time.
<?php } else { ?>
Please register for this course to see the lessons.
<?php } ?>


I'm not sure about the logic, though. You say in the first block that it's displayed to anyone that registered at some point, but you don't mention they need the "life" custom capability too. The second block is for those without the custom capability "life" but the message asks to be patient, but the condition doesn't check for a day later.

Statistics: Posted by Cristián Lávaque — October 6th, 2011, 4:23 am


]]>
2011-10-06T02:47:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15433&p=44935#p44935 <![CDATA[Re: Advanced content hide/reveal]]>

Statistics: Posted by Vahka — October 6th, 2011, 2:47 am


]]>
2011-10-05T21:09:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15433&p=44917#p44917 <![CDATA[Re: Advanced content hide/reveal]]>
Code:
<?php if(s2member_registration_time() > 0 and current_user_can(access_s2member_ccap_life) ){ ?>
        This will be displayed to all Members that have registered at some point.
    <?php } ?>
   <?php elseif (s2member_registration_time()> 0 && !current_user_can(access_s2member_ccap_life) ){ ?>
    Please be patient. Your next lesson will be available in due time.
    <?php } ?>
   <?php else { ?>
    Please register for this course to see the lessons.
<?php } ?>


I get the warning:

Parse error: syntax error, unexpected T_ELSEIF in /home/content/89/8190889/html/wordpress/wp-content/plugins/php-execution-plugin/includes/class.php_execution.php(273) : eval()’d code on line 39

Statistics: Posted by surochek — October 5th, 2011, 9:09 pm


]]>
2011-10-05T16:10:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15433&p=44903#p44903 <![CDATA[Advanced content hide/reveal]]> content hide/reveal function. That means every new registered member can see new content step by step, pending on join date. Have someone experience with this kind of Wordpress application or can s2meber resolve it?

Statistics: Posted by Vahka — October 5th, 2011, 4:10 pm


]]>