31
Completed Shop Buttons / Dilber Multicolour (HarzeM)
« on: October 07, 2006, 02:43:53 pm »
This is a shop button for Dilber Multicolour (Otherwise known as Dilber MC). 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/dilbermc/index.template.php
Find:
Add after:
Also, find:
Add after:
// SMFShop
Then, your shop button should be working
Code modifications:
Open Themes/dilbermc/index.template.php
Find:
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
Add after:
// SMFShop
if ($context['current_action'] == 'shop')
$current_action = 'shop';
Also, find:
// The [calendar]!
if ($context['allow_calendar'])
echo'
<td align="center" class="menubg' , $current_action == 'calendar' ? '2' : '' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>';
Add after:
// SMFShop
echo'
<td align="center" class="menubg' , $current_action == 'shop' ? '2' : '' , '">
<a href="', $scripturl, '?action=shop">Shop</a>
</td>';
Then, your shop button should be working