News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF Arcade

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

Previous topic - Next topic

margarett

OK, now show us Themes/Factory_Theme/Display.template.php :)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair


margarett

Try this (I just removed line 16)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

eldritch1969

That did it ! Thanks a lot  ;D

MrMike

Is there a way to have some random game picks appear on the board index page, similar to the stats or who's online sections?

mikedijital

#5085
Answered my own question,

natcip

Is there a version for SMF 2.0.11?

margarett

It should work with 2.0.11 the same way as with previous 2.0.x versions ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

natcip

Ok great, thanks :)

Another thing: is there a manual installation instruction for this mod?

bud01100

Quote from: MrMike on June 28, 2015, 07:09:06 PM
Is there a way to have some random game picks appear on the board index page, similar to the stats or who's online sections?

Use Portamx or a similar wrapper, and put the following code in as a PHP code block.

Use the limit= variable to set the # of random games it will display.

It will display the game Icon and game name.





global $db_prefix, $scripturl, $modSettings, $smcFunc, $txt, $random;

$limit=1;
$results = $smcFunc['db_query']('', '
SELECT id_game, game_directory, thumbnail, game_name, enabled
FROM {db_prefix}arcade_games
WHERE enabled = 1
ORDER BY RAND()
LIMIT {int:num}',
array(
'num' => $limit,
)
);

while ($rg = mysql_fetch_assoc($results)){
$random .= '
<td width="20%"><center><a href="'.$scripturl.'?action=arcade;sa=play;game='.$rg['id_game'].'"><img class="imgBorder" src="'.$modSettings['gamesUrl'].'/'.$rg['game_directory'].'/'.$rg['thumbnail'].'" width="30" height="30" alt="'.$rg['game_name'].'" title="Play '.$rg['game_name'].'" /></a><br />
<a href="'.$scripturl.'?action=arcade;sa=play;game='.$rg['id_game'].'">'.$rg['game_name'].'</a></center></td>';
}

empty($random) ? $random = '<div class="smalltext centertext">'. $txt['arcade_no_games'] .'</div>' : '';
$smcFunc['db_free_result']($results);
echo '<table width="100%"><tr>'.$random.'</tr></table>';

suga

Something went wrong with my board after installing a mod...it was fixed but when I put back up the Arcade, now it's not submitting the score.  It just stops after you click submit score after games.  Any help appreciated!!

PhilipRamZ

Is there a new site to download the games from? I have the package installed, but the hxxp:smfarcade.info [nonactive] site is not up and running. Just wondering, since I don't have any games that I can use.

-Sas-

This is my original support question:

Quote from: -Sas- on April 04, 2016, 03:37:52 PM
Hello,

Is there someone who can help me? I'm attempting to put SMF_ARCADE_2.5_RC1_Public back on my Forum after upgrading to SMS 2.0.11. I'm trying to do this as follows:

===> I emulated my forum to SMF 2.0 RC3
===> I uploaded SMF_ARCADE_2.5_RC1_Public
===> Than i tryed to do ' install modification'

There it go's wrong. There it gives an error with the following warning:

