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)
-   -   v3 Arcade - Games Arcade & Challenge System [vB 3.0.3] (https://vborg.vbsupport.ru/showthread.php?t=60377)

John 04-03-2004 10:42 AM

Works for me.

BarBeQue 04-03-2004 12:02 PM

what's netscape







;)

msimplay 04-03-2004 12:11 PM

Quote:

Originally Posted by John
Works for me.

works for me too :p

try installing the flash plugin if you don't have it already for netscape

Evilboy 04-03-2004 02:32 PM

best hack for vb 3 ;)

ChuanSE 04-03-2004 04:01 PM

Quote:

Originally Posted by Evilboy
best hack for vb 3 ;)

I agree, this should be the hack of the year :D

ChuanSE 04-03-2004 04:12 PM

Quote:

Originally Posted by Giveit2u43
a mini hack to split the arcade into multiple pages..

first find:
Code:

        // Query to get the other data for the high scores
        $result_topscore2 = $DB_site->query("
                SELECT gamesessions.*, user.username, user.userid, games.*, games.title AS title FROM " . TABLE_PREFIX . "gamesessions AS gamesessions
                LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = gamesessions.userid
                LEFT JOIN " . TABLE_PREFIX . "games AS games ON gamesessions.gamename = games.shortname
                $whereclause AND $sessionclause ORDER BY gamesessions.gamename DESC
        ");

and change it to:
Code:

        // Query to get the other data for the high scores
        $result_topscore2 = $DB_site->query("
                SELECT gamesessions.*, user.username, user.userid, games.*, games.title AS title FROM " . TABLE_PREFIX . "gamesessions AS gamesessions
                LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = gamesessions.userid
                LEFT JOIN " . TABLE_PREFIX . "games AS games ON gamesessions.gamename = games.shortname
                $whereclause AND $sessionclause ORDER BY gamesessions.gamename ASC
        ");

now find:
Code:

        // creates a $gamesettings array, usage $gamesettings[gamename]
        $result_gamesettings = $DB_site->query("SELECT gameid, shortname, gamesettings FROM " . TABLE_PREFIX . "games");
        while ($gameset = $DB_site->fetch_array($result_gamesettings)) {
                $gamesettings[$gameset[shortname]] = convert_bits_to_array($gameset[gamesettings],$_GAMESCHECK);
        }
        $DB_site->free_result($result_gamesettings);

and change it to:
Code:

        $pagenumber = $_REQUEST['page'];
        if ($pagenumber == "") $pagenumber=1;
        $page_start=($pagenumber-1)*12;

        // creates a $gamesettings array, usage $gamesettings[gamename]
        $result_gamesettings = $DB_site->query("SELECT gameid, shortname, title, gamesettings FROM " . TABLE_PREFIX . "games ORDER BY shortname ASC LIMIT $page_start,12");
        while ($gameset = $DB_site->fetch_array($result_gamesettings)) {
                $gamesettings[$gameset[shortname]] = convert_bits_to_array($gameset[gamesettings],$_GAMESCHECK);
        }
        $DB_site->free_result($result_gamesettings);

        $result= $DB_site->query_first("SELECT COUNT(games.gameid) AS gcount FROM ". TABLE_PREFIX ."games AS games ORDER BY shortname ASC");

        $totalpages=ceil(($result[gcount])/12);
        $perpage=1;

          $pagenav = construct_page_nav($totalpages, "arcade.php?$session[sessionurl]");

you now need to edit the arcade_main template.

find:
Code:

<!-- /games -->
and below add:
Code:

<div style="float:right;">$pagenav</div>
Finished.. Enjoy :)


This did order them from A to Z instead of Z to A, but they are still on one page :(

Any idea's?

djohn 04-03-2004 04:19 PM

Quote:

Originally Posted by ChuanSE
This did order them from A to Z instead of Z to A, but they are still on one page :(

Any idea's?

Have exactly the same problem, exept for the nav bar that's supposed to show up simply doesn't. I've sent a pm to Giveit2u43, he'll try to figure out what the problem is.

msimplay 04-03-2004 04:33 PM

Quote:

Originally Posted by djohn
Have exactly the same problem, exept for the nav bar that's supposed to show up simply doesn't. I've sent a pm to Giveit2u43, he'll try to figure out what the problem is.

i tried that code when it first came out it didn't work in the way it was supposed to thats why i asked again for pagination :o

Azhrialilu 04-03-2004 04:51 PM

Phew. just read all 128 pages... saw the error I'm having mentioned a few times, but not seen any solution :D.... but after reading all that, is it any wonder if I missed it.. soooooooo.... the mini hack to put the games 12 per page... we've installed it on our forums, we can play the games on page one, but everyone gets a permission error on every other page.

Just point me in the direction of the solution post..as I just can't find it LOL

Thanx guys

msimplay 04-03-2004 04:53 PM

Quote:

Originally Posted by Azhrialilu
Phew. just read all 128 pages... saw the error I'm having mentioned a few times, but not seen any solution :D.... but after reading all that, is it any wonder if I missed it.. soooooooo.... the mini hack to put the games 12 per page... we've installed it on our forums, we can play the games on page one, but everyone gets a permission error on every other page.

Just point me in the direction of the solution post..as I just can't find it LOL

Thanx guys

there is no solution yet we all waiting on it


All times are GMT. The time now is 02:50 PM.

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.04001 seconds
  • Memory Usage 1,755KB
  • 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
  • (6)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (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