PDA

View Full Version : exceptions for user-group in postbit_legacy


SnickersTK
01-07-2006, 07:33 PM
Hi,

I want to make this code in postbit legacy but I don't have the knowledge to make it into a real working code.


If confition = usergroup id is 1 , 2 ,7
<div></div>

else:

<div>something</div>

I am trying to make a code, so if your the usergroup id number I have written it "something" wont show up, but if your not mentioned it will

Thanks :)

Reeve of shinra
01-08-2006, 06:31 AM
This should work iirc.


<if condition="$bbuserinfo[usergroupid]==1,2,7>

Stuff goes here

<else />

something else goes here

</if>

SnickersTK
01-08-2006, 05:31 PM
It doesn't seem to work :(

When I add the code in postbit legacy and press submit it works for ever, never gets done with the progress (keeps loading)

Any other kind of change in postbit legacy works right away, press submit and it will change page and change would be done

SnickersTK
01-10-2006, 10:07 AM
help?? please...

Reeve of shinra
01-11-2006, 01:25 AM
Try this (and thank Jake Bunce if it works lol)


<if condition="is_member_of($bbuserinfo, X, Y, Z)">

CODE THAT DISPLAYS THE POST

<else />

MESSAGE THAT THEY MUST WAIT

</if>

SnickersTK
01-11-2006, 06:25 AM
So is that username numbers I have to replace x,y,z with or is it usergroup number?