Docskillz

Announcements => Site Issues - General => Topic started by: WBA Dude on February 24, 2009, 12:47:55 PM

Title: Code
Post by: WBA Dude on February 24, 2009, 12:47:55 PM
Hiya

What is the right code for the E Arcade, index.template.php?

Regards
Joe
Title: Re: Code
Post by: Skhilled on February 25, 2009, 09:20:00 AM
Search for:
'admin',

Add after:
'managearcade',

Search for:
if (in_array($context['current_action'], array('search',

Add after:
'arcade', 

Search for:
// How about the [search] button?

Add after:
    echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'arcade' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a>
</td>' , $current_action == 'arcade' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
                       
Title: Re: Code
Post by: WBA Dude on February 25, 2009, 01:21:03 PM
Quote from: Skhilled on February 25, 2009, 09:20:00 AM
Search for:
'admin',

Add after:
'managearcade',

Search for:
if (in_array($context['current_action'], array('search',

Add after:
'arcade', 

Search for:
// How about the [search] button?

Add after:
    echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'arcade' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=arcade">' , $txt['arcade'] , '</a>
</td>' , $current_action == 'arcade' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
                       


What does that look like altogether?
Title: Re: Code
Post by: Skhilled on February 25, 2009, 03:50:54 PM
The code goes into the different parts of /Themes/default/index.template.php. Search for the parts as shown and add the code shown. If you are using a different theme then the last one could possibly be different.
Title: Re: Code
Post by: WBA Dude on February 26, 2009, 08:11:11 AM
Quote from: Skhilled on February 25, 2009, 03:50:54 PM
The code goes into the different parts of /Themes/default/index.template.php. Search for the parts as shown and add the code shown. If you are using a different theme then the last one could possibly be different.

I am using default theme


Title: Re: Code
Post by: Skhilled on February 26, 2009, 08:16:21 AM
So, what is the problem? You're not even telling me if you have a problem. Please be specific. Any errors in your log? Not installing correctly? Something not show properly?
Title: Re: Code
Post by: WBA Dude on February 26, 2009, 01:08:57 PM
Quote from: Skhilled on February 26, 2009, 08:16:21 AM
So, what is the problem? You're not even telling me if you have a problem. Please be specific. Any errors in your log? Not installing correctly? Something not show properly?

Well Its wierd because I installed it to my test forum, both same version of smf. Works perfect. No errors but when I install it to my proper forum, it says index.template.php failed.

I have not install smfarcade to either forums

Regards
Joe
Title: Re: Code
Post by: Skhilled on February 26, 2009, 03:21:27 PM
You get a "Test Failed" when SMF's original code has been modified by another mod or you edited it yourself. So, either you have installed another mod or even reinstalled the arcade and it has left behind some of its code which was never removed.

Since mods look for specific code it will give a "Test Failed" even if the arcade code is already there. As I've explained to you before on another site, you'll have to add the code I've gave you above. Some of it may already been in place.
Title: Re: Code
Post by: riders99 on April 28, 2009, 10:00:36 PM
I think it has no errors regarding the codes,and i guess it could be the perfect one,because they are both version of smf..

_________________
Title: Re: Code
Post by: Skhilled on April 29, 2009, 07:23:38 AM
What are you talking about?
Title: Re: Code
Post by: Skhilled on December 20, 2018, 10:32:46 AM
Hi, Steventoday. How are you and welcome to Docskillz. :)