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

Jay T

Quote from: Prasad007 on January 23, 2006, 12:14:42 PM
Quote from: Jay T on January 23, 2006, 11:55:12 AM
Yes, it supports rc2.
the latest version of SMF Arcade supports rc2 ??
i dont think so! it didnt work for me...


If it doesn't work then you did not do the installation properly.


Bigguy

#2021
go to smfarcade.net and check out what they got going on. You should find the help you need there.

Metal_GunBlade

hmm, I'll take my chances and install it...
Life is ours to be spent, not to be saved

Metal_GunBlade

Ok I tried to install it via package manager, and it gave me two errors:

1. Execute Modification ./index.php Test successful
2. Execute Modification ./Themes/default/index.template.php Test failed
3. Execute Modification ./Sources/Subs.php Test failed

4. Execute Modification ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful

will someone please tell me what's wrong??? and if possible could the author install it for me, I will gladly give him/her access to my cpanel-file manager...

P.S: I'm using SMF 1.1 RC2 and am installing it on the default theme...
Life is ours to be spent, not to be saved

Jay T

#2024
Metal, I am a part of the SMFArcade support team. Right now we do not have a compatible rc2 package install. Though one is in the makes.

Go ahead and finish the installation and then you will need to make the edits to the files that failed manually. These edits can be found in the xlm2 document.

Go to www.smfarcade.net for further instructions.

RomanyX

Quote from: sadiqbaig on January 20, 2006, 01:15:30 PM
Parse error: parse error, unexpected ';' in /home/waplinks/public_html/wapforum/Sources/Subs.php on line 1730




Line 1729  // Can't have a one letter smiley, URL, or email!(sorry.)
Line 1730 if ($last_pos <; $pos - 1)
Line 1731 {


Should be


Line 1729  // Can't have a one letter smiley, URL, or email!(sorry.)
Line 1730 if ($last_pos < $pos - 1)
Line 1731 {


Jay T

Quote from: Metal_GunBlade on January 23, 2006, 12:44:42 PM
Ok I tried to install it via package manager, and it gave me two errors:

1. Execute Modification ./index.php Test successful
2. Execute Modification ./Themes/default/index.template.php Test failed
3. Execute Modification ./Sources/Subs.php Test failed

4. Execute Modification ./Sources/ManagePermissions.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful

will someone please tell me what's wrong??? and if possible could the author install it for me, I will gladly give him/her access to my cpanel-file manager...

P.S: I'm using SMF 1.1 RC2 and am installing it on the default theme...

Actually try the zip package attached to this post. Do not unzip and put it directly in your package folder. The use the admin panel of SMF to install it.

http://www.smfarcade.net/index.php/topic,400.0.html

Metal_GunBlade

#2027
Ok, got it...

I have installed it successfully, but there are no games, I will go to the smfarcade site and fetch some up...

Thanks ALOT!
Life is ours to be spent, not to be saved

Bigguy

#2028
2 things have happened to my site lately. 1.) My host updated php versions to 5.0.5. 2.) Because of this I figured I would update my "script.js" file. Now when I go to play a game (it`s only when I click on the game to play it) I get this error:

QuoteFatal error: Only variables can be passed by reference in /home/bigguy/public_html/smf/Sources/Arcade2.php on line 333

Here is my line 333 from the arcade2.php:

Quote$top10[$i]['comment'] = censorText(doUBBC(stripslashes($score['comment'])));

What is the problem, any ideas ???

EDIT: I reverted any changes I made to the script.js file and I still get this error.

umiya

only problem im having now is my images not showing up

here is  the url it is looking for

http://www.hiya-host.com/forum/www.hiya-host.com/forum/Games/air_sk8ing.gif

which obiously should only be http://www.hiya-host.com/forum/Games/myownimage.gif

how do i fix this?

Bigguy

Does anyone knows whats going on. I can play some games.

Quote from: Bigguy on January 23, 2006, 11:48:06 PM
2 things have happened to my site lately. 1.) My host updated php versions to 5.0.5. 2.) Because of this I figured I would update my "script.js" file. Now when I go to play a game (it`s only when I click on the game to play it) I get this error:

QuoteFatal error: Only variables can be passed by reference in /home/bigguy/public_html/smf/Sources/Arcade2.php on line 333

Here is my line 333 from the arcade2.php:

Quote$top10[$i]['comment'] = censorText(doUBBC(stripslashes($score['comment'])));

What is the problem, any ideas ???

EDIT: I reverted any changes I made to the script.js file and I still get this error.

Jay T

Quote from: umiya on January 24, 2006, 09:47:25 AM
only problem im having now is my images not showing up

here is  the url it is looking for

http://www.hiya-host.com/forum/www.hiya-host.com/forum/Games/air_sk8ing.gif

which obiously should only be http://www.hiya-host.com/forum/Games/myownimage.gif

how do i fix this?

In the arcade admin panel, look in the arcade settings. Make sure the games path and url is correct.

Jay T

#2032
Quote from: Bigguy on January 24, 2006, 11:23:16 AM
Does anyone knows whats going on. I can play some games.

