Author Topic: Button for 'Silver_Shine v2' theme (m3talc0re)  (Read 5289 times)

Offline Daniel15

Button for 'Silver_Shine v2' theme (m3talc0re)
« on: September 02, 2006, 11:13:19 am »
This is a shop button for the 'Silver_Shine v2' theme by m3talc0re. This theme, like the SMF 1.1 RC2 default theme, does not need a seperate button image for each button. This makes it easier to make a button for it (as it's only code to be changed)

Code modifications:
Open Themes/Silver_Shine_v2/Index.template.php
Find:

	
if (
$context['current_action'] == 'theme')
	
	
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';


Add after:

	
// Shop
	
if (
$context['current_action'] == 'shop')
	
	
$current_action 'shop';


Also, find:

	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo (
$current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' 

'' '
	
	
	
	
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
	
	
	
	
	
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
	
	
	
	
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


Add after:

	
// The 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">Shop</a>
	
	
	
</td>' 
$current_action == 'shop' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


Then, your shop button should be working :D
« Last Edit: September 02, 2006, 05:06:28 pm by daniel15 »

SuperTongue

  • Guest
Re: Button for 'Silver_Shine v2' theme (m3talc0re)
« Reply #1 on: September 02, 2006, 11:58:16 am »
Thanks a ton Dan!