SMF Arcade

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

Previous topic - Next topic

mickyd2006

Yes, its the index.template.php file which fails the install, however I have been to the arcade site and checked on the manual install documentation and have tried all suggested code replacements to make, the problem is none of them match... the syntax, i beleive it is called is different. The problem there is that the manual install doc only covers three template designs. The lines of coded that are needed in order to show the arcade button do not fit, the lines it suggests to look for in order to paste the needed code in after do not exist, they differ radically, Im just wondering if someone might look at the 2 peices of code for me needed in order for the buttons to show and have a little look at the code area where it is needed to be pasted to see if there would be much work needed in order to acheive the desired results.

My coding skills are edit, configure and perhaps a little more but that's about it unfortunately.
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

Gobo

Which theme are you using?

Can u give a link to the download file for the theme?
Adding a button is simple, ill help u out

mickyd2006

The theme is called Rhuk Planetfall or just planetfall. Im going to look for the link now and I will post it as soon as I find it. thanks for your help offer buddy, I really appreciate it!!!!
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

TacticalPenguin

To add in a button to your menu, open up the index.template.php and then find this:
function template_menu()
Then scroll down just a little bit from there and youll see:
// Show the [home] button.
Scroll down a little bit more until you see
// Otherwise, they might want to [logout]

Copy the code under this section and paste it into an empty notepad document or something. Replace
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
with
<a href="', $scripturl, '?action=arcade">Arcade</a>
^I THINK arcade is the right action but fix it if its not

Anyways, then take what youve got in the notepad window and copy it into index.template.php right before
// Otherwise, they might want to [logout]

or somewhere else in there if you want the button to appear elsewhere. If it doesnt work Im sorry I couldnt help, but thats all I know for adding buttons.

mickyd2006

Thanks buddy.. I'll deffinately try it... All help is greatly received wether sucessfull or not =]

Also for akulion

Here is the link to the planetfall theme I use with smf
http://www.simplemachines.org/community/index.php?topic=26690.0

Thanks both!
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

mickyd2006

Hey,

I managed to get this to work using a combination of tactical penguins post, the arcade manual install manual and the radio and admin buttons and came up with this


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


I noticed tactical penguins variation was a simple text link which was a good suggestion but it was still a visable link to all user groups. By adding the line


if ($context['allow_arcade'])


before the echo the link button command it stops unauthorised groups viewing the button.

If someone could check it for mistakes that would be good.,. but from this end it seems to be doing its job = ]

Not bad for a non coder lol.... thanks for the advice and suggestions cuz I wouldnt have got this far without them!!!!!!!
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

chase_m

#2326
Is there a version of SMF Arcade that actually works with SMF 1.1.1?  As the latest version in the downloads section isn't working properly.

1.  I'm getting a "Missing field:" error every time I try to install a game - even when that's not the case. 
2.  Game icons are not showing - even though they're correctly labeled and placed.
3.  Games are not showing player names in the scores section

What the heck is going on? :(

fwitt

I believe E1.5.2 works with SMF 1.1.1

also smfarcade 2.0is in beta testing atm and is designed to work on the SMF 1.1 series

Gargoyle

Yes the E1.5.2 version does work with 1.1.1 as I installed it on a 1.1.1 forum the other day and it worked perfectly.

chase_m

I uninstalled the package, cleared it from my database, and I'm still getting a blank "Missing Field:" error during game installation. 

Is there a way to clean install the package?  What else did it edit?

niko

SMFArcade 2.0.0 Released! (Finally)

For support please use SMFArcade.net!

To upgrade from 1.x remove old package and install new.

Read whole announcement from SMFArcade.net
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

fwitt

and 2.0.1 released straight afterwards

Gobo

East or west arcade is the best - goooo arcade

kilk

There is no download link.....
Elddem The MMORPG - https://www.elddem.com | Denarius (D) Cryptocurrrency - https://www.denarius.io | BlockForums - Cryptocurrency Community Forums - https://www.blockforums.org

fwitt


chaos_gamer

In 2.0.1 i am having problems when saving the scores

it is showing this error plz help

Score was not saved because session is missing

Snape

Quote from: chaos_gamer on January 03, 2007, 08:19:37 AM
In 2.0.1 i am having problems when saving the scores

it is showing this error plz help

Score was not saved because session is missing
2.0.3 was released recently.  Download it from www.smfarcade.net.

Gobo

update to the latest version 2.0.3 after that
turn off the cheating to 'warning only' for the time being
there is a small bug in the scores being fixed now

package is found on smfarcade.net
install it via package manager

loopyj22

I have smf arcade 2.0 and I am using wowdk them anddhave modified the index.template.php file to add an arcade button. But when the button shows up the text on the button says search. Also in the admin section the arcade admin panel is blank and I cannot accses it. The mod works flawlessly on the default themes so its obviously a hack i need for the wowdk theme. Can anyone help please.

Snape

Quote from: loopyj22 on January 03, 2007, 01:12:34 PM
I have smf arcade 2.0 and I am using wowdk them anddhave modified the index.template.php file to add an arcade button. But when the button shows up the text on the button says search. Also in the admin section the arcade admin panel is blank and I cannot accses it. The mod works flawlessly on the default themes so its obviously a hack i need for the wowdk theme. Can anyone help please.
The arcade mod guys use the example of copying the search button code in index.template.php, but you need to change the $txt[###] code to $txt['arcade'] to make the labels work.  Also, the wowdk theme has its own Modificiations.<language>.php file- so to be safe, copy ALL the lines that start with '$' in /Themes/default/language/Modifications.<language>.php to your /Themes/wowdk/language/Modifications.<language>.php file before the '?>' code.  The label for the button is $txt['arcade'], so if that definition is missing from your Modifications file, you need to make both the changes I've mentioned to make it work right.

Advertisement: