*

Author Topic: I have more than one Treasury tab in my menu.  (Read 3374 times)

Offline Resourcez

  • Administrator
  • Hero Member
  • *
  • Posts: 1425
    • Resourcez
I have more than one Treasury tab in my menu.
« on: February 25, 2008, 12:54:36 PM »
Cause:
Due to an incorrect uninstall operation, invariably due to uninstalling out of sequence and re-installing, and usually accompanied by warnings in the Package Manager that there were problems.

Cure:
  • open up Themes/default/index.template.php

  • remove the duplicate Treasury button section(s)
Code: [Select]
// the [treasury] button
if ($context['allow_view_treasury'])
echo ($current_action == 'treasury' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_', $current_action == 'treasury' ? 'active_back' : 'back', '">
<a href="', $scripturl, '?action=treasury">', $txt['treasury_menu'], '</a>
</td>', $current_action == 'treasury' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
  • If you do not understand that , use the Package Parser
    Click the "uninstall" option to show you what needs to removed and from where.

Note:
This issue usually means other sections of Treasury have been duplicated.
Use the Package Parser to find where these might be, and adjust the relevant file.
« Last Edit: February 25, 2008, 02:14:23 PM by Resourcez »
If you have everything under control, you're not moving fast enough.
• Apache 2.2.24 • PHP 5.3.24 • MySQL 5.1.68 •

 

Please Support Us!

Something for Here
Donate with PayPal!
December Goal: $40.00
Due Date: Dec 31
Total Receipts: $0.00
Below Goal: $40.00
Site Currency: USD
 0%

Content