Community Support Forums — WordPress® ( Users Helping Users ) — 2011-06-28T15:38:38-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=10246 2011-06-28T15:38:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21905#p21905 <![CDATA[Re: Simple conditionals don't work -- error]]>
I'm glad you found the problem and you now can read loggede properly. Just kidding: logged_in. :)

Statistics: Posted by Cristián Lávaque — June 28th, 2011, 3:38 pm


]]>
2011-06-28T15:28:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21902#p21902 <![CDATA[Re: Simple conditionals don't work -- error]]> (plugin is called Binnen-I-be-gone and supposed to only delete /in as this is an Austrian incorrect writing annoyance of gendering words (e.g. ProfessorInnen instead of the correct Professoren)

Statistics: Posted by openmtbmap — June 28th, 2011, 3:28 pm


]]>
2011-06-28T15:21:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21900#p21900 <![CDATA[Re: Simple conditionals don't work -- error]]> Image

Image

Uploaded with ImageShack.us

Statistics: Posted by openmtbmap — June 28th, 2011, 3:21 pm


]]>
2011-06-28T15:06:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21897#p21897 <![CDATA[Re: Simple conditionals don't work -- error]]> Statistics: Posted by Cristián Lávaque — June 28th, 2011, 3:06 pm


]]>
2011-06-28T14:30:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21894#p21894 <![CDATA[Re: Simple conditionals don't work -- error]]>
Chrome and Internet Explorer 8 do not show this problem for me. Just Firefox 4 and 5 (well have no more installation of Firefox 3 so cannot tell).

Statistics: Posted by openmtbmap — June 28th, 2011, 2:30 pm


]]>
2011-06-28T14:22:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21890#p21890 <![CDATA[Re: Simple conditionals don't work -- error]]>
Note to others with this problem: If the text formatting is included when copy/pasting the code examples from the documentation to the WP editor, then go to the HTML tab of the editor and paste it there.

Statistics: Posted by Cristián Lávaque — June 28th, 2011, 2:22 pm


]]>
2011-06-28T04:14:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21872#p21872 <![CDATA[Re: Simple conditionals don't work -- error]]>
1. you cannot copy from the examples in the documentation (or better you may but only with a "copy plain text" function).
2. The examples are somehow output incorrect (loggede instead of logged_in) - so one has to look into sc_if_conds_in.inc.php to find out what the real function is called

-- Overall not userfriendly at all if no unformatted and correct examples for the code exist (and tell user to use source or html view). If this is not possible in the s2member options page, then drop the examples completly or put a warning to not copy them.

P.S. if simply copying over (also copying over to source code view will break things as missing operands like </p> may crash a novice user).

P.S.S.
This is what happens when you simply copy in the expample code (of course this won't work):
<p>[/s2If]</p>
<p><br />
<code><span style="color: #000000"><span style="color:#164A61;">[s2If&nbsp;is_user_loggede()]</span><br />
&nbsp;&nbsp;&nbsp;&nbsp;Content&nbsp;for&nbsp;anyone&nbsp;that&nbsp;is&nbsp;logged&nbsp;in,&nbsp;regardless&nbsp;of&nbsp;their&nbsp;Membership&nbsp;Level.<br />
<span style="color:#164A61;">[/s2If]</span></span></code></p>

P.S.S.S ****, I think Firefox or this forum software does not allow showing logged _ in in one word. It is ouput as loggede. I entered logged _ in (without spaces) and after submitting it, it shows as loggede instead. Therefore I also could not see any difference in the above example.

Statistics: Posted by openmtbmap — June 28th, 2011, 4:14 am


]]>
2011-06-23T18:26:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21535#p21535 <![CDATA[Re: Simple conditionals don't work -- error]]>
is_user_loggede
is_user_logged_in

Statistics: Posted by Cristián Lávaque — June 23rd, 2011, 6:26 pm


]]>
2011-06-23T16:11:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21524#p21524 <![CDATA[Re: Simple conditionals don't work -- error]]>
Or is there a difference on the "". Those are really dangerous, as they are used differently according to language syntac on your system. So it's very likely a wrong one is used and not both accepted (even copy / paste can go wrong). Just like point and comma switched English/German in numbers and some other stuff.

Statistics: Posted by openmtbmap — June 23rd, 2011, 4:11 pm


]]>
2011-06-22T19:09:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21461#p21461 <![CDATA[Re: Simple conditionals don't work -- error]]>
From the errors, I can tell you that the first two show the function written wrong: "is_user_loggede" instead of "is_user_logged_in".

Statistics: Posted by Cristián Lávaque — June 22nd, 2011, 7:09 pm


]]>
2011-06-22T13:59:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21437#p21437 <![CDATA[Re: Simple conditionals don't work -- error]]> Statistics: Posted by BobTabor — June 22nd, 2011, 1:59 pm


]]>
2011-06-22T06:19:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10246&p=21417#p21417 <![CDATA[Simple conditionals don't work -- error]]>
(all text that is inside the conditional is not displayed to anyone and dropped - logged in or logged out).

I'ld really love to have working simple conditionals.

Warning: call_user_func() expects parameter 1 to be a valid callback, function 'is_user_loggede' not found or invalid function name in /srv/www/htdocs/wp-content/plugins/s2member/includes/classes/sc-if-conds-in.inc.php on line 125

Warning: call_user_func() expects parameter 1 to be a valid callback, function ' !is_user_loggede' not found or invalid function name in /srv/www/htdocs/wp-content/plugins/s2member/includes/classes/sc-if-conds-in.inc.php on line 125


Or
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ' current_user_can' not found or invalid function name in /srv/www/htdocs/wp-content/plugins/s2member/includes/classes/sc-if-conds-in.inc.php on line 138

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ' !current_user_can' not found or invalid function name in /srv/www/htdocs/wp-content/plugins/s2member/includes/classes/sc-if-conds-in.inc.php on line 138

Statistics: Posted by openmtbmap — June 22nd, 2011, 6:19 am


]]>