vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Show total amount of arcade games on Forum Home (https://vborg.vbsupport.ru/showthread.php?t=68868)

DWard 08-29-2004 10:00 PM

Show total amount of arcade games on Forum Home
 
Show amount of arcade games on Forum Home
Requirements: v3 Arcade

It's easy enough, but for those who are not too familiar with php, follow these instructions. It puts the game total at the end of your forum statistics. Remember, please click install if you use the mod :)

Example: Threads: 527, Posts: 13,478, Members: 197, Games: 288

Open index.php from your forum root directory and find:
Code:

// ### BOARD STATISTICS #################################################
Below this, add:
Code:

        // Game Count
                $result_allgames = $DB_site->query("
                SELECT * FROM " . TABLE_PREFIX . "games $searchclause ORDER BY gameid DESC
                ");
               
                $gamecount = $DB_site->num_rows($result_allgames);

OK, now open your FORUMHOME template and find:
Code:

$totalposts, $vbphrase[members]: $numbermembers
In line after, add:
Code:

, Games: $gamecount
If you have any troubles, just reply to this thread.

sphinx 08-30-2004 11:24 AM

hmm installed very easy to do but for some strange reason it doesn't give me a games count just the games: in the stats any ideas ?

DWard 08-30-2004 04:20 PM

It's worked fine for everybody over www.v3arcade.com

sphinx 08-30-2004 06:09 PM

I am simply telling you what you requested with your "If you have any troubles, just reply to this thread" post ending and I took that that was meant literally perhaps I was wrong,as for installed at v3 arcade it isn't showing over there just looked I am over there quite a bit.

DWard 08-30-2004 06:40 PM

That's fine, as for v3arcade.com, you probably didn't look too well :)

http://www.v3arcade.com/play/showthread.php?t=1382

Polo 08-30-2004 07:11 PM

I knew i had seen it somewhere... ;)

Oblivion Knight 08-31-2004 07:48 AM

Installed, thanks :)

sphinx 08-31-2004 03:38 PM

but that still doesn't answer the problem anyway forget it there is no point asking people to let you know if you have no intention of sticking to it.

Mombos 09-01-2004 02:16 PM

nice little addition this is thanks alot - *clicks install*

Vizionz 01-28-2005 02:13 AM

thanks for the addon :) worked fine with 3.06


All times are GMT. The time now is 10:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01055 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete