View Full Version : if statemeny or ?
If I wanted to put another fieldset in the arcade skin,
but only have Admins see it how would I go about doing that..:confused:
FleaBag
18 Apr 2008, 00:19
<if condition="is_member_of($post[usergroupid], array(6))">
I'm not sure what the HTML for your fieldset is, as I use v3Arcade - but this is where you'd add that HTML.
</if>
I think this might work? It assumes that 6 is the ID of the usergroup. I'm not 100% if it'll work, but it's what I got from looking at Google. :)
<if condition="is_member_of($post[usergroupid], array(6))">
I'm not sure what the HTML for your fieldset is, as I use v3Arcade - but this is where you'd add that HTML.
</if>
I think this might work? It assumes that 6 is the ID of the usergroup. I'm not 100% if it'll work, but it's what I got from looking at Google. :)
Thanks I tried it but it doesn't work.......... on the skin_Arcade.php
<if condition="is_member_of($bbuserinfo, 6)">
fieldset info
</if>
FleaBag
18 Apr 2008, 14:17
That would make sense, as it isn't in a post after all... And no need for the array either. Late night! Thanks Boofo.
<if condition="is_member_of($bbuserinfo, 6)">
fieldset info
</if>
Tried that it still shows up when I log out,
Heres what I have..
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
this is in the (ibproarcade) arcade.php
before
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Where are you using this code exactly?
Tried that it still shows up when I log out,
Heres what I have..
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
this is in the (ibproarcade) arcade.php
before
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I thought this would give it away.... ;)
Well, I didn't find that code in either one of the arcde.php files, that is why I asked. Maybe a location where the code goes in the file would be better next time?
stangger5
20 Apr 2008, 19:02
I havent tried it but should get you going in the right way..
You need to edit the main arcade.php file..
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and put this code after it,,
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Then find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
put
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
after $stylecolumns..
Now edit the skin..
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and put,
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
after $stylecolumns
Now find,,
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and put this after it,,
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
That should be it...
:)
I get
Parse error: syntax error, unexpected T_STRING in XXXXXXX/arcade.php on line 2515
stangger5
25 Apr 2008, 12:08
Ok,,I see some problems..
I`ll see if i can fix it up..
Have you had any luck with this stangger5
vBulletin® v3.6.12, Copyright ©2000-2009, Jelsoft Enterprises Ltd.