Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-26T22:37:23-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=14633 2011-08-26T22:37:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14633&p=32994#p32994 <![CDATA[Re: spaces on shortcodes?]]>

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


]]>
2011-08-25T23:45:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14633&p=32920#p32920 <![CDATA[Re: spaces on shortcodes?]]>

Statistics: Posted by s2pidkaspr — August 25th, 2011, 11:45 pm


]]>
2011-08-23T02:36:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14633&p=32676#p32676 <![CDATA[Re: spaces on shortcodes?]]> https://wordpress.org/extend/plugins/exec-php/ Just remember to stick to the HTML editor when you use PHP, don't open the Visual editor or it'll mess up your code.

Statistics: Posted by Cristián Lávaque — August 23rd, 2011, 2:36 am


]]>
2011-08-22T23:17:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14633&p=32656#p32656 <![CDATA[Re: spaces on shortcodes?]]> Statistics: Posted by s2pidkaspr — August 22nd, 2011, 11:17 pm


]]>
2011-08-22T22:36:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14633&p=32652#p32652 <![CDATA[Re: spaces on shortcodes?]]>

You can use PHP instead, then.

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


]]>
2011-08-22T00:27:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14633&p=32595#p32595 <![CDATA[Re: spaces on shortcodes?]]> Statistics: Posted by s2pidkaspr — August 22nd, 2011, 12:27 am


]]>
2011-08-21T00:14:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14633&p=32557#p32557 <![CDATA[Re: spaces on shortcodes?]]>
Cristián Lávaque wrote:
If that's the case, then it'd be a problem with the way WordPress parses the shortcodes. Does it still leave the big empty space if you put the shortcodes one right next to the other?

Code:
[s2If current_user_can(access_s2member_level1)]
Some content for Members who are logged in with an s2Member Level >= 1.
[/s2If][s2If !current_user_can(access_s2member_level1)]
Some public content.
[/s2If]



hmmm...weird...when i do that, only the content for members are triggered, and the public content is showing

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

Just like that on the site. Meaning to say, it doesn't do the coding. But when i put it down just like before:

[s2If current_user_can(access_s2member_level1)]
Some content for Members who are logged in with an s2Member Level >= 1.
[/s2If]
[s2If !current_user_can(access_s2member_level1)]
Some public content.
[/s2If]

Both code works but just like I said, it will have some big spaces in there when it shouldn't be.

Statistics: Posted by s2pidkaspr — August 21st, 2011, 12:14 am


]]>
2011-08-20T20:58:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14633&p=32540#p32540 <![CDATA[Re: spaces on shortcodes?]]>
Code:
[s2If current_user_can(access_s2member_level1)]
Some content for Members who are logged in with an s2Member Level >= 1.
[/s2If][s2If !current_user_can(access_s2member_level1)]
Some public content.
[/s2If]

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


]]>
2011-08-20T14:08:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=14633&p=32472#p32472 <![CDATA[spaces on shortcodes?]]>
i'm using s2member on my site. And the php conditionals works fine and so does the shortcodes. But, whenever I put two shortcodes, there is always some big space gap (where the shortcode is there).

For example I write this:

[s2If current_user_can(access_s2member_level1)]
Some content for Members who are logged in with an s2Member Level >= 1.
[/s2If]
[s2If !current_user_can(access_s2member_level1)]
Some public content.
[/s2If]

Those members who are with s2member accounts will NOT see the "Some public content" area. But rather see a big white space as if the shortcode is supposed in there.

While those area for public will NOT see the "Some content for Members" area. But rather see a big white space as if the shortcode is supposed in there.

PHP conditionals is not doing this. If the content is not visible for that user, they won't see a big white space in there. So, i'm wondering, why shortcode is doing this? Anyway to fix this? Thanks

Statistics: Posted by s2pidkaspr — August 20th, 2011, 2:08 pm


]]>