SMF Shop

SMFShop => Shop Button Requests => Completed Shop Buttons => Topic started by: Daniel15 on February 11, 2007, 10:42:00 am

Title: Default_Modern
Post by: Daniel15 on February 11, 2007, 10:42:00 am
This is a shop button for the Default_Modern theme by m3talc0re. Like most m3talc0re themes, this theme is quite nice :D

Code modifications:
Open Themes/default_modern/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 ($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