Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Show total amount of arcade games on Forum Home Details »»
Show total amount of arcade games on Forum Home
Version: 1.00, by DWard DWard is offline
Developer Last Online: Mar 2018 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-29-2004 Last Update: Never Installs: 18
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-30-2005, 12:45 PM
iSpanish's Avatar
iSpanish iSpanish is offline
 
Join Date: Jan 2005
Location: Oregon
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod.

installed on vB 3.0.6
Reply With Quote
  #13  
Old 02-25-2005, 05:30 AM
sim tech sim tech is offline
 
Join Date: Jan 2005
Location: Georgia
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack... took about 30 seconds to do.

I'm running on version 3.0.7 and v3arcade - all was smooth.

The stickler the one poster may have been in modding the template... make sure that you place the info RIGHT AFTER the line , and before the closing statement.
Reply With Quote
  #14  
Old 02-25-2005, 06:49 AM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice <clicks install>
Reply With Quote
  #15  
Old 06-12-2005, 06:04 PM
MustangLisa's Avatar
MustangLisa MustangLisa is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks ~ easy to install, no problems!
Reply With Quote
  #16  
Old 06-16-2005, 03:30 AM
m0nde's Avatar
m0nde m0nde is offline
 
Join Date: Mar 2005
Location: Toronto, ON Canada
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great little hack.
Is there a way to add the number of categories also if you're using the category hack?

I would like it to say "X Games in Y Categories"

- Sid
Reply With Quote
  #17  
Old 06-16-2005, 03:44 AM
m0nde's Avatar
m0nde m0nde is offline
 
Join Date: Mar 2005
Location: Toronto, ON Canada
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please disregard my request. I looked at your code and did it myself with the code below.

I added the following beneath your code in index.php

PHP Code:
// Game Category Count
            
$result_allgamecategories $DB_site->query("
         SELECT * FROM " 
TABLE_PREFIX "gamescat $searchclause ORDER BY categoryID DESC
            "
);
            
            
$gamecatcount $DB_site->num_rows($result_allgamecategories); 
and then used $gamecatcount by changing

PHP Code:
Games$gamecount 
in the FORUMHOME template

to

PHP Code:
$gamecount Games in $gamecatcount Categories 
Thanks for the initial code, I'm new to PHP.
Reply With Quote
  #18  
Old 06-17-2005, 11:03 PM
Aeolian_X Aeolian_X is offline
 
Join Date: Jun 2005
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sphinx
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 ?
Got the exact same problem. Anyone???
Reply With Quote
  #19  
Old 06-17-2005, 11:25 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would suggest simply checking your install.

Make sure eveything is in the right place.

My usual screwup is leaving out an > or something stupid.
Reply With Quote
  #20  
Old 06-18-2005, 07:02 PM
hello hello is offline
 
Join Date: Jul 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Woah, i didnt realise it was for v3arcade lol o well i got ibproarcade and it works perfect on it as well, except the total includeseven the deleted games, know how to stop that?
Reply With Quote
  #21  
Old 08-05-2005, 01:43 AM
o0Hubba0o's Avatar
o0Hubba0o o0Hubba0o is offline
 
Join Date: Mar 2005
Location: Minnesota
Posts: 263
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hello
Woah, i didnt realise it was for v3arcade lol o well i got ibproarcade and it works perfect on it as well, except the total includeseven the deleted games, know how to stop that?
[high]* o0Hubba0o installs
[/high]

Nifty little bit of code, thank you for it.
Reply With Quote
Reply


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


All times are GMT. The time now is 05:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04648 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete