News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Arcade

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

Previous topic - Next topic

greyknight17

flapper, I'm no expert at this, but I see some users posting the actual lines in those files here.

So try posting the corresponding lines in the files mentioned and post them here.  Maybe that will help them (the helpers here) more.

flapper

Quote from: greyknight17 on March 02, 2005, 08:35:49 AM
flapper, I'm no expert at this, but I see some users posting the actual lines in those files here.

So try posting the corresponding lines in the files mentioned and post them here.  Maybe that will help them (the helpers here) more.

ok hope this helps

get this error on the Edit Permissions page

Parse error: parse error, unexpected ';', expecting ')' in /home/fhlinux198/a/africansouth.co.uk/user/htdocs/forum/Sources/ManagePermissions.php on line 1035

and members are still not allowed in arcade

here are the lines in the ManagePermissions.php file sorry only have notepad so no line count:


'send_mail' => false,

      ),
         'profile' => array(
            'profile_view' => true,
            'profile_identity' => true,
            'profile_extra' => true,
            'profile_title' => true,
            'profile_remove' => true,
            'profile_remote_avatar' => false,
         ),
         'arcade' => array(
            'view_arcade' => false,
            'play_arcade' => false,
            'submit_score' => false,
            'challenge_send' => false,
            'challenge_view' => false,
            'admin_arcade' => false,
         ),       

         'board' => array(

Waste

Hello, me again.
I got the arcade to work finally by manually installing it.
But, I do not like where the "Current Champion of:" thumbnails are as I have someone on my site3 who is really good at flash games and is the champion of 10+ games.
It really makes his posts huge.

My question is, how can I stick the code for the champion list into thier profiles instead of on thier posts?


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 '

    ',$tmp['name'],' ', $txt['arcade_136'],'<br />';

    }

    else

    echo '

    ', $tmp['name'], ' ', $txt['arcade_136'],'<br />';

    }

    }

flapper

#623
Quote from: flapper on March 02, 2005, 10:39:28 AM
Quote from: greyknight17 on March 02, 2005, 08:35:49 AM
flapper, I'm no expert at this, but I see some users posting the actual lines in those files here.

So try posting the corresponding lines in the files mentioned and post them here.  Maybe that will help them (the helpers here) more.

ok hope this helps

get this error on the Edit Permissions page

Parse error: parse error, unexpected ';', expecting ')' in /home/fhlinux198/a/africansouth.co.uk/user/htdocs/forum/Sources/ManagePermissions.php on line 1035

and members are still not allowed in arcade

here are the lines in the ManagePermissions.php file sorry only have notepad so no line count:


'send_mail' => false,

      ),
         'profile' => array(
            'profile_view' => true,
            'profile_identity' => true,
            'profile_extra' => true,
            'profile_title' => true,
            'profile_remove' => true,
            'profile_remote_avatar' => false,
         ),
         'arcade' => array(
            'view_arcade' => false,
            'play_arcade' => false,
            'submit_score' => false,
            'challenge_send' => false,
            'challenge_view' => false,
            'admin_arcade' => false,
         ),       

         'board' => array(


Thanks for everyones help, problem sorted now, it was a ), short

eg. 'challenge_send' => false,
            'challenge_view' => false,
            'admin_arcade' => false,
         ),       
),

trenchteam

how about a hack to show their latest conquest. Then a link such as a pop up etc for the full list.....

ex.

PACMAN
Champion
[more..]

nokonium

When I try to install the Arcade mod I get the following error

QuoteTable 'db119726169.sidigames_caterogy' doesn't exist
File: /[munged]/Sources/Arcade.php
Line: 861

Note the 'typo' "caterogy"

Do we have a little gremlin?



[Unknown]

I suggest you ask the mod author; it's likely there's been an update.

-[Unknown]

nokonium

#627
I think I found the problem

/* Tables to check */
$tables[][0] = $db_prefix.'games';
$tables[][0] = $db_prefix.'games_challenge';
$tables[][0] = $db_prefix.'games_high';
$tables[][0] = $db_prefix.'games_caterogy';
$tables[][0] = $db_prefix.'games_sessions';
$tables[][0] = $db_prefix.'games_champ';


Should say

$tables[][0] = $db_prefix.'games_category';

I've PM'd him



nokonium

HRMPH!

I've been through and corrected but still have the error, at least this time it is spelt correctly  ;D



