The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Show Latest Arcade Addition on Forum Home Details »» | |||||||||||||||||||||||||||
Show Latest Arcade Addition on Forum Home
Developer Last Online: Nov 2016
This is a very basic hack that will add a line to your "What's Going On?" box which shows the latest addition that you have made to your arcade (ie. the last game that you installed).
It should be noted that installing this WILL add 1 small QUERY to index.php. This should have little - if any - affect on server load or loading times. [high]If you have DWard's "Show total amount of arcade games on Forum Home" hack installed, you can merge the queries so that it adds only 1 query instead of 2 - and the instructions have now been updated to tell you how.[/high] With thanks to mavherzog, there is now also an ibProArcade version of this mod in the zip. The v3arcade version is prefixed "V3A" and the ibProArcade version is prefixed "IBPRO". Please click install if you find this useful.. Show Your Support
|
Comments |
#12
|
||||
|
||||
I modified this slightly to work with ibProArcade. Basically, all I had to do was change the DB query in index.php to match up with the right table and field names for ibProArcade. Instead of adding this to index.php:
Quote:
Quote:
|
#13
|
||||
|
||||
Schweet! With your permission I'd like to include that in the zip as an ibProArcade version of the mod.
You'll be credited, obviously. |
#14
|
||||
|
||||
Quote:
|
#15
|
|||
|
|||
Very nice!
Thank you... "Clicks Install" |
#16
|
||||
|
||||
My apologies if this has been asked before, but is there a hack similar to this that works with the vbadvanced cmps? www.mobilephonemadness.com
Would like the current top players in a module on thehome page if thats possible? Mark |
#17
|
||||
|
||||
You could try asking over at http://www.vbadvanced.com - they'll know more than I.
|
#18
|
||||
|
||||
Great hack, thanks!!
|
#19
|
|||
|
|||
Quote:
|
#20
|
|||
|
|||
I wanted this in the NAVBAR so it would attract more attention so here is what I did:
Code:
If you DO NOT have my Number of v3 Arcade Games in vBadvanced Stats Block hack installed: In global.php find: $vbphrase['total_x_nav_compiled'] = construct_phrase($vbphrase['total_x_nav'], $bbuserinfo['pmtotal']); Below it add: // Latest Arcade Game $result_newgame = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "games ORDER BY gameid DESC LIMIT 1"); $result_newgametitle = $DB_site->fetch_array($result_newgame); $newgame = $result_newgametitle['title']; $newgameid = $result_newgametitle['gameid']; OTHERWISE: If you DO have my Number of v3 Arcade Games in vBadvanced Stats Block hack installed: In global.php find: $result_allgames = $DB_site->query(" SELECT * FROM " . TABLE_PREFIX . "games $searchclause ORDER BY gameid DESC "); $gamecount = $DB_site->num_rows($result_allgames); Replace it with: $result_games = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "games $searchclause ORDER BY gameid DESC"); $result_newgametitle = $DB_site->fetch_array($result_games, 1); $gamecount = $DB_site->num_rows($result_games); $newgame = $result_newgametitle['title']; $newgameid = $result_newgametitle['gameid']; AND, for BOTH cases: Template Edit: In NAVBAR find: <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase> <if condition="$show['pmstats']"><br /> Replace with: <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase> <br /> Newest Arcade Game: <a href="arcade.php?$session[sessionurl]do=play&gameid=$newgameid">$newgame</a> <if condition="$show['pmstats']"><br /> If you use vBa CMPS add the following to AdminCP->vBa CMPS->Default Settings->Portal Output Global Variables: newgame newgameid Done. Dennis |
#21
|
||||
|
||||
Thanks for sharing Dennis, an alternative is always handy..
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|