Quote from: -Sas- on February 15, 2016, 10:05:31 AM
1.    Uitpakken Bestand    ./Sources/Arcade.php   
2.    Uitpakken Bestand    ./Sources/ArcadeAdmin.php   
3.    Uitpakken Bestand    ./Sources/ArcadeArena.php   
4.    Uitpakken Bestand    ./Sources/ArcadeList.php   
5.    Uitpakken Bestand    ./Sources/ArcadeMaintenance.php   
6.    Uitpakken Bestand    ./Sources/ArcadeGame.php   
7.    Uitpakken Bestand    ./Sources/ArcadeStats.php   
8.    Uitpakken Bestand    ./Sources/Profile-Arcade.php   
9.     Uitpakken Bestand    ./Sources/Submit-custom.php   
10.    Uitpakken Bestand    ./Sources/Submit-ibp.php   
11.    Uitpakken Bestand    ./Sources/Submit-phpbb.php   
12.    Uitpakken Bestand    ./Sources/Submit-silver.php   
13.    Uitpakken Bestand    ./Sources/Submit-v1game.php   
14.    Uitpakken Bestand    ./Sources/Submit-v2game.php   
15.    Uitpakken Bestand    ./Sources/Submit-v3arcade.php   
16.    Uitpakken Bestand    ./Sources/Subs-Arcade.php   
17.    Uitpakken Bestand    ./Sources/Subs-ArcadeAdmin.php   
18.    Uitpakken Bestand    ./Sources/ManageGames.php   
19.    Uitpakken Bestand    ./Sources/SWFReader.php   
20.    Uitpakken Bestand    ./Themes/default/Arcade.template.php   
21.    Uitpakken Bestand    ./Themes/default/ArcadeAdmin.template.php   
22.    Uitpakken Bestand    ./Themes/default/ArcadeArena.template.php   
23.    Uitpakken Bestand    ./Themes/default/ArcadeList.template.php   
24.    Uitpakken Bestand    ./Themes/default/ArcadeProfile.template.php   
25.    Uitpakken Bestand    ./Themes/default/ArcadeGame.template.php   
26.    Uitpakken Bestand    ./Themes/default/ArcadeStats.template.php   
27.    Uitpakken Bestand    ./Themes/default/ManageGames.template.php   
28.    Uitpakken Bestand    ./Themes/default/css/arcade.css   
29.    Uitpakken Bestand    ./Themes/default/scripts/arcade.js   
30.    Uitpakken Bestand    ./Themes/default/scripts/swfobject.js   
31.    Uitpakken Bestand    ./Themes/default/images/arcade_star.gif   
32.    Uitpakken Bestand    ./Themes/default/images/arcade_star2.gif   
33.    Uitpakken Bestand    ./Themes/default/images/arena_accept.png   
34.    Uitpakken Bestand    ./Themes/default/images/arena_decline.png   
35.    Uitpakken Bestand    ./Themes/default/images/favorite.gif   
36.    Uitpakken Bestand    ./Themes/default/images/favorite2.gif   
37.    Uitpakken Bestand    ./Themes/default/images/gold.gif   
38.    Uitpakken Bestand    ./Themes/core/Arcade.template.php   
39.    Uitpakken Bestand    ./Themes/core/ArcadeAdmin.template.php   
40.    Uitpakken Bestand    ./Themes/core/ArcadeArena.template.php   
41.    Uitpakken Bestand    ./Themes/core/ArcadeList.template.php   
42.    Uitpakken Bestand    ./Themes/core/ArcadeProfile.template.php   
43.    Uitpakken Bestand    ./Themes/core/ArcadeGame.template.php   
44.    Uitpakken Bestand    ./Themes/core/ArcadeStats.template.php   
45.    Uitpakken Bestand    ./Themes/core/ManageGames.template.php   
46.    Uitpakken Bestand    ./Themes/core/css/arcade.css   
47.   Uitpakken Bestand    ./Themes/core/images/arcade_star.gif   
48.    Uitpakken Bestand    ./Themes/core/images/arcade_star2.gif   
49.    Uitpakken Bestand    ./Themes/core/images/arena_accept.png   
50.    Uitpakken Bestand    ./Themes/core/images/arena_decline.png   
51.    Uitpakken Bestand    ./Themes/core/images/favorite.gif   
52.    Uitpakken Bestand    ./Themes/core/images/favorite2.gif   
53.    Uitpakken Bestand    ./Themes/core/images/gold.gif   
54.    Uitpakken Bestand    ./arcade.php   
55.    Uitpakken Bestand    ./newscore.php   
56.    Maken Boom    ./Games   
57.    Uitpakken Bestand    ./Games/minesweeper.zip   
58.    Voer code uit    arcadeinstall/Database.php   
59.    Voer code uit    arcadeinstall/Subs-Install.php   
60.    Pas database aan    arcadeinstall/install_main.php   
* 61.    Voer aanpassing uit    ./index.php    Succes
*    62.    Voer aanpassing uit    ./Sources/ManageSettings.php    Test mislukt (==> test failed)
      1.    Voeg toe voor    ./Sources/ManageSettings.php    Test mislukt (==> test failed)

