Themes/bluBlur

From SMFShopWiki

Jump to: navigation, search

This page explains how to add a shop button to the menubar on the bluBlur 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/bluBlur/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 ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
  4. <td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
  5. <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
  6. </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Add after:

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