PDA

View Full Version : Complex template conditonals...


AlfonsoC
08-29-2004, 08:57 PM
Is monday and will continue doing some template modifications, one has resisted to me (until now...).

Does anyone can shed some light why this conditional does not work?


<if condition="$bbsuserinfo[ posts]==0 AND $bbsuserinfo[ groupid]==3>
blah, blah, blah...
</if>


What I want to do is create a message in forumhome to display to those all users who are registered users (groupid 3) and their postcount is zero. What I'm doing wrong?

mholtum
08-29-2004, 10:16 PM
Is monday and will continue doing some template modifications, one has resisted to me (until now...).

Does anyone can shed some light why this conditional does not work?


<if condition="$bbsuserinfo[ posts]==0 AND $bbsuserinfo[ groupid]==3>
blah, blah, blah...
</if>


What I want to do is create a message in forumhome to display to those all users who are registered users (groupid 3) and their postcount is zero. What I'm doing wrong?

Try this:

<if condition="$bbuserinfo[usergroupid] == 2 AND $bbuserinfo['posts'] <= 0">


:) See the difference?? It is slight. But even the slightest differences make the ldifference.

Our Sponsors
 

Brian
08-29-2004, 11:19 PM
You have $bbsuserinfo instead of $bbuserinfo, plus you should remove the space after the [ marks. Also, groupid should be usergroupid.