SMF Arcade

Started by niko, October 01, 2004, 02:45:55 PM

Previous topic - Next topic

niko

http://smfarcade.arcade.web.com/ (Support)
http://arcade.web.com/ (Games)

is current urls

Who's Online requires adding something to somewhere dont remember what it was... $txt['action_aracade'] = 'Arcade'; or something like that... i will tell more after sleep

Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

Sting

#1641
Ok, 1st off, I couldn't find the game Mahjongg to test it so until I find it I can't help ya.

2ndly, I was looking back through some of the eroors that have been logged in the forum and I'm wondering if someone can't help me solve these before they potentially cause problems.

Error #1:
8: Undefined variable: game
File: /home/stingah/public_html/xfactor/Sources/Display.php
Line: 576


Line 576 code:
if(file_exists($modSettings['arcade_games_dir']."/".$game['game'].".".$ex)){

obviously it's the $game that's the problem, but I'm unsure where exactly it needs to be defined.

Error #2:
8: Undefined variable: i
File: /home/stingah/public_html/xfactor/Sources/Display.php
Line: 573


Line 573 code:
$context['arcade']['games'][$i]['thumbnail'] = ""; // No thumbnail for default

same as the last, unsure where to define $i.

EDIT: duh... nvm, just had to globalize them

global $game, $i;

Gargoyle


Ray™

Sorry to ask but where does this line of code go??

   global $game, $i;

Thanks
arcade-Only (over 800 Games)
http://www.arcade-only.com
Hand Made Ceramics
http://cbr.rranderson.com

Sting

#1644
Quote from: Ray on October 23, 2005, 12:38:35 AM
Sorry to ask but where does this line of code go??

   global $game, $i;

Thanks

Sources/Display.php

Just so you have an idea of where to put it I added code above it. This is just where they are declaring their variables.

// The central part of the board - topic display.
function Display()
{
global $scripturl, $txt, $db_prefix, $modSettings, $context, $settings, $options, $sourcedir;
global $user_info, $ID_MEMBER, $board_info, $topic, $board, $attachments, $messages_request;
global $game, $i;





Quote from: Swoah on October 18, 2005, 07:09:44 AM
Hi guys,

The arcade mod is working perfectly except for a few tiny things..
First of all i'm experiencing a lot of error messages in the error log:
Undefined variable: game       File: c:\domains\xxxxxxxx.com\wwwroot\forum\Sources\Display.php            Line: 555

The line it's refering to is:
if(file_exists($modSettings['arcade_games_dir']."/".$rivi['game'].".".$ex)){

I've tried the solution JohnM gave here: http://www.simplemachines.org/community/index.php?topic=29619.msg353026#msg353026

Thus this didn't work. I'm still getting the error message.
Can anybody help me with this?


There's also one little problem, in the game listing you don't see the thumbnails when you're using Firefox with IE everything is oke...

Thanks for your help...

That will solve your problem with the undeclared variables as well. As for the displaying of thumbnails, I have no problems on my forum. If you're still having the problems, post the link to your site and I'll see if it happens to me.

deathwantsme

Database 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 1
File: /home/theorder/public_html/forum/Sources/Display.php
Line: 567

Note: It appears that your database may require an upgrade. Your forum files are currently at version SMF 1.0.5, whereas your database is at version SMF 1.0.2. It is recommended that you execute the latest version of upgrade.php.

How do i fix this?

Sting

ok, I got this error before I ran the arcade_sql.php have you ran this?

If you haven't do so this will update you database. And if it tells you it has an "Internal Configuration Error", chmod (change permissions from 666 to 644).

Swoah

Thanks Sting, it seems to work...

deathwantsme

how do you "run" a file in cPanel?

Xarcell

I dunno from cPanel, but I think it means just go to teh url of the file "http://xxx/xxx/xx/yourfile.php

-Xarcell

deathwantsme

yup, that seemed to do it. Thanks MUCH!

Ray™

#1651
Thanks Sting no one has posted that fix - thanks again

maybe you have an idea about this error -- this is my last one to have that shows up all the time

http://www.rranderson.com/xxx/index.php?action=arcade  
8: Undefined index: member
File: X:\xxx\xxx\Themes\default\TPortalBlocks.template.php (game_list sub template - eval?)
Line: 220

this is in the acade.template.php
and here is the code -- I think

if($temp['highscore'] != 2){
if(count($temp['top10']) >= 1){

$champ = "<a href=\"{$scripturl}?action=profile;u={$temp['top10'][0]['member']['ID_MEMBER']}\">".$temp['top10'][0]['member']['realName']."</a><br />";

$champ.= (float)$temp['top10'][0]['score'];
         }
arcade-Only (over 800 Games)
http://www.arcade-only.com
Hand Made Ceramics
http://cbr.rranderson.com

Sting

#1652
Quote from: deathwantsme on October 23, 2005, 01:36:45 PM
how do you "run" a file in cPanel?

from cpanel click on File manager, go to the file you want to run, click on it and a link should show up around the tiop right hand side http://www.yoursite.com/folder/filename.php

Quote from: Ray on October 23, 2005, 02:00:06 PM
Thanks Sting no one has posted that fix - thanks again

maybe you have an idea about this error -- this is my last one to have that shows up all the time

http://www.rranderson.com/xxx/index.php?action=arcade 
8: Undefined index: member
File: X:\xxx\xxx\Themes\default\TPortalBlocks.template.php (game_list sub template - eval?)
Line: 220


npz, you might try opening your TPortalBlocks.template.php and doing the same thing there

global $member;

if that doesn't work you might post the code or file and I will look through it.

Ray™

it didnt work so here is the file to look at and I want to really thank you

shoot i do not have rights to upload a file

you want the code from tportal or the arcade file??
arcade-Only (over 800 Games)
http://www.arcade-only.com
Hand Made Ceramics
http://cbr.rranderson.com

Sting

The TPortalBlocks.template.php is where the prob is so that file.

Ray™

#1655
Here it is and sorry it is sooo big

yea i didnt like doing that

sending email
arcade-Only (over 800 Games)
http://www.arcade-only.com
Hand Made Ceramics
http://cbr.rranderson.com

Sting

#1656
Quote from: Ray on October 23, 2005, 02:00:06 PM
http://www.rranderson.com/xxx/index.php?action=arcade 
8: Undefined index: member
File: X:\xxx\xxx\Themes\default\TPortalBlocks.template.php (game_list sub template - eval?)
Line: 220

this is in the acade.template.php
and here is the code -- I think

if($temp['highscore'] != 2){
if(count($temp['top10']) >= 1){

$champ = "<a href=\"{$scripturl}?action=profile;u={$temp['top10'][0]['member']['ID_MEMBER']}\">".$temp['top10'][0]['member']['realName']."</a><br />";

$champ.= (float)$temp['top10'][0]['score'];
         }

hmmz... well the line of code that is said to have the problem according to the error was line 220 of TPortalBlocks.template.php

echo '<br />'.$bullet.'<a href="', $scripturl, '?action=pm">' .$txt['tp-pm'].' ', $context['user']['messages'], '</a>';


and the code you posted above... well, I'm not too sure. I mean, I don't see anything that just jumps out at me that would cause an error.

deathwantsme

Would anyone like to be nice enough to give me the links for all the sites where you can download games? There are over 1100 posts in this thread and i dont want to have to search all of the posts for the game downloads. Much appriciated if you do!

Gargoyle


deathwantsme

Is this the only ones or are there other sites where you can get games for your arcade? If i can find other flash games that arent on there, would i be able to install them on my forum?

Advertisement: