Log in

View Full Version : v3Arcade Limit games to usergroups


pross
02-20-2006, 10:00 PM
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:
$flashcode
replace with

<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.

GoTTi
02-21-2006, 02:32 AM
FINALLY...i will be sure to test this out

Hornstar
02-21-2006, 04:08 AM
I think this is going to be default in the next release which should be in about 2 or 3 weeks. but nice work and thanks for this.

hugh_
02-21-2006, 08:04 AM
Nice work, here's hoping it's indeed in the next release...

hugh

Floris
02-21-2006, 10:08 AM
This is a must! This helps you get users going from starter to high end and become bigger posters on the forum just to play more games.

I wish this was a default feature! tnx for sharing.