Author Topic: Button for 'Amber' theme (Bloc)  (Read 4586 times)

Offline Daniel15

Button for 'Amber' theme (Bloc)
« on: February 04, 2006, 07:27:26 am »
This is a shop button for the 'Amber' theme by Bloc. This theme is like the SMF 1.1RC2 default theme, in the fact that it uses text buttons. So, we don't need a shop button image for it, we just need to modify the code

Code modifications:
Open Themes/amber/index.template.php
Find:
Code: [Select]
if (in_array($_GET['action'],array('search','admin','calendar','profile','mlist','register','login')))
REPLACE with:
Code: [Select]
if (in_array($_GET['action'],array('search','admin','calendar','profile','mlist','register','login', 'shop')))

(your line may not look exactly the same, especially if you've installed other MODs. The important thing is that you add 'shop' to the end, as shown)

Find:
Code: [Select]
// The [calendar]!
if ($context['allow_calendar'])
echo $tab1, $ca== 'calendar' ? '1' : '2' , '"><a href="', $scripturl, '?action=calendar">'.$txt['calendar24']. '</a></td>';

Add After:
Code: [Select]
echo $tab1, $ca== 'shop' ? '1' : '2' , '"><a href="', $scripturl, '?action=calendar">Shop</a></td>';

Your shop button should now be working!