SMF Shop
SMFShop => Shop Button Requests => Completed Shop Buttons => Topic started by: Daniel15 on October 07, 2006, 02:33:32 pm
-
This is a shop button for SAF Multicolour. Like most themes, this theme doesn't use individual buttons for the menu bar, making it very easy to code up a button for it :)
Code modifications:
Open Themes/safmc101/index.template.php
Find:
if ($context['current_action'] == 'search2')
$current_action = 'search';
Add after:
// SMFShop
if ($context['current_action'] == 'shop')
$current_action = 'shop';
Also, find:
// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' , $current_action == 'calendar' ? ' class="active"' : '', ' href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';
Add after:
//SMFShop
echo '<li><a' , $current_action == 'shop' ? ' class="active"' : '', ' href="', $scripturl, '?action=shop">Shop</a></li>';
Then, your shop button should be working :D
-
Thanks im using a custom made theme but it works same way :)