SMF Shop

SMFShop => Shop Button Requests => Completed Shop Buttons => Topic started by: Daniel15 on December 27, 2006, 01:41:54 pm

Title: Pn-pn theme
Post by: Daniel15 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
Title: Re: Pn-pn theme
Post by: adicrst on October 04, 2007, 08:27:25 pm
great..i've been looking for this  O0
Title: Re: Pn-pn theme
Post by: adicrst on October 04, 2007, 09:11:00 pm
i get this error (for pn-pn 114)

(http://img76.imageshack.us/img76/5086/46047391vv6.th.jpg) (http://img76.imageshack.us/my.php?image=46047391vv6.jpg)