SMF Arcade

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

Previous topic - Next topic

rider

#2660
you need to run it like this.wwwyoursite.com/installArcade.php then just following the instuctions.if you don't see the arcade admin in the adminpanel afterwards.Then goto admin>serversettings>default forum langauge>if its english-utf8 switch to english.

BogeyOne

Quote from: rider on July 03, 2007, 02:52:43 AM
you need to run it like this.wwwyoursite.com/installArcade.php [nofollow] then just following the instuctions.if you don't see the arcade admin in the adminpanel afterwards.Then goto admin>serversettings>default forum langauge>if its english-utf8 switch to english.

I did what you said.  After agreeing to the terms and conditions which show upon entering my sites url/installArcade.php, I chose the first option. . .the fresh install one, I believe.  The results of this were successful according to the next screen that came up and I was taken to a screen that showed what looked like administration for the program.  Some of the text appeared to be missing, like the text to the right of the first info "question mark" at the top.  Also, there was no text immediately beside the version "2.0.9" boxes on the right margin.  And nothing new had been created in my options are on the left of the administrative functions area.  So I did what you said and checked the language and it was english-utf8.  I changed that to simply english.  But nothing new resulted.  I can't get back into the arcade admin area and there is no arcade button anywhere on my homepage.  I am stymied.  I certainly appreciate your time in helping me deal with this.  Surely, I must be close to having the arcade up and running, correct?

--Martin

rider

it should be there by the sounds of it.What theme are you using?can you post a link to your site?

BogeyOne

Quote from: rider on July 03, 2007, 04:29:50 AM
it should be there by the sounds of it.What theme are you using?can you post a link to your site?

I am using the Core them which I believe is the default theme.  My site is:  www.moderatedsciastroamateur.org [nofollow]

BogeyOne

Quote from: BogeyOne on July 03, 2007, 05:02:42 AM
Quote from: rider on July 03, 2007, 04:29:50 AM
it should be there by the sounds of it.What theme are you using?can you post a link to your site?

I am using the Core them which I believe is the default theme.  My site is:  www.moderatedsciastroamateur.org [nofollow]


Hello,

Now this is getting weird.  Before logging in, the "Arcade" button is located in the topic option bar of the forum.  But, once I log in, it disappears as a choice.  So it would seem that guests see it and can access the arcade but a logged in member does not have the option.  What is going on?  Anybody know?


--Martin

Fustrate

You must have the code inside an 'if' statement.

Look at the code inside (index.template.php ?) and make sure it's not inside the Register/Login if statement.
Steven Hoffman
Former Team Member, 2009-2012

BogeyOne

Quote from: YodaOfDarkness on July 03, 2007, 10:38:33 AM
You must have the code inside an 'if' statement.

Look at the code inside (index.template.php ?) and make sure it's not inside the Register/Login if statement.


Nope, didn't find that, BUT, now it gets even weirder.  I have a member of my forum which I created for various reasons (he doesn't really exists) and when logging in under this member's name, the ARCADE remains in the top bar.  So it looks like it is visible to guests and all members except me.  This makes no sense at all.  I am nearly at wits end over this.  Not sure it has any relevance but another quirk seems to be that the shout box has unfilled in areas for me that guests and other members apparently see.


--Martin

Fustrate

Hmm...

go to the index.template.php file for the theme you're using, and copy/paste the whole function template_menu() here. It's probably at the end of the file.
Steven Hoffman
Former Team Member, 2009-2012

BogeyOne

Quote from: YodaOfDarkness on July 03, 2007, 11:37:15 AM
Hmm...

go to the index.template.php file for the theme you're using, and copy/paste the whole function template_menu() here. It's probably at the end of the file.


I am afraid that I do not have enough knowledge or confidence in the little knowledge I have to do that.  Wouldn't know what all constituded the whole function and any error at all could render the whole forum as useless, couldn't it?

Fustrate

Well you wouldn't change anything by copying and pasting

Go to wherever you can edit the file, and search for function template_menu() and then just copy and paste everything after that into a post here
Steven Hoffman
Former Team Member, 2009-2012

BogeyOne

Quote from: YodaOfDarkness on July 03, 2007, 12:33:00 PM
Well you wouldn't change anything by copying and pasting

Go to wherever you can edit the file, and search for function template_menu() and then just copy and paste everything after that into a post here

Quote from: YodaOfDarkness on July 03, 2007, 12:33:00 PM


Is this what I'm after?  Couldn't find a specific template_menu () listing.



// The main controlling function.
function smf_main()
{
global $modSettings, $settings, $user_info, $board, $topic, $maintenance, $sourcedir;

// Special case: session keep-alive.
if (isset($_GET['action']) && $_GET['action'] == 'keepalive')
die;

// Load the user's cookie (or set as guest) and load their settings.
loadUserSettings();

// Load the current board's information.
loadBoard();

// Load the current theme. (note that ?theme=1 will also work, may be used for guest theming.)
loadTheme();

// Check if the user should be disallowed access.
is_not_banned();

// Load the current user's permissions.
loadPermissions();

// Do some logging, unless this is an attachment, avatar, theme option or XML feed.
if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], array('dlattach', 'jsoption', '.xml')))
{
// Log this user as online.
writeLog();

// Track forum statistics and hits...?
if (!empty($modSettings['hitStats']))
trackStats(array('hits' => '+'));
}

// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
// You can only login.... otherwise, you're getting the "maintenance mode" display.
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'login2')
{
require_once($sourcedir . '/LogInOut.php');
return 'Login2';
}
// Don't even try it, sonny.
else
{
require_once($sourcedir . '/Subs-Auth.php');
return 'InMaintenance';
}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('login', 'login2', 'register', 'register2', 'reminder', 'activate', 'smstats', 'help', '.xml', 'verificationcode'))))
{
require_once($sourcedir . '/Subs-Auth.php');
return 'KickGuest';
}
// Check for arcade actions
// IBPArcade v2.x.x Games support
elseif (isset($_REQUEST['act']) && strtolower($_REQUEST['act']) == 'arcade')
{
$_REQUEST['action'] = 'arcade';
$_REQUEST['ibpa'] = 2;

if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'newscore')
$_REQUEST['sa'] = 'ibpsubmit';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
// IBPArcade v3.x.x Games support
elseif (isset($_REQUEST['autocom']) && $_REQUEST['autocom'] == 'arcade')
{
$_REQUEST['action'] = 'arcade';
$_REQUEST['ibpa'] = 3;

if (isset($_REQUEST['do']) && $_REQUEST['do'] == 'savescore')
$_REQUEST['sa'] = 'ibpsubmit';

elseif (isset($_REQUEST['do']) && $_REQUEST['do'] = 'verifyscore')
$_REQUEST['sa'] = 'ibpverify';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif (isset($_REQUEST['play']))
{
$_REQUEST['game'] = $_REQUEST['play'];
unset($_REQUEST['play']);
$_REQUEST['sa'] = 'play';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif (isset($_REQUEST['highscore']))
{
$_REQUEST['game'] = $_REQUEST['highscore'];
unset($_REQUEST['highscore']);
$_REQUEST['sa'] = 'highscore';

require_once($sourcedir . '/Arcade.php');
return 'Arcade';
}
elseif (isset($_REQUEST['game']) && !isset($_REQUEST['action']))
{
require_once($sourcedir . '/Arcade.php');
return 'Arcade';
} elseif (empty($_REQUEST['action']))
{
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
// Topic is empty, and action is empty.... MessageIndex!
elseif (empty($topic))
{
require_once($sourcedir . '/MessageIndex.php');
return 'MessageIndex';
}
// Board is not empty... topic is not empty... action is empty.. Display!
else
{
require_once($sourcedir . '/Display.php');
return 'Display';
}
}

// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'activate' => array('Register.php', 'Activate'),
'admin' => array('Admin.php', 'Admin'),
'announce' => array('Post.php', 'AnnounceTopic'), 'arcade' => array('Arcade.php','Arcade'),
'managegames' => array('ManageGames.php', 'GamesAdmin'),
'arcadecategory' => array('ArcadeSettings.php', 'ArcadeCategory'),
'arcadesettings' => array('ArcadeSettings.php', 'ArcadeSettings'),
'ban' => array('ManageBans.php', 'Ban'),
'boardrecount' => array('Admin.php', 'AdminBoardRecount'),
'buddy' => array('Subs-Members.php', 'BuddyListToggle'),
'calendar' => array('Calendar.php', 'CalendarMain'),
'cleanperms' => array('Admin.php', 'CleanupPermissions'),
'collapse' => array('Subs-Boards.php', 'CollapseCategory'),
'convertentities' => array('Admin.php', 'ConvertEntities'),
'convertutf8' => array('Admin.php', 'ConvertUtf8'),
'coppa' => array('Register.php', 'CoppaForm'),
'deletemsg' => array('RemoveTopic.php', 'DeleteMessage'),
'detailedversion' => array('Admin.php', 'VersionDetail'),
'display' => array('Display.php', 'Display'),
'dlattach' => array('Display.php', 'Download'),
'dumpdb' => array('DumpDatabase.php', 'DumpDatabase2'),
'editpoll' => array('Poll.php', 'EditPoll'),
'editpoll2' => array('Poll.php', 'EditPoll2'),
'featuresettings' => array('ModSettings.php', 'ModifyFeatureSettings'),
'featuresettings2' => array('ModSettings.php', 'ModifyFeatureSettings2'),
'findmember' => array('Subs-Auth.php', 'JSMembers'),
'help' => array('Help.php', 'ShowHelp'),
'helpadmin' => array('Help.php', 'ShowAdminHelp'),
'im' => array('PersonalMessage.php', 'MessageMain'),
'invite' => array('Invite.php', 'InviteMain'),
'jsoption' => array('Themes.php', 'SetJavaScript'),
'jsmodify' => array('Post.php', 'JavaScriptModify'),
'links' => array('Links.php', 'LinksMain'),
'lock' => array('LockTopic.php', 'LockTopic'),
'lockVoting' => array('Poll.php', 'LockVoting'),
'login' => array('LogInOut.php', 'Login'),
'login2' => array('LogInOut.php', 'Login2'),
'logout' => array('LogInOut.php', 'Logout'),
'maintain' => array('Admin.php', 'Maintenance'),
'manageattachments' => array('ManageAttachments.php', 'ManageAttachments'),
'manageboards' => array('ManageBoards.php', 'ManageBoards'),
'managecalendar' => array('ManageCalendar.php', 'ManageCalendar'),
'managesearch' => array('ManageSearch.php', 'ManageSearch'),
'markasread' => array('Subs-Boards.php', 'MarkRead'),
'membergroups' => array('ManageMembergroups.php', 'ModifyMembergroups'),
'mergetopics' => array('SplitTopics.php', 'MergeTopics'),
'mlist' => array('Memberlist.php', 'Memberlist'),
'modifycat' => array('ManageBoards.php', 'ModifyCat'),
'modifykarma' => array('Karma.php', 'ModifyKarma'),
'modlog' => array('Modlog.php', 'ViewModlog'),
'movetopic' => array('MoveTopic.php', 'MoveTopic'),
'movetopic2' => array('MoveTopic.php', 'MoveTopic2'),
'news' => array('ManageNews.php', 'ManageNews'),
'savepad' => array('PersonalPad.php', 'SavePad'),
'notify' => array('Notify.php', 'Notify'),
'notifyboard' => array('Notify.php', 'BoardNotify'),
'optimizetables' => array('Admin.php', 'OptimizeTables'),
'packageget' => array('PackageGet.php', 'PackageGet'),

'packages' => array('Packages.php', 'Packages'),
'tpvchat' => array('tpvchat.php', 'tpvchat'),
'permissions' => array('ManagePermissions.php', 'ModifyPermissions'),
'pgdownload' => array('PackageGet.php', 'PackageGet'),
'pm' => array('PersonalMessage.php', 'MessageMain'),
'post' => array('Post.php', 'Post'),
'post2' => array('Post.php', 'Post2'),
'postsettings' => array('ManagePosts.php', 'ManagePostSettings'),
'printpage' => array('Printpage.php', 'PrintTopic'),
'profile' => array('Profile.php', 'ModifyProfile'),
'profile2' => array('Profile.php', 'ModifyProfile2'),
'quotefast' => array('Post.php', 'QuoteFast'),
'quickmod' => array('Subs-Boards.php', 'QuickModeration'),
'quickmod2' => array('Subs-Boards.php', 'QuickModeration2'),
'recent' => array('Recent.php', 'RecentPosts'),
'regcenter' => array('ManageRegistration.php', 'RegCenter'),
'register' => array('Register.php', 'Register'),
'register2' => array('Register.php', 'Register2'),
'reminder' => array('Reminder.php', 'RemindMe'),
'removetopic2' => array('RemoveTopic.php', 'RemoveTopic2'),
'removeoldtopics2' => array('RemoveTopic.php', 'RemoveOldTopics2'),
'removepoll' => array('Poll.php', 'RemovePoll'),
'repairboards' => array('RepairBoards.php', 'RepairBoards'),
'reporttm' => array('SendTopic.php', 'ReportToModerator'),
'reports' => array('Reports.php', 'ReportsMain'),
'requestmembers' => array('Subs-Auth.php', 'RequestMembers'),
'search' => array('Search.php', 'PlushSearch1'),
'search2' => array('Search.php', 'PlushSearch2'),
'sendtopic' => array('SendTopic.php', 'SendTopic'),
'serversettings' => array('ManageServer.php', 'ModifySettings'),
'serversettings2' => array('ManageServer.php', 'ModifySettings2'),
'smileys' => array('ManageSmileys.php', 'ManageSmileys'),
'smstats' => array('Stats.php', 'SMStats'),
'spellcheck' => array('Subs-Post.php', 'SpellCheck'),
'splittopics' => array('SplitTopics.php', 'SplitTopics'),
'stats' => array('Stats.php', 'DisplayStats'),
'sticky' => array('LockTopic.php', 'Sticky'),
'thankyouadd' => array('ThankYou.php', 'thank_you_add'),
'thankyoulist' => array('ThankYou.php', 'thank_you_list'),
'thankyoulock' => array('ThankYou.php', 'thank_you_lock'),
'thankyoupost' => array('ThankYou.php', 'thank_you_post'),
'thankyouremove' => array('ThankYou.php', 'thank_you_remove'),
'thankyouremovedm' => array('ThankYou.php', 'thank_you_delete_id'),
'theme' => array('Themes.php', 'ThemesMain'),
'trackip' => array('Profile.php', 'trackIP'),
'about:mozilla'; => array('Karma.php', 'BookOfUnknown'),
'about:unknown'; => array('Karma.php', 'BookOfUnknown'),
'unread' => array('Recent.php', 'UnreadTopics'),
'unreadreplies' => array('Recent.php', 'UnreadTopics'),
'viewErrorLog' => array('ManageErrors.php', 'ViewErrorLog'),
'viewmembers' => array('ManageMembers.php', 'ViewMembers'),
'viewprofile' => array('Profile.php', 'ModifyProfile'),
'verificationcode' => array('Register.php', 'VerificationCode'),
'vote' => array('Poll.php', 'Vote'),
'viewquery' => array('ViewQuery.php', 'ViewQuery'),
'who' => array('Who.php', 'Who'),
'.xml' => array('News.php', 'ShowXmlFeed'),
);

// Get the function and file to include - if it's not there, do the board index.
if (!isset($_REQUEST['action']) || !isset($actionArray[$_REQUEST['action']]))
{
// Catch the action with the theme?
if (!empty($settings['catch_action']))
{
require_once($sourcedir . '/Themes.php');
return 'WrapAction';
}

// Fall through to the board index then...
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}

// Otherwise, it was set - so let's go to that action.
require_once($sourcedir . '/' . $actionArray[$_REQUEST['action']][0]);
return $actionArray[$_REQUEST['action']][1];
}