Quote from: Bigguy on January 23, 2006, 11:48:06 PM
2 things have happened to my site lately. 1.) My host updated php versions to 5.0.5. 2.) Because of this I figured I would update my "script.js" file. Now when I go to play a game (it`s only when I click on the game to play it) I get this error:

QuoteFatal error: Only variables can be passed by reference in /home/bigguy/public_html/smf/Sources/Arcade2.php on line 333

Here is my line 333 from the arcade2.php:

Quote$top10[$i]['comment'] = censorText(doUBBC(stripslashes($score['comment'])));

What is the problem, any ideas ???

EDIT: I reverted any changes I made to the script.js file and I still get this error.

This is a bug in PHP 5.0.5

The code needs to assign a return for the variable before passing through. I am not sure how to do that. You posted on smfarcade.net and the support staff is checking into it.

You will have a fix very soon.

Bigguy

well thank you very much. I have also found out that some games do work while others I get this error on. ( Dont know if that helps at all)

McNeo2

#2034
SMF 1.1 RC2 / SMF Arcade 1.2.4b

one error I found. picture and error are connected.

Quote8: Undefined index: permissionname_arcade_any
File: /data01/virt8384/domeenid/***/htdocs/Sources/ManagePermissions.php
Line: 1428
   
8: Undefined index: permissionname_arcade_own
File: /data01/virt8384/domeenid/***/htdocs/Sources/ManagePermissions.php
Line: 1424



Looks like I found error. From arcade2.xml I can find:

<file name="Sources/ManagePermissions.php">
<operation>
<search position="before">
<![CDATA[ 'profile' => array(]]></search>
<add><![CDATA[ 'arcade' => array(
'view_arcade' => false,
'play_arcade' => false,
'submit_score' => false,
'challenge_send' => false,
'challenge_view' => false,
'admin_arcade' => false,
),]]>

</add>
</operation>


but somehow it added these lines after 'profile' => array(
so I did little manual fix, and now it is ok.

Oldiesmann

#2035
Quote from: Bigguy on January 23, 2006, 11:48:06 PM
2 things have happened to my site lately. 1.) My host updated php versions to 5.0.5. 2.) Because of this I figured I would update my "script.js" file. Now when I go to play a game (it`s only when I click on the game to play it) I get this error:

QuoteFatal error: Only variables can be passed by reference in /home/bigguy/public_html/smf/Sources/Arcade2.php on line 333

Here is my line 333 from the arcade2.php:

Quote$top10[$i]['comment'] = censorText(doUBBC(stripslashes($score['comment'])));

What is the problem, any ideas ???

EDIT: I reverted any changes I made to the script.js file and I still get this error.

Change that line to this:

         $comment = doUBBC(stripslashes($score['comment']));
         $top10[$i]['comment'] = censorText($comment);


censorText always calls parameters by reference. Up until PHP 4.1.0, you could get away with calling non-variables by reference - PHP would simply copy the results into a temporary variable, then call that variable by reference. However, as of PHP 4.1.0, you could no longer do this.

McNeo2 - the "position" attribute indicates where the code we're searching for should go relative to what we're adding, not the other way around, so that's why it added it in that weird spot.
Michael Eshom
Christian Metal Fans

Bigguy

I have tried what you said and still get the same errors.

Quote from: Oldiesmann on January 25, 2006, 10:39:21 AM
Quote from: Bigguy on January 23, 2006, 11:48:06 PM
2 things have happened to my site lately. 1.) My host updated php versions to 5.0.5. 2.) Because of this I figured I would update my "script.js" file. Now when I go to play a game (it`s only when I click on the game to play it) I get this error:

QuoteFatal error: Only variables can be passed by reference in /home/bigguy/public_html/smf/Sources/Arcade2.php on line 333

Here is my line 333 from the arcade2.php:

Quote$top10[$i]['comment'] = censorText(doUBBC(stripslashes($score['comment'])));

What is the problem, any ideas ???

EDIT: I reverted any changes I made to the script.js file and I still get this error.

Change that line to this:

         $comment = doUBBC(stripslashes($score['comment']));
         $top10[$i]['comment'] = censorText($comment);


censorText always calls parameters by reference. Up until PHP 4.1.0, you could get away with calling non-variables by reference - PHP would simply copy the results into a temporary variable, then call that variable by reference. However, as of PHP 4.1.0, you could no longer do this.

McNeo2 - the "position" attribute indicates where the code we're searching for should go relative to what we're adding, not the other way around, so that's why it added it in that weird spot.

Uzbekistan

Hmmm, is it possible to just upgarde the arcade without losing the scores? Even if I have to do it manually.

DemonicInfluence

yesm that is normal. YOu just have to change the php files not the mysql database where all the scores are saved..

houston

Just updated to smf 1.1 rc 2 and smfarcade 1.2.4b and TP 0.8.4 but for some reason the games icon can not be found. All the permissions are set to allow. The arcade is enabled and this is what I have in the index.template.php file. // the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
</td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


echo '
<a href="', $scripturl, '?action=arcade"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/games.gif" alt="' . "Arcade" . '" style="margin: 2px 0;" border="0" /></a>', $context['menu_separator'];

// If the user is a guest, show [login] button.


But the darn icon is not showing up. Has anybody else had this problem.

Thanks

Advertisement: