Back to vBulletin 3.5 Template Modifications

v3Arcade Limit games to usergroups
Mod Version: 0.1, by pross

This modification is in the archives.
vB Version: 3.5.3 Rating: (0 vote - 0 average) Installs: 3
Released: 21 Feb 2006 Last Update: Never Downloads: 0
Not Supported Template Edits Is in Beta Stage  

According to the v3Arcade forums this MOD was impossible, but we really needed it on our forums, so i figured it out.
Firstly, we wanted ALL our games in a premium category except for 5 or 6 which are in a 'Free' category.
Its not perfect and im SURE it could be done with an array (anybody?)

Things Needed:
vBulletin 3.5.X
v3Arcade 1.0.X

Templates To Edit: 1
Install Time: 5 mins

OK assuming you have 5 free games and all the rest you want restricted to usergroups 5 and 6 (admins and premium on our board)

Open arcade_play template

find:
Code:
$flashcode
replace with
Code:
<if condition="$game[gameid] ==5 OR $game[gameid] ==4 OR $game[gameid] ==3 OR $game[gameid] ==2 OR $game[gameid] ==1">
$flashcode
<else />
<if condition="is_member_of($bbuserinfo, 5, 6)">
$flashcode
<else />
You need to subscribe to play this game!!
</if>
</if>
So basically you just add the gameid of the games that are FREE to the first condition and the usergroup id's that can play any game to the second.

Hope someone else finds this useful.

Download

No files for download.

Screenshots

 


vblts.ru supports vBulletin®, 2022-2024