Advertisement:

Author Topic: [Theme] Pn-Pn for 1.1 RC 3  (Read 98357 times)

Offline Basie

  • Jr. Member
  • **
  • Posts: 356
Re: [Theme] Pn-Pn for 1.1 RC 3
« Reply #100 on: November 07, 2007, 01:41:26 PM »
To answer your question god_made_me_do_it. 

Find this.
Code: [Select]
// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
<td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'off_back' , '">
<a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
</td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

And after it add this.
Code: [Select]
// Show the [gallery] button.
echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
<td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'off_back' , '">
<a href="', $scripturl, '?action=gallery">' , $txt['gallery'] , '</a>
</td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

Then open up the modifications.english.php file, and

After this
Code: [Select]
// Pn-Pn ADD
Add this
Code: [Select]
$txt['gallery'] = "Gallery";
This would be my first time telling someone how to edit.  If you have any trouble feel free to ask.

The above fix adds a new tab to access the gallery, however the link to the gallery settings (in the config menu of the admin pannel) is still missing.

Could someone please post the fix for this. Thanks.

Offline Deaks

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,174
  • Gender: Male
    • pouvik on GitHub
Re: [Theme] Pn-Pn for 1.1 RC 3
« Reply #101 on: January 10, 2008, 09:40:30 AM »