Author Topic: SAF Multicolour  (Read 15730 times)

Offline Daniel15

SAF Multicolour
« 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

Chris

  • Guest
Re: SAF Multicolour
« Reply #1 on: January 05, 2007, 04:16:50 am »
Thanks im using a custom made theme but it works same way :)