Community Support Forums — WordPress® ( Users Helping Users ) — 2010-12-27T01:19:33-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1357 2010-12-27T01:19:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1357&p=5194#p5194 <![CDATA[Re: Protect Links w/ Shortcode?]]>
Code:

<?php if (current_user_is("s2member_level2")){ ?>
    http://s3.killertuts.com/source_files/23423423423423
<?php } ?>

Statistics: Posted by Cristián Lávaque — December 27th, 2010, 1:19 am


]]>
2010-12-15T10:40:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1357&p=5122#p5122 <![CDATA[Protect Links w/ Shortcode?]]> http://s3.killertuts.com/source_files/2 ... 3450299013 where the last part is different on each page view. Is there a way I can set S2Member to only display such a link when a member is Level 2, for example?

Is the best way to do that to create a rule that looks for the string 'source_files' which should be a constant URI in the links I want to protect? Or, is there a way where I can surround the link with short tags to protect it, like [s2member][level2]http://s3.killertuts.com/source_files/23423423423423[/level2][/s2member]

Statistics: Posted by trentscott1 — December 15th, 2010, 10:40 am


]]>