vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - ibProArcade - professional Arcade System (https://vborg.vbsupport.ru/showthread.php?t=101554)

wolfstream 12-30-2005 07:13 AM

Not sure if this is even possible, but it'd be nice:
What I'm trying to do is move the champion stuff from the thread into the user's profile. I may leave it in the thread, but I definitely want to have a copy of it in the profile. Is this possible at all?

Also, a little addition to the hack, not that much really. With the number of games I have found out there, and put on my site, one random game doesn't cut it. So, I made a (minor) modification to allow more than one game to be randomly displayed... Here's the code for those that want it, really a simple hack:

in arcade.php you will see something like
Code:

$DB->query("SELECT g.gid, g.gtitle, g.gname, g.gcat, cat.password FROM ibf_games_list AS g, ibf_games_cats AS cat WHERE
g.active=1 AND g.gcat=cat.c_id AND trim(password)='' ORDER BY RAND() LIMIT 1");

change that to:
Code:

$DB->query("SELECT g.gid, g.gtitle, g.gname, g.gcat, cat.password FROM ibf_games_list AS g, ibf_games_cats AS cat WHERE
g.active=1 AND g.gcat=cat.c_id AND trim(password)='' ORDER BY RAND() LIMIT INSERTNUMHERE");

Personally, I use 15, but I've got a good bit of games on the site ;)
Now, if you want more than say 5, you will probably want to remove the image display and show the game names only. To do that, this one's just as easy:
Find
Code:

$ran_games .= "<a href='".$ibforums->base_url."act=Arcade&do=play&gameid={$rangline['gid']}'>
<img src='arcade/images/{$rangline[gname]}1.gif' border='0' /><br /><br />{$rangline['gtitle']}</a>";

And replace with:
Code:

$ran_games .= "<a href='".$ibforums->base_url."act=Arcade&do=play&gameid={$rangline['gid']}'>
{$rangline['gtitle']}</a><br />";

Again, not much, but it's more than nada , right ? :P

kylek 12-30-2005 06:03 PM

Quote:

Originally Posted by MrZeropage
Maybe this helps (untested):

open /arcade/modules/mod_arcade.php

Search for:
Code:

        if( $this->user['ppd_require'] )
        {
                $posts_today_time = mktime(0,0,0,date("m"),date("d"),date("Y"));

replace with
Code:

        if( $this->user['ppd_require'] )
        {
                $posts_today_time = mktime(0,0,0,date("m"),date("d")-1,date("Y"));


Thanks MrZeropage,

I have set up a usergroup for myself to check this out, added the above change and have set the permission for that group to 1 post per day and am trying it out now. It looks like it works as I needed to make a post to play any games. Will now wait to see when the time period expires - ie after 48 hours from making the post.

If this works and someone wanted to change the access period to say I post for 72 hours access (3 days) would the above change work if it was changed to -2 instead of -1?

Thanks again!!

RaceJunkie 12-30-2005 11:16 PM

I keep getting errors. i have had about 30 of these today

Code:

Database error in vBulletin :

mysql_connect(): User localrac_admin has already more than 'max_user_connections' active connections
/home/localrac/public_html/forums/includes/class_core.php on line 273

MySQL Error  :
Error Number :
Date        : Friday, December 30th 2005 @ 06:54:46 PM
Script      : http://www.localracechat.com/forums/index.php?act=Arcade&do=newscore
Referrer    :

Code:

Database error in vBulletin 3.5.2:

Invalid SQL:

                              INSERT IGNORE INTO session
                                      (sessionhash, userid, host, idhash, lastactivity, location, styleid, languageid, loggedin, inforum, inthread, incalendar, badlocation, useragent, bypass)
                              VALUES
                                      ('b0f38850621086e1d611393fa2878013', 555, '***.***.***', '2e25a90bd81f8f5b5a619cdc42b4eba0', 1135986878, '/forums/index.php?act=Arcade&amp;do=newscore', 0, 0, 0, 0, 0, 0, 0, 'Mozilla/4.0 (compatible; MSIE 5.5; AOL 9.0; Windows 98; Win 9x 4.90)', 0);

MySQL Error  : User localrac_admin has already more than 'max_user_connections' active connections
Error Number : 1203
Date        : Friday, December 30th 2005 @ 06:55:42 PM
Script      : http://www.localracechat.com/forums/index.php?act=Arcade&do=newscore

Can anyone give me some advice on how to fix this?

wolfstream 12-30-2005 11:26 PM

That is a mysql error, not a code error.
To fix this:
If you have root access to your server, adjust the mysql settings as necessary (probably want to up that quite a bit)
If you do NOT have root access to your server, you need to contact your hosting provider to have them up your connection limits.

RaceJunkie 12-30-2005 11:30 PM

Quote:

Originally Posted by wolfstream
That is a mysql error, not a code error.
To fix this:
If you have root access to your server, adjust the mysql settings as necessary (probably want to up that quite a bit)
If you do NOT have root access to your server, you need to contact your hosting provider to have them up your connection limits.

Ok i'm on a reseller so I would take a wild guess that i need to request my host to do it..

wolfstream 12-30-2005 11:35 PM

probably :)

HC. 12-31-2005 03:00 AM

where are the upgrade insturctions?
I have 2.5.1 installed

ausnrl 12-31-2005 09:40 AM

Besides pnflashgames whats a good site to get good games from?

RaceJunkie 12-31-2005 03:35 PM

Quote:

Originally Posted by ausnrl
Besides pnflashgames whats a good site to get good games from?

Here is a site I found A few weeks ago


* Link removed - Please read the last line in the first post! *

LLM4P 01-01-2006 03:16 PM

when i changed my username it didn't update in the Highscores Champion or the Newest Champions, plus all the games i am champion for still have my old username, is there a way to fix this?


All times are GMT. The time now is 01:34 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.05864 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
  • (8)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
  • (7)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