The Arcive of vBulletin Modifications Site. |
|
if statemeny or ? Details »»
|
|||||||||||||||||||||||||
If I wanted to put another fieldset in the arcade skin,
but only have Admins see it how would I go about doing that.. ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
<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.
|
|
#3
|
||||
|
||||
|
Quote:
Thanks I tried it but it doesn't work.......... on the skin_Arcade.php |
|
#4
|
||||
|
||||
|
<if condition="is_member_of($bbuserinfo, 6)">
fieldset info </if> |
|
#5
|
||||
|
||||
|
That would make sense, as it isn't in a post after all... And no need for the array either. Late night! Thanks Boofo.
|
|
#6
|
||||
|
||||
|
Tried that it still shows up when I log out, Heres what I have.. Code:
<if condition="is_member_of($bbuserinfo, 6)"> <fieldset> <legend><b>Admin Game Sorting</b></legend> <center><span class="smallfont"> Admin Game Sorting, ( <a href="http://www.XXXXX.com/XXXX/index.php" target="_blank">Here</a> ) <br /> <br /> </span></center> </fieldset> </if> this is in the (ibproarcade) arcade.php before Code:
<fieldset>
<legend><b>{$ibforums->lang['gamebox_bestever']}</b></legend>
<center><span class="smallfont">
{$top['name']}
<br />
{$top['score']}</span></center>
</fieldset>
|
|
#7
|
||||
|
||||
|
Where are you using this code exactly?
|
|
#8
|
||||
|
||||
|
Quote:
I thought this would give it away....
|
|
#9
|
||||
|
||||
|
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?
|
|
#10
|
||||
|
||||
|
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?
$newgame = "";
if( $the_game['added'] > $time && $this->arcade->settings['show_new'] )
{
$this->arcade->links['click'] .= " <img src='./arcade/images/new.gif' title='New' alt='{$ibforums->lang['newgame_star']}' />";
$newgame = "<img src='./arcade/images/new.gif' title='New' alt='{$ibforums->lang['newgame_star']}' />";
}
Code:
$sorting = "";
if( !$this->user['is_mod'] && !$this->user['is_admin'] )
{
$this->arcade->links['click'] .= "<a href='admincp/arcade.php?cat=0'>".Admin Game Sorting."</a>";
$sorting = "<a href='admincp/arcade.php?cat=0'>".Admin Game Sorting."</a>";
}
Then find: Code:
$this->output .= $this->html->row($the_game,$gamesplit,$top,$pbesttext,$this->arcade->links,$rowcol,$rating,$actualtop,$newgame,$stylecolumns);
$game_counter++;
}
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> <legend><b>Sorting</b></legend> <center><span class="smallfont"> $sorting</span></center> </fieldset>
|
![]() |
|
|