Author Topic: Dilber Multicolour (HarzeM)  (Read 6310 times)

Offline Daniel15

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:

	
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

Offline doon

Re: Dilber Multicolour (HarzeM)
« Reply #1 on: August 08, 2007, 12:06:58 pm »
thankzzzzz

Offline Dr.Vista

Re: Dilber Multicolour (HarzeM)
« Reply #2 on: November 20, 2007, 07:25:47 am »
I cant get it to work.

Offline pinay007

Re: Dilber Multicolour (HarzeM)
« Reply #3 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. :)

Offline next409

Re: Dilber Multicolour (HarzeM)
« Reply #4 on: November 24, 2016, 06:52:40 pm »
I did not know these modifications before) Thank you rescued!
1-855-865-9553
« Last Edit: January 02, 2017, 04:35:31 am by next409 »