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)

Oblivion Knight 04-17-2005 05:39 AM

Quote:

Originally Posted by T3MEDIA
Hey bro you have any ideas on how to lower the resources for this hack?

Add a few indexes in arcade database tables, and removing the challenge system helps.. :)

DjTaz 04-17-2005 10:15 AM

Since V3Arcades closed .. anyone know where to get new games now ?

Its a pity that place closed .. it was a handy spot to get games ... anyone else gona set up a board to share hacks and games ? or should i go do it myself ?

j_86 04-17-2005 10:48 AM

590 in one RARfile: https://vborg.vbsupport.ru/showpost....postcount=3499

rjordan 04-18-2005 02:39 AM

Khaleel, it looks like you missed the ending bracket (}) on the change I suggested. Check your e-mail and let me know if it works for you.

Lexina 04-18-2005 05:33 AM

OK, my arcade just isn't working at ALL. Have a look at http://www.thefad.net/forum/arcade.php? and see what you think. Anyone else get this, or did I just majorly stuff something up?

Xil Ze 04-18-2005 05:45 AM

Quote:

Originally Posted by Lexina
OK, my arcade just isn't working at ALL. Have a look at http://www.thefad.net/forum/arcade.php? and see what you think. Anyone else get this, or did I just majorly stuff something up?

i'd like to help but i don't want to register

SpaceStar 04-18-2005 07:44 PM

When running the install_arcade.php i have got following error in IE:

"Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /.../includes/functions.php on line 2018"

Does anyone a have clue what is going wrong?

Thanks in advance

SpaceStar 04-18-2005 07:45 PM

by the way this is the code in line 2018 in functions.php file:

$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";

Paul_d_g 04-18-2005 10:22 PM

I keep getting this.

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT gameid, shortname, gamesettings, title FROM games
mysql error: Table 'denisp.games' doesn't exist

mysql error number: 1146

What can I do?

RichieBoy67 04-18-2005 10:47 PM

Paul,

You need to have do the querrie to add that table...

What exactly is denisp.games ???? is that some kind of a game or something???

Monica05 04-19-2005 06:42 AM

Ok, i'm having a big problem and i'm not sure what i've done wrong.
When you go to my forum, above my logo, this is showing up:
Quote:

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2997

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2997

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2997
This is line 2997:
Quote:

$user['calendarpermissions']["$calendarid"] |= $cpermissions["$usergroupid"];
When I click on any of the links, I get this:
Quote:

Unable to add cookies, header already sent.
File: my forum root directory/includes/init.php
Line: 27
This is line 27
Quote:

echo "<br /><strong>Warning</strong>: $errstr in <strong>$errfile</strong> on line <strong>$errline</strong><br />";
Can someone help me please? I'm desperate..lol. Noone can do anything on my board until I get this fixed. :ermm:

Paul_d_g 04-19-2005 08:28 AM

Quote:

Originally Posted by Paul_d_g
I keep getting this.

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT gameid, shortname, gamesettings, title FROM games
mysql error: Table 'denisp.games' doesn't exist

mysql error number: 1146

What can I do?


nvm i figured it out.

But i now get this

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2997

This is line 2997:

$user['calendarpermissions']["$calendarid"] |= $cpermissions["$usergroupid"];

Lexina 04-19-2005 09:55 AM

Quote:

Originally Posted by Xil Ze
i'd like to help but i don't want to register

You don't need to register to view my boards... at least I never turned that option on...

lifesbattles 04-19-2005 10:00 AM

Quick question, my frames in the Admin CP panel are messed up...... i posted on vbulletin.com but they told me to post here..... heres my problem.

http://www.vbulletin.com/forum/showthread.php?t=136351

any ideas?

iTaLiAnBoY165 04-20-2005 01:34 PM

my arcade was working for about a month then it restricted me from going in all members are restricted but in permissions everyones alllowed to go in

Gottcha 04-20-2005 08:02 PM

tried installing on 3.0.7 and this is the error i get now

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/fragtrad/public_html/forums/includes/functions.php on line 2018

this is line 2018:

$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";

now my entire board is down

Marco van Herwaarden 04-20-2005 08:19 PM

