PDA

View Full Version : if statemeny or ?


KatieG
08 Apr 2008, 18:23
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. :)

KatieG
18 Apr 2008, 07:20
<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

Boofo
18 Apr 2008, 07:30
<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.

KatieG
18 Apr 2008, 16:45
<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.
---------------

Boofo
18 Apr 2008, 18:32
Where are you using this code exactly?

KatieG
20 Apr 2008, 07:25
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.... ;)

Boofo
20 Apr 2008, 17:46
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...

:)

KatieG
24 Apr 2008, 19:36
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..

KatieG
07 May 2008, 21:59
Have you had any luck with this stangger5