PDA

View Full Version : Looking for new code for IF command


BadGuy
12-20-2011, 11:45 AM
Hi

I was using this code in vb4

<vb:if condition="($loggedin['usergroupid'] == 3 || $loggedin['usergroupid'] == 4 )"

But now in new version's this code is not working any more , what is the right code for it ?

Regards

kh99
12-20-2011, 01:06 PM
Where were you using that code? Which template?

BadGuy
12-20-2011, 01:18 PM
For this one : forumhome_loggedinuser

<vb:if condition="($loggedin['usergroupid'] == 3 || $loggedin['usergroupid'] == 4 || $loggedin['usergroupid'] == 28 || $loggedin['usergroupid'] == 64)">

I think this one is not working anymore :
condition="($loggedin['usergroupid']

kh99
12-20-2011, 01:28 PM
It looks like that template isn't used any more in the latest version. It was merged in to FORUMHOME as a <vb:each ...> loop. But if you find that loop in the FORUMHOME template, you should be able to put in something like <vb:if condition="$loggedin[usergroupid] == 3... etc.

BadGuy
12-20-2011, 02:52 PM
Thanks

Problem fixed :)