What editor did you use to edit your files?

That line should probably be looking like the following:
PHP Code:

        $debughtml .= " (<a href=\"" htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH'?') === false'?''&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH'?') === false'?''&amp;') . "explain=1\">Explain</a>)<br />\n"

I think that if this line got changed, maybe more is wrong.

I suggest you backup this file, and try what happens if you reload the original.

Gottcha 04-20-2005 11:48 PM

used dreamweaver to edit the files.

i replaced the functions.php and board is back up

iTaLiAnBoY165 04-21-2005 11:45 AM

Quote:

Originally Posted by iTaLiAnBoY165
my arcade was working for about a month then it restricted me from going in all members are restricted but in permissions everyones alllowed to go in

bump....

smacklan 04-21-2005 12:27 PM

I have sort of an odd problem...don't know if anyone else has encountered it. I originally had IProArcade installed and working on 3.0.7 site. I installed v3Arcade and the install went smooth, all settings for usergroup permissions and activation of the games are set...but when you go to the arcade no games appear. I uninstalled the game, re-installed the clean vB files with no IBPro changes in them, reinstalled v3 with the correct modifications and the same problem. Any help out there with this one??? Many thanks!

jrofosho 04-21-2005 08:26 PM

I've searched this forum, and gone back over the code multiple times. I still get this error after installation.

Quote:

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2997
The arcade link is on the menu, but it leads to an error.

pk698 04-22-2005 05:45 AM

will this work for 3.0.7?

Oblivion Knight 04-22-2005 06:36 AM

Quote:

Originally Posted by jrofosho
I've searched this forum, and gone back over the code multiple times. I still get this error after installation.



The arcade link is on the menu, but it leads to an error.

Make sure that you have modified your includes/init.php file correctly.


Quote:

Originally Posted by pk698
will this work for 3.0.7?

Yes, it works fine with 3.0.7

SpaceStar 04-22-2005 12:18 PM

Waaao excellent hack - installed on my forum. Although installation went without any error and three out of five games can start, Tetris and Snake are not working. Tetris came to point where it load, LOADING...... hangs, and Snake just shows a black square.... (other games are working fine)

Do anyone have any clue????

Thanks in advance :)

jrofosho 04-22-2005 06:04 PM

okay. Thanks Oblivion. It was the init.

Now the images aren't being directed to the correct path. they are going to jrofosho.com/imageexample.gif

they should go to jrofosho.com/forum/images/

dwillb 04-22-2005 07:33 PM

Hey everybody. I have something of an odd problem. I just upgraded my forum to 3.0.7 and reinstalled the arcade hack. I have only one problem. When you click on any of the games in the arcade menu, you get an incorrect link. With Tetris, for example, you get this link:
index.php?act=Arcade&amp;do=play&amp;gameid=4

Instead of this:
arcade.php?act=Arcade&amp;do=play&amp;gameid=4

I'm not sure where the problem lies - I've checked over the installation steps and it appears as if I've done everything correctly. I did this with both 3.0.5 and 3.0.6 and it worked fine, so I'm pretty sure I'm not making any really stupid mistakes. Or maybe I am. Any ideas?

Roxie 04-22-2005 08:41 PM

Quote:

Originally Posted by Mijae
Wanted games? Here they are!

Now you can get games for FREE from my site, no registration and NO FEES to pay.

Code:

Just go to http://www.anotherforum.net/files/v3games and download :)
Now, don't go around spreading the URL or my bandwidth will go to hell ;)

I know that probably not all games are there, but its still a lot of 'em :P

If you have zip files with games that are not here, and want to help the community by sharing them, PM me.

for those that missed it.

Oblivion Knight 04-23-2005 06:18 AM

Quote:

Originally Posted by jrofosho
okay. Thanks Oblivion. It was the init.

Now the images aren't being directed to the correct path. they are going to jrofosho.com/imageexample.gif

they should go to jrofosho.com/forum/images/

No problem.!

Re-edit your includes/functions.php file.. Make sure the path to the arcade images is set correctly.


Quote:

