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

gh0stw4lk3r

anyone already knows what to do with my strange problem? the thousends of entries of undefined index: member on line 303 in arcade.dutch.php
see a few posts above

Gandalf

Hello,

I am always getting this error:

3.  Execute Modification  ./Sources/Subs.php  Test failed
4. Execute Modification ./Sources/ManagePermissions.php Test failed


it's a fresh installation of SMF1.1RC1, any ideas??

Thx
Siemens-mobiles.org Visit it and you won't regret it :D

DemonicInfluence

that's normal. The package has a few problems. Just manually opent he .xml file and do the edits for those 2 file

niko

Quote from: Jerry on November 07, 2005, 06:41:56 PM
Quote from: rider on November 07, 2005, 04:54:00 PM
Quote from: ndiniz on November 07, 2005, 04:48:32 PM
I'm using the current version, and It tells me that subs.php test failed.

Goto www.smfarcade.com and check out the FAQ section.I think you should be ok to install it but check there to make sure.
What modification to subs.php does the arcade make? Any modifications to that file that didn't work might mess up the mod, or forums completely.

It does only add Arcade menu item to admin area
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

RoarinRow

This is my last error to resolve with SMF Arcade:

8: Undefined variable: latest
File: /forum/Sources/Arcade2.php
Line: 518

Anyone know how to resolve?  Please.

I'm on version 1.0.5

Thanks!

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

rider

Not me,but I'll see what I can find out.

anunlike

I just installed this on a test fresh install of 1.1 Beta 3 Public. Everything went smoothly and with no problems, until I actually went to the Arcade. I get:
QuoteYou 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/xxx/public_html/testforums2/Sources/Arcade.php
Line: 252

In my Forum Error Log, I also get:
Quoteadmin
XX.XX.XX.XX
http://testforums2.anunlikeworld.info/index.php?action=arcade
Undefined variable: latest
/home/xxx/public_html/testforums2/Sources/Arcade2.php
Line: 518
&
admin
XX.XX.XX.XX
http://testforums2.anunlikeworld.info/index.php?action=arcade
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
/home/xxx/public_html/testforums2/Sources/Arcade.php
252

I've checked all the files manually and everything is OK. Any help would be great.
???

Sting

Quote from: RoarinRow on November 08, 2005, 05:12:24 PM
This is my last error to resolve with SMF Arcade:

8: Undefined variable: latest
File: /forum/Sources/Arcade2.php
Line: 518

Anyone know how to resolve?  Please.

I'm on version 1.0.5

Thanks!


Ok, first open Arcade2.php and scroll up to the top of the fuction where you found $latest. When you find it, add $latest to the gloabal variables. Example:

global $context, $user_info, $db_prefix, $modSettings, $latest;




Quote from: anunlike on November 09, 2005, 12:30:35 AM
I just installed this on a test fresh install of 1.1 Beta 3 Public. Everything went smoothly and with no problems, until I actually went to the Arcade. I get:
QuoteYou 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/xxx/public_html/testforums2/Sources/Arcade.php
Line: 252

In my Forum Error Log, I also get:
Quoteadmin
XX.XX.XX.XX
http://testforums2.anunlikeworld.info/index.php?action=arcade
Undefined variable: latest
/home/xxx/public_html/testforums2/Sources/Arcade2.php
Line: 518
&
admin
XX.XX.XX.XX
http://testforums2.anunlikeworld.info/index.php?action=arcade
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
/home/xxx/public_html/testforums2/Sources/Arcade.php
252

I've checked all the files manually and everything is OK. Any help would be great.
???

Do like listed above for the first error... I'm not sure about the other error. Did the arcade_sql.php run correctly?

pastortravis

Okay...

I am running RC1 and I finally figured out how to get the Arcade 1.2.2 to work.

I have a few issues that have arisen....

1.  Only I can access the Arcade.  Everyone else it tells them that they do not have access to the arcade.  ANY THOUGHTS?
2.  How do I upgrade to 1.2.3 and is there really any difference?

Please send info on these questions.  Thanks!

rider

Quote from: pastortravis on November 09, 2005, 10:17:21 AM
Okay...

I am running RC1 and I finally figured out how to get the Arcade 1.2.2 to work.

I have a few issues that have arisen....

1.  Only I can access the Arcade.  Everyone else it tells them that they do not have access to the arcade.  ANY THOUGHTS?
2.  How do I upgrade to 1.2.3 and is there really any difference?

Please send info on these questions.  Thanks!
Glad you got it working.For the permissions you need to allow each memebergroup permission to access the arcade.You can do that by editing the permissions  thru your admin panel on your site.There is no diff btw 1.2.2 and 1.2.3.Hope this helps.if you need more help click on my sig and go there.

pastortravis

Thanks for that info...

I have searched through the Permission of my forums, but there is nothing giving or denying access to the games area.

Is there something that was missed during installation that I can manually add. 

Thanks.

Jay T

Here is the code for SMF 1.1RC1 to have the champion icons to appear in the members signature versus their profile.

themedir> display.template.php

Find:
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">', $message['member']['signature'], '</div>';


Replace with:
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%; padding-bottom: 3px;" class="signature">', $message['member']['signature'], '</div><hr width="100%" size="1" class="hrcolor" />';
if(@is_array($context['arcade']['champions'][ $message['member']['id'] ])){
echo "SmfArcade Champion&nbsp;";

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

niko

1.2.4 is to be released 15.11.2005 if testing goes all right and still few features missing
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

rider

Quote from: Niko on November 09, 2005, 12:36:59 PM
1.2.4 is to be released 15.11.2005 if testing goes all right and still few features missing

Thanks for the update niko and JayT thanks for the code for the the championicons. :D

Sting

could someone post code to have the championships listed on the side of the posts, like under the avatars or under the icons for msn, etc.?

Jay T

Quote from: Sting on November 09, 2005, 01:09:25 PM
could someone post code to have the championships listed on the side of the posts, like under the avatars or under the icons for msn, etc.?

themedir> display.template.php

Find:
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';


Add after:
                  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 />';
}
}

hopelessness

Quote from: Libo on November 08, 2005, 07:22:06 AM
that's normal. The package has a few problems. Just manually opent he .xml file and do the edits for those 2 file

What xml file is that and what is the edit?

anunlike

QuoteDid the arcade_sql.php run correctly?
Yeah, and I just ran it again, manually. Still same problem. I have this installed on a RC 1 too and get the exact same problem.

I got the first error out though, thanks much.

Sting

Quote from: Jay T on November 09, 2005, 01:38:12 PM
Quote from: Sting on November 09, 2005, 01:09:25 PM
could someone post code to have the championships listed on the side of the posts, like under the avatars or under the icons for msn, etc.?

themedir> display.template.php

Find:
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';


Add after:
                  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 />';
}
}



well that seems to already be there... but nothing shows up... is there a setting that needs to be changed?

nawien

sorry help me
permission ***
only admin play or wiev game any account

An Error Has Occurred!
You arent allowed to view arcade, sorry! 

please help me
permission.php =
      'manage_membergroups' => false,
            'manage_permissions' => false,
            'manage_bans' => false,
            'send_mail' => false,
         ),
         '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,
            )
         ),
         'arcade' => array(
            'view_arcade' => true,
            'play_arcade' => true,
            'submit_score' => true,
            'challenge_send' => true,
            'challenge_view' => true,
            'admin_arcade' => false,
         ),
         'board' => array(
         'general_board' => array(
            'moderate_board' => false,
         ),
         'topic' => array(
            'post_new' => false,
            'merge_any' => false,
            'split_any' => false
but error

Advertisement: