Author Topic: Pn-pn theme  (Read 16721 times)

Offline Daniel15

Pn-pn theme
« on: December 27, 2006, 01:41:54 pm »
This is a shop button for the Pn-pn theme (I must say, it's an awesome theme :))

Code modifications:
Open Themes/pnpn11/index.template.php
Find:

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


Add after:

	
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 class="maintab_off_' . $first . '">&nbsp;</td>' , '
	
	
	
	
<td valign="top" class="maintab_'
, $current_action == 'calendar' ? 'active_back' : 'off_back' , '">
	
	
	
	
	
<a href="'
, $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
	
	
	
	
</td>'
, $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';?>


Add after:

	
// SMFShop
	
echo (
$current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
	
	
	
	
<td valign="top" class="maintab_'
, $current_action == 'shop' ? 'active_back' : 'off_back' , '">
	
	
	
	
	
<a href="'
, $scripturl, '?action=shop">Shop</a>
	
	
	
	
</td>'
, $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';?>


Then, your shop button should be working :D

Offline adicrst

Re: Pn-pn theme
« Reply #1 on: October 04, 2007, 08:27:25 pm »
great..i've been looking for this  O0

Offline adicrst

Re: Pn-pn theme
« Reply #2 on: October 04, 2007, 09:11:00 pm »
i get this error (for pn-pn 114)