Originally Posted by dwillb
Hey everybody. I have something of an odd problem. I just upgraded my forum to 3.0.7 and reinstalled the arcade hack. I have only one problem. When you click on any of the games in the arcade menu, you get an incorrect link. With Tetris, for example, you get this link:
index.php?act=Arcade&amp;do=play&amp;gameid=4

Instead of this:
arcade.php?act=Arcade&amp;do=play&amp;gameid=4

I'm not sure where the problem lies - I've checked over the installation steps and it appears as if I've done everything correctly. I did this with both 3.0.5 and 3.0.6 and it worked fine, so I'm pretty sure I'm not making any really stupid mistakes. Or maybe I am. Any ideas?

Looks like you're trying to install ibProArcade to me.. Wrong thread bud.! :)

Wachtmeister 04-23-2005 08:07 PM

OMG, i hope, that someone finds my post (237 pages...) ;)

I have the arcade with 300+ games installed on vb 3.0.1

I've upgraded vb to 3.0.7 today and the arcade did not work after upgrade.

How can i get the arcade to run with all games again?

Do i need to reinstall the arcade? (will the currently installed games still be there, after installing?)

I do have to edit all the files after each upgrade right? (so if vb 3.0.8 is out, i have to re-edit the files again?)

Has someone successful upgraded from 3.0.1 to 3.0.7 with transferring his arcade?

Some help would be very fine.

Regards, Wachtmeister

rjordan 04-23-2005 08:12 PM

Quote:

Originally Posted by Wachtmeister
OMG, i hope, that someone finds my post (237 pages...) ;)

I have the arcade with 300+ games installed on vb 3.0.1

I've upgraded vb to 3.0.7 today and the arcade did not work after upgrade.

How can i get the arcade to run with all games again?

Do i need to reinstall the arcade? (will the currently installed games still be there, after installing?)

I do have to edit all the files after each upgrade right? (so if vb 3.0.8 is out, i have to re-edit the files again?)

Has someone successful upgraded from 3.0.1 to 3.0.7 with transferring his arcade?

Some help would be very fine.

Regards, Wachtmeister

Yes, you will have to reinstall just as you would most other hacks.

Wachtmeister 04-23-2005 08:14 PM

Quote:

Originally Posted by rjordan
Yes, you will have to reinstall just as you would most other hacks.

and my currently installed games?

rjordan 04-23-2005 08:16 PM

They will remain as will all scores, play counters, etc.

Only do the file edits, though.

Brandon Sheley 04-24-2005 06:44 AM

i ran into the blank page problem, but i had made a test site, and just added each arcade_ template,, acording to the isntall it did instlal them, but in the styles& templates, they didn't show up ?? any ideas why that happen ? i've isntalled this ona few skins and a few test sites and never ran into this problem,, and looking though this thread i seen other ppl withthat problem, anyways, to fix it i just added each templates manually, and all works great,, maybe you can include a file that a user who runsinto this can look at to transfer the templete files over,,hope soem of this makes sinse, its getting alittle late for me, and i've had a few drinks :-"..lol anyways thx for the mods, its awsome and the add-ons are sweet :)

illusions 04-24-2005 04:10 PM

How do i install new games? .. where would i place the game php file?

YLP1 04-24-2005 06:31 PM

Quote:

Originally Posted by rjordan
v3arcade deleted user avatar fix(?)

After you delete a user, I have found that if you (or more importantly, a search spider) tries to access the stats link for that deleted user, you likely will get something like this:

Code:

Database error in vBulletin 3.0.7:
 
Invalid SQL:
SELECT user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(avatardata) AS hascustom, customavatar.dateline
FROM user AS user
LEFT JOIN avatar AS avatar ON avatar.avatarid = user.avatarid
LEFT JOIN customavatar AS customavatar ON customavatar.userid = user.userid
WHERE user.userid =
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5
 
mysql error number: 1064

There does not seem to be a check built-in to see if a user is actually a valid user. I have hopefully found a fix for this with the following:

Find:
PHP Code:

 $activitycount $DB_site->query("
         SELECT gamesessions.*, games.title FROM " 
TABLE_PREFIX "gamesessions AS gamesessions
         LEFT JOIN " 
TABLE_PREFIX "games AS games ON gamesessions.gamename = games.shortname
         WHERE userid=
$userid AND valid=1 AND $sessionclause GROUP BY sessionid ORDER BY finish DESC"); 

and above this add:
PHP Code:

 if ($user['username']=="") {
$idname $vbphrase['user'];
eval(
print_standard_error('error_invalidid'));


I suspect that the scores for the deleted user might still be there after the user is deleted. If this is correct and vBulletin allows someone else to get this user ID, they might by default get all of the high scores for the games by the previous ID owner. Looking into that.

EDIT: It looks like vB does not recycle user IDs. This SHOULD work to eliminate the error.

I applied the fix for this error but this is the error my arcade.php returns:

Code:

PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in
myISP\LPSForum\arcade.php on line 1664

I need this fix because this is the error that my members are getting:


This one:

Code:

Invalid SQL:
SELECT user.avatarid, user.avatarrevision, avatarpath, NOT ISNULL(avatardata) AS hascustom, customavatar.dateline
FROM vb3_user AS user
LEFT JOIN vb3_avatar AS avatar ON avatar.avatarid = user.avatarid
LEFT JOIN vb3_customavatar AS customavatar ON customavatar.userid = user.userid
WHERE user.userid =


and This one:

Code:

Invalid SQL:
SELECT gamesessions.*,user.username FROM vb3_gamesessions AS gamesessions
LEFT JOIN vb3_user AS user ON gamesessions.userid = user.userid
WHERE vb3_gamesessions.valid=1 AND gamesessions.sessiontype IN (1,2) ORDER BY gamesessions.finish DESC LIMIT 0,1

mysql error: Unknown table 'vb3_gamesessions' in where clause

mysql error number: 1109

I am fairly new to PHP and VB and am quite lost on how to fix these two errors.

Any help is greatly appreicated.
Robin

rjordan 04-24-2005 06:36 PM

Can you post the lines from just before the fix as applied to a few lines after?

YLP1 04-24-2005 06:42 PM

Quote:

Originally Posted by rjordan
Can you post the lines from just before the fix as applied to a few lines after?

Is this what you want to see? The fix code is bolded:

if
Code:

($userid==0) {
                print_no_permission();
        }
        $user = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid=$userid");
                        if ($user['username']=="") {
                        $idname = $vbphrase['user'];
                        eval(print_standard_error('error_invalidid'));
        }

        $activitycount = $DB_site->query("
                                                                                SELECT gamesessions.*, games.title FROM " . TABLE_PREFIX . "gamesessions AS gamesessions
                                                                                LEFT JOIN " . TABLE_PREFIX . "games AS games ON gamesessions.gamename = games.shortname
                                                                                WHERE userid=$userid AND valid=1 AND $sessionclause GROUP BY sessionid ORDER BY finish DESC");
        $played = $DB_site->num_rows($activitycount);
        $i = 1;

And thank you so much for helping me with this.

rjordan 04-24-2005 06:59 PM

Quote:

($userid==0) {
print_no_permission();
}
Should be:
Quote:

if ($userid==0) {
print_no_permission();
}
Otherwise, it looks right.

As for your second MySQL error, is your 'vb3_gamesessions' table in your database? Is that the right table name?

YLP1 04-24-2005 07:05 PM

Quote:

Originally Posted by rjordan
Should be:

Otherwise, it looks right.

As for your second MySQL error, is your 'vb3_gamesessions' table in your database? Is that the right table name?

yep I had this. It just cut off when I copied it.

Code:

if ($userid==0) {
                print_no_permission();
        }
        $user = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "user WHERE userid=$userid");
                        if ($user['username']=="")

I confirmed that I do have a table named vb3_gamesessions

rjordan 04-24-2005 07:12 PM

I just went to your arcade. I clicked on a few names, scores, etc., but cannot get an error. What are the users doing or clicking on when they get the error? Did you get the PHP error after putting in the fix I posted? Have you tried taking it out if that is the case?

It may be at the point of needing to see your arcade.php to do much more.


All times are GMT. The time now is 06:31 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.04309 seconds
  • Memory Usage 1,870KB
  • 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
  • (7)bbcode_code_printable
  • (3)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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