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)
-   -   v3Arcade - new look to your arcade main page (https://vborg.vbsupport.ru/showthread.php?t=71481)

RichieBoy67 02-26-2005 02:28 PM

I cannot find the

Quote:

// 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);
}
in my arcade.php...


--

Wential 02-26-2005 03:18 PM

Unless you deleted or modified it,
// Gets all of the games
starts on line 348 or arcade.php

ARCADE

RichieBoy67 02-26-2005 03:22 PM

My site is heavily modified....

Can I place the code somewhere else to get this to work??

AuroraMike 03-04-2005 04:45 AM

Is there a way to reduce the number of columns? I read the above instructions and it reads like changing colspan= to a different number will reduce the # of games shown going across but that's not what's working. Right now I've opted to show 16 games per page. That's working fine. I have a 4x4 grid. But I'd much rather have a 3x4 grid (three across, four down) so that the boxes are a bit bigger. Changing the colspan= only changes the bar above and below the games listed (where "Total Games:" and the thin line beneath the columns are).

I've played with this for about 45 minutes and can't figure out where the columns are changed at. :ermm:

edit: nevermind, Intex answered this on page 1. I just missed his post.

SupraT 03-05-2005 01:25 AM

Quote:

Originally Posted by Intex
KTBleeding - The query for the filesize is just the row for storing the information. In order to generate the filesize information for games currently in your database, you have to run the game_size.php that is included with the hack.

Once you've run that it should be fine, but don't forget you'll need to run it after you install any more games. Perhaps just setup a scheduled task within vB Admincp once a week etc. depending on how frequently you add games.

As for the column problem - I had this as well and the instructions for changing it were a little bit grey, particularly as they show other mods that you may not have included. Anyway, go to your arcade_main template and look for the section beginning:

<!-- games -->

Around that area, change any instances of colspan="#" to however many columns you want, i.e. colspan="3". This is in the instructions, but it fails to mention that you have to go to the /forum/arcade.php file and change the following code as well:

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)%3))                $nextrow="</tr><tr>";

Change the number at the end of that code, i.e. if(!(($g+1)%4)) to if(!(($g+1)%3)). You should then have your three columns!!

You'll need to set the $perpage = #; to a number that displays the correct amount for your columns. For example, I have 3 columns and therefore I've changed mine to $perpage = 21;. This ensures there are no empty cells in the table.

Hope that helps.

This will be the fix for the columns.

Allan 04-14-2005 07:19 PM

very nice, thanks ;)

click install :)

Galaxy 04-17-2005 03:54 PM

I been trying to sort out the new look option but it all mest up

Code:

    <td> <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
        <tr align="center">
          <td class="thead">Game</td><td class="thead">Champion</td><td class="thead">Personal Best</td><td class="thead">Description</td>
        </tr>
        <tr align="center">
          <td colspan="18"  class="thead">total games: $gamecount </td>
        </tr>
        $gamebits
        <tr align="center">
  <td class="thead" colspan="18" align="center"> 
</table>
</tr>
</tr>
</table>
<!-- /games -->
<br />
$pagenav

I allso set the $perpage = 18; to 18 as you can see can anyone help fix this???

DRJ 04-27-2005 08:08 PM

Very nice, looks great.

*Installs

aberg 05-16-2005 12:27 PM

One of my users is always in the arcade and he has a lot of titles.
Now in the forum he has vertical a big rule of titels.( see the attachment)
How can i change the titles to a horizontal rule?

Polo 05-16-2005 12:34 PM

Quote:

Originally Posted by aberg
One of my users is always in the arcade and he has a lot of titles.
Now in the forum he has vertical a big rule of titels.( see the attachment)
How can i change the titles to a horizontal rule?

use the popup arcade hack for the awards, i use that at my site :) it works great and reduces lots of queries from your showthread.php :)


All times are GMT. The time now is 10:03 AM.

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.01390 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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