?>
Well you wouldn't change anything by copying and pasting

Go to wherever you can edit the file, and search for function template_menu() and then just copy and paste everything after that into a post here

cferd

BogeyOne,

This sounds like a permissions issue.

Go to your SMF admin/permissions and modify. You should see options for Arcade.

rider

BogeyOne 1st off sorry for not getting back sooner but I have to sleep sometime.lol.I went to your site and could access the arcade.I think cfred is right check your permissions.See if you're able to access the arcade this way.www yoursite.com/index.php?action=arcade.

BogeyOne

Yes, I do see it that way as along as I don't log in.  When I do log in, everything about the arcade vanishes.  I have attached a screenshot which I just took of my screen in the admin panel.  Please note the arcade button missing from the options at the top and the blank area in the left vertical bar after the "FORUM" box of options.

Rider, if you have msn messenger, please contact me.  I will have my messenger turned on.  My contact is:  [email protected]


--Martin

cferd

For future reference, if you check your attachment, on the bottom right-hand corner, the part that starts with "Support", you can select to manage permissions from inside that area.

Now, as for your blank space in Admin: (Don't use the following code, it's just for reference.) In  Sources/Subs.php, around line 2771, my copy of the arcade code looks like this:
}

// Admin area 'Arcade'
if (allowedTo(array('arcade_admin')))
{
$context['admin_areas']['admin'] = array(
'title' => $txt['arcade_admin'],
'areas' => array(
'manage_games' => '<a href="' . $scripturl . '?action=managegames">' . $txt['arcade_manage_games'] . '</a>',
'manage_category' => '<a href="' . $scripturl . '?action=arcadecategory">' . $txt['arcade_manage_category'] . '</a>',
'arcade_settings' => '<a href="' . $scripturl . '?action=arcadesettings">' . $txt['arcade_settings'] . '</a>',
)
);
               
} // Admin area 'Members'.

The top closing bracket is from the // Admin area 'Forum'. section.  If your code has less than the 3 brackets " }{} " in that area, you probably found your culprit.

Fustrate

I say the text for the button isn't define... look at the double-wide spacing after Help.

can you view the source code of any page with that space and tell us if you can find action=arcade in there anywhere?
Steven Hoffman
Former Team Member, 2009-2012

BogeyOne

Quote from: YodaOfDarkness on July 03, 2007, 07:43:06 PM
I say the text for the button isn't define... look at the double-wide spacing after Help.

can you view the source code of any page with that space and tell us if you can find action=arcade in there anywhere?


I really don't have a clue about these matters.  I am just a "color by numbers" computer fellow.  I regret that I wouldn't know what or where to look for or much less recognize things amiss when and if they came into view.

It is most strange--what is going on--but with luck, it will all operable within a couple of days.

Thanks to all.


--Martin

Fustrate

Hmm... could you perhaps PM me a link to your forum?

I'd like to test that double space theory...
Steven Hoffman
Former Team Member, 2009-2012

cristansolid

Hello

I am spanish.. sorry my English..


I have a problem, I installed the versions 2.0.9 Arcade and the forum versions is 1.1.3

   
I can enter arcade. But the users and moderators cannot enter, appears to them the following message:

You are not allowed to access arcade.


that I can do?

cferd

Hi,

I speak spanish too, so maybe you can understand my english  ;)

Go to SMF admin/permissions. You can modify the groups to access Arcade from there.

Advertisement: