View Full Version : Number of v3 Arcade Games in vBadvanced Stats Block
dsboyce8624
06-15-2005, 01:02 PM
I got the idea for this from PaulM's hack that puts this on FORUMHOME here (http://www.vbulletin.org/forum/showthread.php?t=75320).
This basically adds a line to the vBa stats block that shows the current number of installed v3 Arcade Games.
1 file edit
1 template edit
1 variable added to vBa CMSP Default Settings
This is very easy and should take about 5 minutes.
Screenshots attached.
Nachtfalke
08-13-2006, 06:10 AM
The above code did not work for me. After trying around a bit I got it working with the vb 3.6 and the actual Versions of vbadvanced and IbPro. Here is what I have done:
in global.php serarch:
$vbphrase['total_x_nav_compiled'] = construct_phrase($vbphrase['total_x_nav'], $vbulletin->userinfo['pmtotal']);
under it add:
// Arcade Game Count
$result_allgames = $db->query("SELECT * FROM " . TABLE_PREFIX . "games_list");
$gamecount = $db->num_rows($result_allgames);
edit the template adv_portal_stats. Search for:
[username]</a> ($topposter[posts])<br />
and add under it:
Games: $gamecount<br />
At last put in the global variables outputbox (Vbadvanced settings) the variablename. Simply add gamecount to the box.
All done. See screenie :) Hope that helps someone, as I am not a coder. Full credits go to the authors, not to me :p
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.