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
v3Arcade - new look to your arcade main page Details »»
v3Arcade - new look to your arcade main page
Version: 1.00, by GenSec GenSec is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 11-07-2004 Last Update: Never Installs: 83
 
No support by the author.

As I was asked about this one
---------------------------------------------------
These hack adds new look to your arcade main page.

Files to edit: 1
Templates to edit: 2


Very easy to install... Just 2"
---------------------------------------------------

Find in arcade.php

Code:
	// Gets all of the games
	while ($game = $DB_site->fetch_array($result_allgames)) {
		$gamename = $game['shortname'];
		if ($gamecache["$game[shortname]"]) {
			$game = $gamecache["$game[shortname]"];
		} else {
			// the game has never had a score recorded
			// $extra is used as a conditional for the arcade_main_games_bit template
			$extra = 1;
		}
		if (strlen($game['username'])>12) {
			$game['username'] = "<font size=1>".$game['username']."</font>";
		}
		if (($game['gamesettings'] & 1)&&($g >= $startingfrom && $g<$upperlimit)) {
			eval('$gamebits .= "' . fetch_template('arcade_main_games_bit') . '";');
			exec_switch_bg();
		}
		if ($game['gamesettings'] & 1) {
			$g++;
		}
		unset($extra);
	}
and replace with
Code:
	// Gets all of the games
    $gamebits .="<tr>";
	while ($game = $DB_site->fetch_array($result_allgames)) {
		$gamename = $game['shortname'];
		if ($gamecache["$game[shortname]"]) {
			$game = $gamecache["$game[shortname]"];
		} else {
		// the game has never had a score recorded
		// $extra is used as a conditional for the arcade_main_games_bit template
		$extra = 1;
		}
		if (($game['gamesettings'] & 1)&&($g >= $startingfrom && $g < $upperlimit)) {
                if(!(($g+1)%4))         $nextrow="</tr><tr>";
                   else     $nextrow="";
		eval('$gamebits .= "' . fetch_template('arcade_main_games_bit') . '";');
			exec_switch_bg();
        }
		if ($game['gamesettings'] & 1) {
			$g++;
		}
		unset($extra);
	}
    $gamebits .="</tr>";
Change your "arcade_main_games_bit" template to the attached.

And edit "arcade_main" template around $gamebits
to change every newrest colspan="4" to your number of columns
Code:
       
        <tr align="center"> 
          <td colspan="4"  class="thead">total games: $gamecount </td>
        </tr> 
        $gamebits
        <tr align="center"> 
          <td class="thead" colspan="4" align="left">


------------------
Thats all!

You can easy to make your own number of columns

Don't forget to edit number of games per page!

--------------------------------------------

Forget to say if you want to include info about the game size

you need to edit the game table in your DB


Code:
ALTER TABLE `games` ADD `filesize` INT( 10 ) DEFAULT '0' NOT NULL ;
and after new game instalation to use game_size.php

Show Your Support

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

Comments
  #12  
Old 11-09-2004, 12:03 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GenSec
It works with categories... on my board - no problem. Why should?

But frankly I don't know about what "categories mod" your ask
I had a rough time with categories and ushop arcade pass. I am going to try again later.
Reply With Quote
  #13  
Old 11-09-2004, 01:56 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This also requires a bit of modification to work with the Favourites system, though I got there in the end..
Reply With Quote
  #14  
Old 11-09-2004, 02:08 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Oblivion Knight
This also requires a bit of modification to work with the Favourites system, though I got there in the end..
where is the favourites system? I must have missed that one! :disappointed:
Reply With Quote
  #15  
Old 11-09-2004, 03:35 PM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's pretty hidden..

http://www.v3arcade.com/play/showpos...23&postcount=2
Reply With Quote
  #16  
Old 11-09-2004, 04:33 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks.
Reply With Quote
  #17  
Old 11-09-2004, 07:02 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great hack. Has anyone managed to install it with the arcade pass? It gets though with the game cost and the jackpot column....
Reply With Quote
  #18  
Old 11-09-2004, 11:49 PM
GenSec GenSec is offline
 
Join Date: Oct 2001
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
This is a great hack. Has anyone managed to install it with the arcade pass? It gets though with the game cost and the jackpot column....
If you look on what I suggest to change in arcade.php you see that it has only 4 new lines to include in

Code:
 // Gets all of the games
    $gamebits .="<tr>";
while ($game = $DB_site->fetch_array($result_allgames)) {
$gamename = $game['shortname'];
if ($gamecache["$game[shortname]"]) {
$game = $gamecache["$game[shortname]"];
} else {
// the game has never had a score recorded
// $extra is used as a conditional for the arcade_main_games_bit template
$extra = 1;
}
if (($game['gamesettings'] & 1)&&($g >= $startingfrom && $g < $upperlimit)) {
                if(!(($g+1)%4))         $nextrow="</tr><tr>";
                   else     $nextrow="";
eval('$gamebits .= "' . fetch_template('arcade_main_games_bit') . '";');
exec_switch_bg();
        }
if ($game['gamesettings'] & 1) {
$g++;
}
unset($extra);
}
    $gamebits .="</tr>";
block
Reply With Quote
  #19  
Old 11-09-2004, 11:51 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #20  
Old 11-10-2004, 11:36 AM
frankenberrie's Avatar
frankenberrie frankenberrie is offline
 
Join Date: Dec 2002
Location: N.Y.
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed .... Excellent job@
Reply With Quote
  #21  
Old 11-10-2004, 12:53 PM
dina dina is offline
 
Join Date: Apr 2004
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

An amazing mod, the only problem I can see is this;

Your record: íåò

It will display this if you don't have a record in the game. Any way to fix this?
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 09:26 PM.


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.07391 seconds
  • Memory Usage 2,313KB
  • 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
  • (5)bbcode_code
  • (3)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
  • (3)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