![]() |
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: |
<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. :) |
Quote:
Thanks I tried it but it doesn't work.......... on the skin_Arcade.php |
<if condition="is_member_of($bbuserinfo, 6)">
fieldset info </if> |
That would make sense, as it isn't in a post after all... And no need for the array either. Late night! Thanks Boofo.
|
Quote:
Tried that it still shows up when I log out, Heres what I have.. Code:
<if condition="is_member_of($bbuserinfo, 6)"> this is in the (ibproarcade) arcade.php before Code:
<fieldset> |
Where are you using this code exactly?
|
Quote:
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?
|
I havent tried it but should get you going in the right way..
You need to edit the main arcade.php file.. Find: Code:
//is game new? Code:
$sorting = ""; Then find: Code:
$this->output .= $this->html->row($the_game,$gamesplit,$top,$pbesttext,$this->arcade->links,$rowcol,$rating,$actualtop,$newgame,$stylecolumns); Code:
,$sorting Now edit the skin.. Find: Code:
function row($entry,$gamesplit,$top,$pbest,$links,$rowcol,$rating,$actualtop,$newgame,$stylecolumns) Code:
,$sorting Now find,, Code:
{$entry['ibprostyle_info2']} Code:
[<fieldset> :) |
I get
Parse error: syntax error, unexpected T_STRING in XXXXXXX/arcade.php on line 2515 |
Ok,,I see some problems..
I`ll see if i can fix it up.. |
Have you had any luck with this stangger5
|
All times are GMT. The time now is 08:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|