SMF Shop

SMFShop => Shop Button Requests => Completed Shop Buttons => Topic started by: Daniel15 on October 07, 2006, 02:43:53 pm

Title: Dilber Multicolour (HarzeM)
Post by: Daniel15 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:

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 :D
Title: Re: Dilber Multicolour (HarzeM)
Post by: doon on August 08, 2007, 12:06:58 pm
thankzzzzz
Title: Re: Dilber Multicolour (HarzeM)
Post by: Dr.Vista on November 20, 2007, 07:25:47 am
I cant get it to work.
Title: Re: Dilber Multicolour (HarzeM)
Post by: pinay007 on April 06, 2008, 12:02:54 pm
With some modification, this can also be used for the DefaultMC_fin11 theme.

Just in case anyone wants to know. :)
Title: Re: Dilber Multicolour (HarzeM)
Post by: next409 on November 24, 2016, 06:52:40 pm
I did not know these modifications before) Thank you rescued!
1-855-865-9553 (http://reachcustomerservicenumber.com/sprint-customer-service/)