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
  #92  
Old 05-27-2005, 04:48 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by waza
You will probably need the latest version of v3arcade, v1.0.3.
The lines aren't there in v1.0.0,

Now for my problem:
I can't get the layout right, the page is totaly messed up.
So can somebody who has only installed this modification on v3arcade, share his arcade_main template?

Thx,
seba
<!-- arcade welcome -->
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center">
<tr>
<td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr align="center">
<td class="thead" width="20%">
<span class="smallfont"><b>Logged in</b> as</span></td>
<td class="thead" width="40%"><span class="smallfont"><b>Welcome</b> to the <b>Arcade</b>!</span></td>
<td class="thead" width="40%"><span class="smallfont">Arcade <b>News & Events</b></span></td>
</tr>
<tr align="center">
<td class="alt1" width="20%" valign="middle">
<if condition="$bbuserinfo[userid]!=0">
<b>$bbuserinfo[musername]</b>
<span class="smallfont"><br />
$bbuserinfo[usertitle]<br /><br />
$bbuserinfo[avatar]<br /><br />
<else />
<b><i>Guest</i></b><br />
<font size="1"><a href="$vboptions[bburl]/register.php">Click here to register!</a></font>
</if>
</span>

</td>
$welcomeblock
<td class="alt1" width="40%" valign="top">$arcadenews</td>
</tr>
</table></td>
</tr>
</table>
<!-- /arcade welcome -->
<if condition="$ischallengepending == 1">
<!-- small space -->
<span class="smallfont"><br>
</span>
<!-- /small space -->
<!-- personal -->
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center">
<tr>
<td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr align="center">
<td class="thead">Pending Challenges</td>
</tr>
<tr align="center">
<td class="alt1"><table>$challengebits</table></td>
</tr>
</table></td>
</tr>
</table>
<!-- /personal -->
</if>
<!-- small space -->
<br \><table cellspacing="0" border="0" width="$stylevar[tablewidth]">
<tr>
<td>

<if condition="$mhsusername">
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="400" align="left">
<tr>
<td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr align="center">
<td class="thead"><img src="$stylevar[imgdir_arcade]/king.gif" alt="The most Champions Titles !" align="absmiddle" border=0>Arcade-King:</td><td class="alt1">
<span class="smallfont"><a href="arcade.php?do=stats&userid=$mhsuser"><b>$mhs username</b></a> has <b>$mosthigh</b> Champions-Titles !</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</if>

<if condition="$mhsarray">
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="90%" align="left">
<tr>
<td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr align="center">
<td class="thead"><img src="$stylevar[imgdir_arcade]/morekings.gif" alt="The most Champions Titles !" align="absmiddle" border=0>Arcade-Kings:</td><td class="alt1">
<span class="smallfont"><b>$mhsarray</b></a> have <b>$mosthigh</b> Champions-Titles !</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</if>
<br \>
<td align="right">$pagenav</td>
</td>
</tr>
</table>
<span class="smallfont"><br>
</span>
<!-- /small space -->
<!-- games -->
<table cellpadding="$stylevar[outerborderwidth]" cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]" align="center">
<tr>
<td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
<tr align="center">
<td colspan="3" class="thead">total games: $gamecount </td>
</tr>
$gamebits
<tr align="center">
<td class="thead" colspan="3" align="left"> </table></td>
</tr>
</table>
<!-- /games -->

<br />
$pagenav
Reply With Quote
  #93  
Old 05-27-2005, 05:37 PM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by waza
You will probably need the latest version of v3arcade, v1.0.3.
The lines aren't there in v1.0.0,

Now for my problem:
I can't get the layout right, the page is totaly messed up.
So can somebody who has only installed this modification on v3arcade, share his arcade_main template?

Thx,
seba

did it work?
Reply With Quote
  #94  
Old 05-27-2005, 06:44 PM
waza waza is offline
 
Join Date: Apr 2005
Location: Belgium
Posts: 341
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey,
I first also had to upload my changed arcade.php (I uploaded the wrong one)
It was still a mess, but it worked with your template.
thx a lot!
Reply With Quote
  #95  
Old 05-28-2005, 12:32 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by waza
Hey,
I first also had to upload my changed arcade.php (I uploaded the wrong one)
It was still a mess, but it worked with your template.
thx a lot!
glad i was able to help you :nervous:
Reply With Quote
  #96  
Old 06-03-2005, 12:21 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i would like to take out the total of games shown. it makes it look funny since all the games are on the same page. where can i edit that out. i just want the games to be on the arcade page so it looks cleaner than it does now. thanks ahead of time for the help
Reply With Quote
  #97  
Old 06-07-2005, 06:07 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lowandloudinc
i would like to take out the total of games shown. it makes it look funny since all the games are on the same page. where can i edit that out. i just want the games to be on the arcade page so it looks cleaner than it does now. thanks ahead of time for the help
bump
Reply With Quote
  #98  
Old 06-07-2005, 12:27 PM
SpeedyHire SpeedyHire is offline
 
Join Date: Apr 2005
Location: wales
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worx like a charm m8
many thanx for the mod
Reply With Quote
  #99  
Old 06-07-2005, 03:06 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lowandloudinc
bump
Just remove that <tr></tr> section from the code.
Reply With Quote
  #100  
Old 06-07-2005, 05:24 PM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dsboyce8624
Just remove that <tr></tr> section from the code.

could you be a little more specific please thanks
Reply With Quote
  #101  
Old 06-07-2005, 06:40 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lowandloudinc
could you be a little more specific please thanks
Theres a line that says:
Code:
<tr align="center"> 
          <td colspan="4"  class="thead">total games: $gamecount </td>
        </tr>
Change the "total games: $gamecount " to whatever you want the header to say.
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 02:55 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.04811 seconds
  • Memory Usage 2,327KB
  • 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
  • (7)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
  • (4)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