Author Topic: need help w/ mainnav link  (Read 2524 times)

Offline drxdragon

need help w/ mainnav link
« on: July 13, 2008, 01:02:28 pm »
 // Show the [shop] button.
   echo '
            <td valign="middle" class="mainnav' , $current_action == 'shop' ? '_active' : '' , '">
               <a href="', $scripturl, '?action=shop">' , $txt['shop'] , '</a>
            </td>';

is the code i got in there.. but all my others show $txt['103_a'] and so on...
im running the warzone theme from m3talc0re if anyone can help me get the shop link up and running .. thanks in advance... btw its working only when im in admin panel.. if i click home its not showing.. thanks again

Offline Toups

Re: need help w/ mainnav link
« Reply #1 on: July 19, 2008, 07:33:29 am »
// Show the [shop] button.
   echo '
            <td valign="middle" class="mainnav' , $current_action == 'shop' ? '_active' : '' , '">
               <a href="', $scripturl, '?action=shop">' , $txt['shop'] , '</a>
            </td>';

is the code i got in there.. but all my others show $txt['103_a'] and so on...
im running the warzone theme from m3talc0re if anyone can help me get the shop link up and running .. thanks in advance... btw its working only when im in admin panel.. if i click home its not showing.. thanks again


You can either define shop in languages/english.index.php
by doing this:
Code: [Select]
$txt['shop'] = 'Shop';

or simply in that code change it to this:
Code: [Select]
// Show the [shop] button.
   echo '
            <td valign="middle" class="mainnav' , $current_action == 'shop' ? '_active' : '' , '">
               <a href="', $scripturl, '?action=shop">' , Shop , '</a>
            </td>';

Either will work most likely.. but the first way is the real way to do it.