Author Topic: Shop button dissapearing on SMF 1.1 RC2? See this!  (Read 4618 times)

Offline Daniel15

Shop button dissapearing on SMF 1.1 RC2? See this!
« on: January 06, 2006, 08:58:01 am »
If you're having the problem that the shop button is dissapearing on SMF 1.1 RC2, then please try this:

Open Themes/default/Index.template.php
Find this:
Code: [Select]
//Begin SMFShop 2.0 (Build 8) MOD code
loadLanguage("shop");
echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=shop">' , $txt['shop'] , '</a>
</td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
//END SMFShop MOD code

Change to:
Code: [Select]
//Begin SMFShop 2.0 (Build 8) MOD code
echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=shop">Shop</a>
</td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
//END SMFShop MOD code

Tell me if that works for you

Offline Existenz

Re: Shop button dissapearing on SMF 1.1 RC2? See this!
« Reply #1 on: January 21, 2006, 04:05:54 am »
Thanks for this. Will this problem happen again int eh next version? Because if not, will i ahve to applyt his fix manually every single time I upgrade SMFshop?

Offline Daniel15

Re: Shop button dissapearing on SMF 1.1 RC2? See this!
« Reply #2 on: January 21, 2006, 06:59:38 am »
Thanks for this. Will this problem happen again int eh next version? Because if not, will i ahve to applyt his fix manually every single time I upgrade SMFshop?
The only reason you'd have to do it again is if the code for the shop button changes (highly unlikely). So, no, you won't have to manually change it again

Offline cpg

Re: Shop button dissapearing on SMF 1.1 RC2? See this!
« Reply #3 on: February 14, 2006, 09:11:36 am »
How about in 106 with a helios theme there is no button.

any help to a noob in the field would grateful

Offline theunder-ground

Re: Shop button dissapearing on SMF 1.1 RC2? See this!
« Reply #4 on: February 18, 2006, 01:55:49 am »
I believe that you would have to manually edit that into the Helios theme.  There is a post on the SMF boards that should help you

Offline Daniel15

Re: Shop button dissapearing on SMF 1.1 RC2? See this!
« Reply #5 on: February 18, 2006, 08:34:06 am »
I believe that you would have to manually edit that into the Helios theme.  There is a post on the SMF boards that should help you
It's OK. I made a reply to his other post, and now have a button for the Helios theme in the Shop Buttons section.