News:

Join the Facebook Fan Page.

Main Menu

SMF Arcade

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

Previous topic - Next topic

DemonicInfluence

'profile' => array(
            'profile_view' => true,
            'profile_identity' => true,
            'profile_extra' => true,
            'profile_title' => true,
            'profile_remove' => true,
            'profile_server_avatar' => false,
            'profile_upload_avatar' => false,
            'profile_remote_avatar' => false,
            )
         ),


Remove the extra )

Jay T

Quote from: Sting on November 09, 2005, 01:09:25 PM
well that seems to already be there... but nothing shows up... is there a setting that needs to be changed?

Did you do the display.php edits? And did you put the exact code I gave you?


Julie

Quote from: Jay T on November 09, 2005, 08:58:52 PM
Quote from: Sting on November 09, 2005, 01:09:25 PM
well that seems to already be there... but nothing shows up... is there a setting that needs to be changed?
Did you do the display.php edits? And did you put the exact code I gave you?

I'm having same problem. sources/Display.php was already updated (checked same as in XML and code you posted) and have updated my own Display.template.php but nothing appears on the right  >:(  I even changed to default theme to see if it would show on that but did not :(

Sting

#1763
Quote from: Jay T on November 09, 2005, 08:58:52 PM
Quote from: Sting on November 09, 2005, 01:09:25 PM
well that seems to already be there... but nothing shows up... is there a setting that needs to be changed?

Did you do the display.php edits? And did you put the exact code I gave you?



Ok, I didn't add anything to the Display.php under the Sources directory... I checked the display.template.php under the themes directory.

And ya, I even overwrote the old code that the package manager installed and still no result.

EDIT: I even tried the one for the signatures and it didn't show up there either.

snork13

Quote from: Sting on November 09, 2005, 09:30:26 PM
Quote from: Jay T on November 09, 2005, 08:58:52 PM
Quote from: Sting on November 09, 2005, 01:09:25 PM
well that seems to already be there... but nothing shows up... is there a setting that needs to be changed?

Did you do the display.php edits? And did you put the exact code I gave you?



Ok, I didn't add anything to the Display.php under the Sources directory... I checked the display.template.php under the themes directory.

And ya, I even overwrote the old code that the package manager installed and still no result.

EDIT: I even tried the one for the signatures and it didn't show up there either.

the arcade works in 1.1rc1, some things need to be change though, like updating the database using the sql file found in the mod. To fix the champion thing, in sources/display.php, use this code instead of what's in the mod files

/* Arcade thingy */
$arcade_champ = array();
$req = db_query("SELECT * FROM {$db_prefix}games_champ, {$db_prefix}games
WHERE {$db_prefix}games_champ.game={$db_prefix}games.game",__FILE__,__LINE__);
while ($rivi = mysql_fetch_assoc($req))
{
if(!empty($rivi['game']) && !empty($rivi['member']))
$arcade_champ[$rivi['member']][$rivi['game']] = $rivi;

if(file_exists("./Games/{$rivi['game']}.gif")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.gif";
}
elseif(file_exists("./Games/{$rivi['game']}.GIF")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.GIF";
}
elseif(file_exists("./Games/{$rivi['game']}.png")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.png";
}
elseif(file_exists("./Games/{$rivi['game']}.PNG")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.PNG";
}
elseif(file_exists("./Games/{$rivi['game']}.jpg")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.jpg";
}
elseif(file_exists("./Games/{$rivi['game']}.JPG")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.JPG";
}
else{
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "";
}

}
loadLanguage('Arcade'); // We need strings from Arcade language file
$context['arcade']['champions'] = $arcade_champ;


and this may be the default, but my code in the $themedir/display.template.php

if(@is_array($context['arcade']['champions'][ $message['member']['id'] ])){
foreach($context['arcade']['champions'][ $message['member']['id'] ] as $tmp){
//print_r($tmp);
if($tmp['thumbnail'] != ''){
echo '
<img src="', $tmp['thumbnail'], '" alt="" width="20"><br />',$tmp['name'],' ', $txt['arcade_136'],'<br />';
}
else
echo '
', $tmp['name'], ' ', $txt['arcade_136'],'<br />';
}
}



hope this helps, you can find more info, it somewhere in the 100+ pages on the aracade mod
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Sting

Quote from: snork13 on November 10, 2005, 12:44:11 AM
Quote from: Sting on November 09, 2005, 09:30:26 PM
Quote from: Jay T on November 09, 2005, 08:58:52 PM
Quote from: Sting on November 09, 2005, 01:09:25 PM
well that seems to already be there... but nothing shows up... is there a setting that needs to be changed?

Did you do the display.php edits? And did you put the exact code I gave you?



Ok, I didn't add anything to the Display.php under the Sources directory... I checked the display.template.php under the themes directory.

And ya, I even overwrote the old code that the package manager installed and still no result.

EDIT: I even tried the one for the signatures and it didn't show up there either.

the arcade works in 1.1rc1, some things need to be change though, like updating the database using the sql file found in the mod. To fix the champion thing, in sources/display.php, use this code instead of what's in the mod files

/* Arcade thingy */
$arcade_champ = array();
$req = db_query("SELECT * FROM {$db_prefix}games_champ, {$db_prefix}games
WHERE {$db_prefix}games_champ.game={$db_prefix}games.game",__FILE__,__LINE__);
while ($rivi = mysql_fetch_assoc($req))
{
if(!empty($rivi['game']) && !empty($rivi['member']))
$arcade_champ[$rivi['member']][$rivi['game']] = $rivi;

if(file_exists("./Games/{$rivi['game']}.gif")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.gif";
}
elseif(file_exists("./Games/{$rivi['game']}.GIF")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.GIF";
}
elseif(file_exists("./Games/{$rivi['game']}.png")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.png";
}
elseif(file_exists("./Games/{$rivi['game']}.PNG")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.PNG";
}
elseif(file_exists("./Games/{$rivi['game']}.jpg")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.jpg";
}
elseif(file_exists("./Games/{$rivi['game']}.JPG")){
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "Games/{$rivi['game']}.JPG";
}
else{
$arcade_champ[$rivi['member']][$rivi['game']]['thumbnail'] = "";
}

}
loadLanguage('Arcade'); // We need strings from Arcade language file
$context['arcade']['champions'] = $arcade_champ;


and this may be the default, but my code in the $themedir/display.template.php

if(@is_array($context['arcade']['champions'][ $message['member']['id'] ])){
foreach($context['arcade']['champions'][ $message['member']['id'] ] as $tmp){
//print_r($tmp);
if($tmp['thumbnail'] != ''){
echo '
<img src="', $tmp['thumbnail'], '" alt="" width="20"><br />',$tmp['name'],' ', $txt['arcade_136'],'<br />';
}
else
echo '
', $tmp['name'], ' ', $txt['arcade_136'],'<br />';
}
}



hope this helps, you can find more info, it somewhere in the 100+ pages on the aracade mod

bingo, thnx alot  ;)

omeration

hey, for some reason i hve 3 links that say arcade, does anyone know why?

here is pic:

DemonicInfluence

Go to your index.template file. Delete 2 of the arcade buttons. Just search for arcade in your file. Then delete 2 of them.

redone

You can find more of those common questions+fixes here: www.smfarcade.com

~redone


DemonicInfluence

yes, but guests can't go there...

gh0stw4lk3r

u aint a guest when u register ;)


DemonicInfluence

But that takes awhile.

rider

Actucully you don't have to wait for a activation email.The reason you have to sign up is to access the d/l's.I just taken over the domain and I was amazed how much bandwith is used fro them.Until I can fix this ,I have to leave it this way.I'm sorry for the inconvience,the good news it will be taken care of shortly.If you have a problem with trying to register let me know and I'll take care of it. :D

DemonicInfluence


rider

problem sovled.No need to register to downloads the game packs or browse the fourms. :D :D

DemonicInfluence


rider

FYI.Game pack 10 has been released.Enjoy. :D

Aravot

Quote from: rider on November 14, 2005, 02:32:50 PM
FYI.Game pack 10 has been released.Enjoy. :D

Tried to download from http://www.smfarcade.com got '404 Not Found'

rider

Quote from: Aravot on November 14, 2005, 02:58:05 PM
Quote from: rider on November 14, 2005, 02:32:50 PM
FYI.Game pack 10 has been released.Enjoy. :D

Tried to download from http://www.smfarcade.com got '404 Not Found'
Thanks for letting me know.I
won't beable to fix until later when I get home from work.

rider

Downloads are working again.Sorry for any inconviences. :D

Advertisement: