Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-06T22:10:26-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15799 2011-11-06T22:10:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=52425#p52425 <![CDATA[Re: shortcodes for partial viewing of content]]>

Statistics: Posted by Cristián Lávaque — November 6th, 2011, 10:10 pm


]]>
2011-11-06T12:43:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=52387#p52387 <![CDATA[Re: shortcodes for partial viewing of content]]>

Statistics: Posted by tarotelements — November 6th, 2011, 12:43 pm


]]>
2011-11-05T22:20:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=52337#p52337 <![CDATA[Re: shortcodes for partial viewing of content]]>
Code:
Free content first.

[s2If !current_user_can(access_s2member_level0)]
The user is not logged in, ask him to register and/or log in.
http://yoursite.com/wp-login.php
http://yoursite.com/wp-login.php?action=register
[/s2If]

[s2If current_user_can(access_s2member_level0)]
Content for logged in users.
[/s2If]

[s2If !current_user_can(access_s2member_level1)]
The user can't access Level 1 content. Button to upgrade.
[/s2If]

[s2If current_user_can(access_s2member_level1)]
Content for users at Level 1 or higher.
[/s2If]


Does that help?

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


]]>
2011-11-05T16:59:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51099#p51099 <![CDATA[Re: shortcodes for partial viewing of content]]>

You're welcome, anything else you need just ask. :)

By the way to buy the Pro version's licenses you can use this link:
http://www.s2member.com/prices/

Statistics: Posted by Eduan — November 5th, 2011, 4:59 pm


]]>
2011-11-05T16:58:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51098#p51098 <![CDATA[Re: shortcodes for partial viewing of content]]>
Thanks for your help tonight, Eduan - you're been great! :D

Statistics: Posted by tarotelements — November 5th, 2011, 4:58 pm


]]>
2011-11-05T16:53:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51097#p51097 <![CDATA[Re: shortcodes for partial viewing of content]]> Statistics: Posted by Eduan — November 5th, 2011, 4:53 pm


]]>
2011-11-05T16:52:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51096#p51096 <![CDATA[Re: shortcodes for partial viewing of content]]>
Can I just ask your opinion on what's the best to use, the shortcodes or the php with the plugin? Are there any performance differences etc?

Statistics: Posted by tarotelements — November 5th, 2011, 4:52 pm


]]>
2011-11-05T16:40:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51095#p51095 <![CDATA[Re: shortcodes for partial viewing of content]]>
If you can't afford it the best you can do, at least from what I know, is put this link for them, maybe with an image:
http://www.yoursite.com/wp-login.php?action=register.

Hope this helps. :)

Statistics: Posted by Eduan — November 5th, 2011, 4:40 pm


]]>
2011-11-05T16:35:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51094#p51094 <![CDATA[Re: shortcodes for partial viewing of content]]> Statistics: Posted by tarotelements — November 5th, 2011, 4:35 pm


]]>
2011-11-05T16:27:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51092#p51092 <![CDATA[Re: shortcodes for partial viewing of content]]> Statistics: Posted by Eduan — November 5th, 2011, 4:27 pm


]]>
2011-11-05T16:25:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51091#p51091 <![CDATA[Re: shortcodes for partial viewing of content]]>
That's great, thank you. However, after the free content, there's no login or register options that follow. Do I have to add some other shortcode or link?

Statistics: Posted by tarotelements — November 5th, 2011, 4:25 pm


]]>
2011-11-05T16:10:16-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51090#p51090 <![CDATA[Re: shortcodes for partial viewing of content]]>
Code:
[s2If current_user_is(s2member_level0)]
    Some content for Free Subscribers.
[/s2If]

[s2If !current_user_can(access_s2member_level0)]
    Some public content.
[/s2If] 

Or this (you will need the Exec-PHP plugin):
Code:
<?php } else if (current_user_is("s2member_level0")){ ?>
    Some content for Free Subscribers.
<?php } else { ?>
    Some public content.
<?php } ?>

Statistics: Posted by Eduan — November 5th, 2011, 4:10 pm


]]>
2011-11-05T16:09:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51089#p51089 <![CDATA[Re: shortcodes for partial viewing of content]]> Statistics: Posted by tarotelements — November 5th, 2011, 4:09 pm


]]>
2011-11-05T16:04:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51088#p51088 <![CDATA[Re: shortcodes for partial viewing of content]]>

Statistics: Posted by tarotelements — November 5th, 2011, 4:04 pm


]]>
2011-11-05T16:00:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51087#p51087 <![CDATA[Re: shortcodes for partial viewing of content]]>
Also what content levels are you offering.

Statistics: Posted by Eduan — November 5th, 2011, 4:00 pm


]]>
2011-11-05T14:57:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51085#p51085 <![CDATA[Re: shortcodes for partial viewing of content]]>
The shortcodes all seem to require a person to be logged in to see content, even when it's being made freely available. Is it possible to put the shortcode below the free non-subscriber content and use one that then asks for login to continue?

Statistics: Posted by tarotelements — November 5th, 2011, 2:57 pm


]]>
2011-11-05T14:13:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51084#p51084 <![CDATA[Re: shortcodes for partial viewing of content]]>

Statistics: Posted by Eduan — November 5th, 2011, 2:13 pm


]]>
2011-11-05T13:18:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51083#p51083 <![CDATA[Re: shortcodes for partial viewing of content]]>

Statistics: Posted by tarotelements — November 5th, 2011, 1:18 pm


]]>
2011-11-05T13:04:53-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51082#p51082 <![CDATA[Re: shortcodes for partial viewing of content]]> well anything else you need just ask.

Statistics: Posted by Eduan — November 5th, 2011, 1:04 pm


]]>
2011-11-05T12:50:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51081#p51081 <![CDATA[Re: shortcodes for partial viewing of content]]>

Statistics: Posted by tarotelements — November 5th, 2011, 12:50 pm


]]>
2011-11-05T11:58:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51080#p51080 <![CDATA[Re: shortcodes for partial viewing of content]]> WP Admin -> s2Member -> API / Scripting -> Simple/Shortcode Conditionals and see if you find what you need there.

For a more advanced way try this couple of videos:
http://www.s2member.com/api-scripting-overview-video/
http://www.s2member.com/advanced-conditionals-video/

You can find everything under WP Admin -> s2Member -> API / Scripting.

Hope this helps. :)

Statistics: Posted by Eduan — November 5th, 2011, 11:58 am


]]>
2011-11-05T11:48:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15799&p=51079#p51079 <![CDATA[shortcodes for partial viewing of content]]>
Does s2member provide shortcodes that can fulfill that?

Many thanks,

Catherine

Statistics: Posted by tarotelements — November 5th, 2011, 11:48 am


]]>