Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-22T22:24:53-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14632 2011-08-22T22:24:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14632&p=32650#p32650 <![CDATA[Re: content dripping and custom packages.]]>
By the way, I suggest you don't use spaces in the custom capability's name, use underscores instead: access_s2member_ccap_client_group_a.

Statistics: Posted by Cristián Lávaque — August 22nd, 2011, 10:24 pm


]]>
2011-08-21T15:06:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14632&p=32586#p32586 <![CDATA[Re: content dripping and custom packages.]]>
Code:
/**
 * My Custom Routines.
 */

add_action ("template_redirect""my_custom_capabilites");

function 
my_custom_capabilities ()
     {

    if(
has_tag("client group a") && !current_user_can ("access_s2member_ccap_client group a"))
        {
            
header ("Location: "S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
                         (
access_s2member_ccap_client group a_registration_days >= 7)
                         
drip pages 1,2,3
                         
(access_s2member_ccap_client group a_registration_days >= 14)
                         
drip pages 4,5,6
                         
(access_s2member_ccap_client group a_registration_days >= 21)
            
drip pages 7,8,9
                         
(access_s2member_ccap_client group a_registration_days >= 28)
                         
drip pages 10 
                         
exit ();
        }

    
     } 


is this correct?

Statistics: Posted by twaycaster — August 21st, 2011, 3:06 pm


]]>
2011-08-20T22:03:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14632&p=32544#p32544 <![CDATA[Re: content dripping and custom packages.]]>

Statistics: Posted by Cristián Lávaque — August 20th, 2011, 10:03 pm


]]>
2011-08-20T13:02:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14632&p=32467#p32467 <![CDATA[content dripping and custom packages.]]>
add action template redirect my custom capabilities
function my custom capabilites

if tags music !current user can ccap music
else if s2member current user paid registration days = 7
drop pages 7, 8, 9

else if s2 member current paid registration days = 14
drip pages 10 11 12

else if s2 member current paid regsitration days 21
drip pages 13 14 15

else if s2 member curretn paid reg 28 days
drip pages 16


header location s2members options page url
exit

I hope this makes sense and someone can help me with getting this base figured out .

Statistics: Posted by twaycaster — August 20th, 2011, 1:02 pm


]]>