Nietha

Quote from: ViV on February 28, 2005, 06:08:44 AM
everything has got installed... its only wen in my admin panel... i select a game and click on install... then fill necessary info...and submit.. it gives me this error...

Unknown column 'dsc' in 'field list'
File: /home/mycpanelloginname(sorry i havnt disclosed that)/public_html/forum/Sources/Arcade.php
Line: 936

Any idea as to what it could be and how can I install games?

open Sources/Arcade.php and change all "dsc" to "desc" there's about 4-5 of them.

nokonium

With a bit of pushing and shoving I have Arcade running. A spikey M8 found the answer for us. Even if you install with Package Manager, you have to manually run arcade_sql.php at least twice, second time after loading the games for me. You may need to hit the game install button a few times as well.



johnm

Quote from: Nietha on March 06, 2005, 02:43:31 AM
Quote from: ViV on February 28, 2005, 06:08:44 AM
everything has got installed... its only wen in my admin panel... i select a game and click on install... then fill necessary info...and submit.. it gives me this error...

Unknown column 'dsc' in 'field list'
File: /home/mycpanelloginname(sorry i havnt disclosed that)/public_html/forum/Sources/Arcade.php
Line: 936

Any idea as to what it could be and how can I install games?

open Sources/Arcade.php and change all "dsc" to "desc" there's about 4-5 of them.


dont do that just run the installer again

dsc is a field name from the games table

nokonium

#632
Original problem sorted, but how do you assign games to different 'caterogies' (  ;D ) ?

I do not seem to get an option to allocate them and they all appear as 'no caterogy'



SeaOfSin

Quote from: Waste on March 02, 2005, 12:24:31 PM
Hello, me again.
I got the arcade to work finally by manually installing it.
But, I do not like where the "Current Champion of:" thumbnails are as I have someone on my site3 who is really good at flash games and is the champion of 10+ games.
It really makes his posts huge.

My question is, how can I stick the code for the champion list into thier profiles instead of on thier posts?


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 '

    ',$tmp['name'],' ', $txt['arcade_136'],'<br />';

    }

    else

    echo '

    ', $tmp['name'], ' ', $txt['arcade_136'],'<br />';

    }

    }



How about this for a compromise.....

goto the Display.template and find the code above and replace with

// Arcade
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="',$tmp['name'],'', $txt['arcade_136'],'" width="20">';
}
else
echo '
', $tmp['name'], ' ', $txt['arcade_136'],'<br />';
}
}
// Arcade


What this does is put just the icons on the post and when you move the mouse over them it gives the information to the game.

you can also move the same code to below


// Now print the second column where the members avatar/text is shown.
echo '



which moves it underneath the icons below the avatar.

Hope this is of some help for now!

Sea Of Sin

boogiedown

I installed the arcade, running 1.0.2 ran the sql.php file all success
When i go into admin and intall a game i get the following error:
Parse error: parse error, unexpected T_STRING in /client/milossa/public_html/board/Games/parasites.swf on line 369

Ive tried other games and it does the same.

niko

it's bug in 1.1 and will be fixed in 1.1.1 one missing thing and ... :(
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

jerm

#636
i installed this, then got parse errors when viewing threads, said i had to upgrade the database. Also in my sources folder it created another folder called sources and put the files in there? and a bunch of other links where invalid as well

Christian A. Herrnboeck

The package is mis-packaged. You need to move everything in Sources/sources/ to just Sources/ (copy files up one dir).

Also, I keep getting this:  Parse error: parse error, unexpected '}' in /home/lounge/public_html/forum/Games/diamond_chaser.swf on line 91
I haven't had time to check the code... but from the looks of it, you're trying to parse a binary swf file with php??


Farmers:Producing food for the world!

niko

fm-2: 1.1.1 is availbe from http://smfgames.com/forum/index.php?topic=410.0...

mis-paging i check it...
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

Aravot

Upgraded from 1.0.3 to 1.1.1 (default theme)
The copyright info bottom of the page still read SMF Arcade 1.0.3.

Admin>>Highscores settings, following error
QuoteInvalid argument supplied for foreach()

Admin>>Arcade settings
Games Directory (Path):
Games Directory (URL):
type the path for Games folder click submit, nothing shows in the text box blank

Package Manager reads SMF Arcade 1.1 instead of 1.1.1

Advertisement: