Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - relinquish

Pages: [1]
1
Completed Shop Buttons / Dark Dirge
« on: October 28, 2007, 04:29:51 pm »
This template was released on October 14, 2007, from this Topic in which I requested a button until I finally figured it out by myself.
I'll just post here on what I have so far

Find
Code: [Select]
        if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';
After this code, paste this
Code: [Select]
   if ($context['current_action'] == 'shop')
      $current_action = 'shop';

Now Find
Code: [Select]
   // The [calendar]!
   if ($context['allow_calendar'])
      echo '
               <li', $current_action == 'calendar' ? ' id="active"' : '', '><a href="', $scripturl, '?action=calendar">', $txt['calendar24'], '</a></li>';
And add this after this code
Code: [Select]
// The shop
      echo '
               <li', $current_action == 'shop' ? ' id="active"' : '', '><a href="', $scripturl, '?action=shop">Shop</a></li>';

And you're done.

2
Theme Name: Dark Dirge
Link to Theme: http://custom.simplemachines.org/themes/?lemma=386

A new theme had been submitted on simplemachines.org on October 14, 2007, I was wondering if you can help me out on creating the shop button

-=EDIT=-
I managed to get the shop link to appear on the nav bar, but only on admin and shop, can you help me on putting it on the nav bar that can display on all the pages?
Here is what I have so far
I find the calendar code
Code: [Select]
   // The [calendar]!
   if ($context['allow_calendar'])
      echo '
               <li', $current_action == 'calendar' ? ' id="active"' : '', '><a href="', $scripturl, '?action=calendar">', $txt['calendar24'], '</a></li>';

I made this by putting it after the calendar code
Code: [Select]
// The shop
      echo '
               <li', $current_action == 'shop' ? ' id="active"' : '', '><a href="', $scripturl, '?action=shop">', $txt['shop'], '</a></li>';
Results: It shows only on Admin and Shop.

Never mind, I got it now.
Got it displayed on the nav bar every pages. Locking this topic.

Pages: [1]