vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 06-15-2005, 12:02 PM
dsboyce8624 dsboyce8624 is offline
Member
 
Join Date: May 2005
Posts: 54
Default Number of v3 Arcade Games in vBadvanced Stats Block

I got the idea for this from PaulM's hack that puts this on FORUMHOME here.

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.
Attached Images
File Type: jpg vBa-Settings.jpg (20.1 KB, 103 views)
File Type: jpg stats-block.jpg (6.1 KB, 183 views)
Attached Files
File Type: txt Arcade Game Count in vBa CMPS Stats Block.txt (836 Bytes, 68 views)
__________________
Dennis Boyce
Damn That Sucks! Administrator
Damn That Sucks!
  #2  
Old 08-13-2006, 05:10 AM
Nachtfalke Nachtfalke is offline
Junior Member
 
Join Date: Apr 2006
Posts: 16
Default Re: Number of v3 Arcade Games in vBadvanced Stats Block

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:
PHP Code:
$vbphrase['total_x_nav_compiled'] = construct_phrase($vbphrase['total_x_nav'], $vbulletin->userinfo['pmtotal']); 
under it add:
PHP Code:
// 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:
PHP Code:
[username]</a> ($topposter[posts])<br /> 
and add under it:
PHP Code:
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
Attached Images
File Type: jpg statsscreen.jpg (9.8 KB, 30 views)
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[CMPS v2.0 RC1] Last 5 Added Arcade Games - Side Block untold4you Module & Modification Discussion & Requests 20 09-01-2006 02:06 PM
[CMPS v2.0 RC1] Last 5 Added Arcade Games - Center Block untold4you Module & Modification Discussion & Requests 0 06-12-2005 02:22 PM
arcade link in vbadvanced sitka Troubleshooting / "How do I..." Questions 2 02-11-2005 02:39 PM


All times are GMT -4. The time now is 03:28 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.