Themes/Mystic Jade

From SMFShopWiki

Revision as of 23:43, 14 February 2008 by Daniel15 (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

This page explains how to add a shop button to the menubar on the Mystic Jade theme. Note that to completely integrate SMFShop with this theme, you'll also need to edit Display.template.php, so that the SMFShop information is displayed next to user's posts. Please see the Themes page for information on how to do this



In Themes/MysticJade/index.template.php, find:

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

Add after:

  1. if ($context['current_action'] == 'shop')
  2. $current_action = 'shop';

Also, find:

  1. // The [calendar]!
  2. if ($context['allow_calendar'])
  3. echo '<li><a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a></li>';

Add after:

  1. // SMFShop
  2. echo '<li><a href="', $scripturl, '?action=shop">Shop</a></li>';
Personal tools