* 63.    Voer aanpassing uit    ./Sources/ManagePermissions.php    Succes
* 64.    Voer aanpassing uit    ./Sources/Profile.php    Succes
* 65.    Voer aanpassing uit    ./Sources/Subs-Db-mysql.php    Succes
* 66.    Voer aanpassing uit    ./Sources/Subs-Db-sqlite.php    Succes
* 67.    Voer aanpassing uit    ./Sources/Subs-Db-postgresql.php    Succes
* 68.    Voer aanpassing uit    ./Sources/Subs.php    Succes
* 69.    Voer aanpassing uit    ./Sources/Admin.php    Succes
* 70.    Voer aanpassing uit    ./Sources/Who.php    Succes
* 71.    Voer aanpassing uit    ./Sources/Modlog.php    Succes
72.   Uitpakken Bestand    ./Themes/default/languages/Arcade.english.php   
73.    Uitpakken Bestand    ./Themes/default/languages/ArcadeAdmin.english.php   
74.    Uitpakken Bestand    ./Themes/default/languages/ArcadeEmail.english.php   
* 75.    Voer aanpassing uit    ./Themes/default/languages/Modifications.english.php    Succes
76.    Uitpakken Bestand    ./Themes/default/languages/Arcade.english-utf8.php   
77.    Uitpakken Bestand    ./Themes/default/languages/ArcadeAdmin.english-utf8.php   
78.    Uitpakken Bestand    ./Themes/default/languages/ArcadeEmail.english-utf8.php   
79.    Voer aanpassing uit    ./Themes/default/languages/Modifications.english-utf8.php

ManageSettings.php is writable and enforceable (chmod777). If i look at the Error (in popup), it recommends a change in the ManageSettings code (see attachment). When I make the change in the code and try again as described, i get exactly the same error and recommended change in the code.

Does anyone know what is going wrong?

When Illori said this, i tryed it....:

Quote from: Illori on April 04, 2016, 03:48:39 PM
they said they made the change already.

if you did add the code you can go ahead and install the mod and ignore the error.

This isn't working also.... I get this:

"Incorrect table definition; there can be only one auto column and it must be defined as a key
file: /home/forumspellenforum_nl/public_html/smf/Packages/temp/arcadeinstall/Subs-Install.php
line: 133"


Is there someone who knows what Ican do now?

lurkalot

Quote from: -Sas- on April 05, 2016, 12:11:17 PM

Is there someone who knows what Ican do now?


You could perhaps try the latest version SMF Arcade 2.5 RC3 And see if that goes any better for you.

-Sas-

With this one i get the following message when i try to 'install modification':

"Incorrect table definition; there can be only one auto column and it must be defined as a key
Bestand: /home/forumspellenforum_nl/public_html/smf/Packages/temp/arcadeinstall/Subs-Install.php
Regel: 120"

lurkalot

Quote from: -Sas- on April 05, 2016, 12:51:10 PM
With this one i get the following message when i try to 'install modification':

"Incorrect table definition; there can be only one auto column and it must be defined as a key
Bestand: /home/forumspellenforum_nl/public_html/smf/Packages/temp/arcadeinstall/Subs-Install.php
Regel: 120"


Sorry just read your post above properly, you said "I'm attempting to put SMF_ARCADE_2.5_RC1_Public back on my Forum after upgrading to SMS 2.0.11"

So what version did you upgrade from? Was it SMF 1.1.xx series?  If it was I'd start over with the arcade, and remove the tables in your database relating to SMF arcade.  Then try to install it again. Please make a backup of your database first, just in case it should go wrong.

-Sas-

It was indeed from SMF 1.1.21 to SMF 2.0.11. Do you mean that i should remove the Arcade tables from my FTP or the PHPmyadmin database?

lurkalot

Quote from: -Sas- on April 05, 2016, 02:44:15 PM
It was indeed from SMF 1.1.21 to SMF 2.0.11. Do you mean that i should remove the Arcade tables from my FTP or the PHPmyadmin database?

Yes your database via PHPmyadmin. Remember it will mean you'll be starting over from scratch with the arcade.  You'll have to reinstall all your games. everything in the arcade will be reset, scores stats etc.

Unless you want to wait for a better solution, assuming there is one. ;) That's what I did when I moved to SMF 2.0.xx a few years ago.


-Sas-

No problem.... It isn't working now, so there's no use of our games and stuf this way hihi  ;D. I will make a double back up from my database first :P

-Sas-

YEESSSSS!!! Finaly!!!  8) Thank you so mutch  :D I have been fighting with Arcade since Febuary, so you've made me so glade it's working!!!

Advertisement: