SMF Arcade

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

Previous topic - Next topic

angelika

I have some problems with source/managepermissions

This is how its looks before the edit, and the permission in admin works fine

         ),
         'member_admin' => array(
            'moderate_forum' => false,
            '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,
         )
      ),
      'board' => array(
         'general_board' => array(
            'moderate_board' => false,
         ),
         'topic' => array(
            'post_new' => false,
            'merge_any' => false,
            'split_any' => false,
            'send_topic' => false,
            'make_sticky' => false,
            'move' => true,
            'lock' => true,
            'remove' => true,
            'post_reply' => true,
            'modify_replies' => false,
            'delete_replies' => false,
            'announce_topic' => false,
         ),
         'post' => array(
            'delete' => true,
            'modify' => true,
            'report_any' => false,
         ),
         'poll' => array(
            'poll_view' => false,
            'poll_vote' => false,
            'poll_post' => false,
            'poll_add' => true,
            'poll_edit' => true,
            'poll_lock' => true,
            'poll_remove' => true,
         ),
         'notification' => array(
            'mark_any_notify' => false,
            'mark_notify' => false,
         ),
         'attachment' => array(
            'view_attachments' => false,
            'post_attachment' => false,
         )
      )
   );

   // This is just a helpful array of permissions guests... cannot have.
   $non_guest_permissions = array(
      'karma_edit',
      'pm_read',
      'pm_send',
      'profile_identity',
      'profile_extra',
      'profile_title',
      'profile_remove',
      'profile_server_avatar',
      'profile_upload_avatar',
      'profile_remote_avatar',
      'poll_vote',
      'mark_any_notify',
      'mark_notify',
   );

Then I edit:

'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,
         ),

Then it looks like this

         'member_admin' => array(
            'moderate_forum' => false,
            '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_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(
         'general_board' => array(
            'moderate_board' => false,
         ),
         'topic' => array(
            'post_new' => false,
            'merge_any' => false,
            'split_any' => false,
            'send_topic' => false,
            'make_sticky' => false,
            'move' => true,
            'lock' => true,
            'remove' => true,
            'post_reply' => true,
            'modify_replies' => false,
            'delete_replies' => false,
            'announce_topic' => false,
         ),
         'post' => array(
            'delete' => true,
            'modify' => true,
            'report_any' => false,
         ),
         'poll' => array(
            'poll_view' => false,
            'poll_vote' => false,
            'poll_post' => false,
            'poll_add' => true,
            'poll_edit' => true,
            'poll_lock' => true,
            'poll_remove' => true,
         ),
         'notification' => array(
            'mark_any_notify' => false,
            'mark_notify' => false,
         ),
         'attachment' => array(
            'view_attachments' => false,
            'post_attachment' => false,
         )
      )
   );

   // This is just a helpful array of permissions guests... cannot have.
   $non_guest_permissions = array(
      'karma_edit',
      'pm_read',
      'pm_send',
      'profile_identity',
      'profile_extra',
      'profile_title',
      'profile_remove',
      'profile_server_avatar',
      'profile_upload_avatar',
      'profile_remote_avatar',
      'poll_vote',
      'mark_any_notify',
      'mark_notify',
   );

Then i got a error

Parse error: parse error, unexpected ';', expecting ')' in /var/www/html/fantasieforum/Sources/ManagePermissions.php on line 1333

Its ); what causes the error, but when i change it, it goes to another line where ); stands.

What's going wrong. i tryed it several times, but it won't work.

sorry for my bad english.

hopelessness

I NEED HELP! I have tried installing the SMF Arcade package and get the following error:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Themes/default/index.template.php Test successful
3. Execute Modification ./Sources/Subs.php Test failed
4. Execute Modification ./Sources/ManagePermissions.php Test failed
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test successful
7. Execute Modification ./Sources/Display.php Test successful
8. Extract Tree ./getid3 
9. Extract Tree ./Games 
10. Extract File ./arcade_sql.php 
11. Extract Tree ./Sources 
12. Extract File ./Themes/default/Arcade.template.php 
13. Extract File ./Themes/default/ArcadeAdmin.template.php 
14. Extract File ./Themes/default/images/english/games.gif 
15. Extract File ./Themes/default/languages/Arcade.english.php 
16. Extract File ./Themes/default/languages/Arcade.finnish.php

How do I fix this?

angelika

#1782
Quote from: hopelessness on November 15, 2005, 05:05:44 AM
I NEED HELP! I have tried installing the SMF Arcade package and get the following error:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Themes/default/index.template.php Test successful
3. Execute Modification ./Sources/Subs.php Test failed
4. Execute Modification ./Sources/ManagePermissions.php Test failed
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/Display.template.php Test successful
7. Execute Modification ./Sources/Display.php Test successful
8. Extract Tree ./getid3 
9. Extract Tree ./Games 
10. Extract File ./arcade_sql.php 
11. Extract Tree ./Sources 
12. Extract File ./Themes/default/Arcade.template.php 
13. Extract File ./Themes/default/ArcadeAdmin.template.php 
14. Extract File ./Themes/default/images/english/games.gif 
15. Extract File ./Themes/default/languages/Arcade.english.php 
16. Extract File ./Themes/default/languages/Arcade.finnish.php

How do I fix this?

Did you edit the files? If you open arcade2.xml there you can find how to do and witch files to edit.

Gandalf

Hello,

I am using Joomla (Mambo) CMS on my website and SEF is enabled the url of arcade will be http://www.arabic-lounge.com/component/option,com_smf/Itemid,10/action,arcade/ when a game try to submit a score, it will be forwarded to http://www.arabic-lounge.com/index.php?action=arcade which is not where it must be forwarded so how do i make it forward to component/option,com_smf/Itemid,10/action,arcade/ instead of index.php?action=arcade

I tried also without SEF the url is http://www.arabic-lounge.com/index.php?option=com_smf&Itemid=10&action=arcade but it also forward to http://www.arabic-lounge.com/index.php?action=arcade so it doesnt take care of how the url is :(

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

mj_4_emma

it says.. my games directory is invalid

boogiedown

Quote from: stevebor1 on October 26, 2005, 04:03:37 PM
I upgraded my acrcade to the latest version, all works fine, but when it lists highscores, instead of the click able member name/profile, it says Array.

But if i look under the  "welcome to Arcade" it list the username fine for high score.

How do i fix?
any help please.

rider

Quote from: mj_4_emma on November 15, 2005, 07:53:33 AM
it says.. my games directory is invalid

Here's a trick I use for that.Look at the current theme settings.C and P them for your arcade settings and then remove theme/default at the end and replace with /Games.That should work. :D
Also if you click on my sig it will take you to our support site for the arcade.

rider

Quote from: stevebor1 on November 15, 2005, 03:52:41 PM
Quote from: stevebor1 on October 26, 2005, 04:03:37 PM
I upgraded my acrcade to the latest version, all works fine, but when it lists highscores, instead of the click able member name/profile, it says Array.

But if i look under the  "welcome to Arcade" it list the username fine for high score.

How do i fix?
any help please.

If you are using smf1.1.rc1.There is a fix for the champion icons to work.Is this what you mean?Click on my sig and check out the FAQ at the support site.I'm sure you'll find your answer.

houston

Quote from: Sting on November 10, 2005, 06:03:55 AM
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  ;)

My game images are not showing up. The script is looking for them here.

http://www.eaglebaycamp.com/forum/index.php/Games/secondsofmadness.gif

rider

Make sure your games path and url directories are correct.

rider

Quote from: rider on November 15, 2005, 06:50:12 PM
Make sure your games path and url directories are correct.

I think I miss understood you.Houston are you talking about the champion icons not working?

houston

Quote from: rider on November 15, 2005, 06:54:28 PM
Quote from: rider on November 15, 2005, 06:50:12 PM
Make sure your games path and url directories are correct.

I think I miss understood you.Houston are you talking about the champion icons not working?

Yes. The icons that show up underneath the avatar are not showing up. I just checked the paths and they are correct

redone

The path cannot be correct if the images do not show.

~redone

Juggler

OK, had a quick check and your image is linked as below.

http://www.eaglebaycamp.com/forum/Games/secondsofmadness.gif

The path would appear to be correct as it matches :-

http://www.bluebuzzards.com/buzzards/Games/secondsofmadness.gif

Now I've just made the edit exactly as stated on the SMFarcade forum and it's worked fine. Not entirely sure from your description as to what's up.
The Blue Buzzards
Flying Scooter Display Team
#69 Squadron
www.bluebuzzards.com

houston

Quote from: redone on November 16, 2005, 03:31:05 PM
The path cannot be correct if the images do not show.

~redone


All the images in the arcade itself show up. It's the ones that are used as the champion images under a members avatar that are not showing up.

redone

I will take a look at this for you.  ;)

~redone

houston


deathwantsme

whats the URL for the 1.1RC1 version?

houston

Quote from: deathwantsme on November 16, 2005, 09:41:33 PM
whats the URL for the 1.1RC1 version?

The latest version is still for 1.0.5.

If you follow this thread, You will find how to install it in 1.1 rc1. It can be done severl people have done it including myself.

deathwantsme

there are WAY too many posts. I tried running the search, but that doesnt go work for just one topic like i thought. Could someone post here where about the update is, or re post how to do it?

Advertisement: