all gone...

Simple Machines Forum integration forum

Re: all gone...

Postby Phrozyn » Mon Sep 07, 2009 8:10 am

To do this, in index.template.php i added the following just before: // Show the [help] button
on line 760...

Code: Select all
// Show the [roster] button.
        echo ($current_action=='roster' || $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 == 'roster' ? 'active_back' : 'off_back' , '">
                                        <a href="/roster/">'.$txt[500] , '</a>
                         </td>' , $current_action == 'roster' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">
&nbsp;</td>';


Then I went to the Themes/default/languages/index.english.php
I created an entry of

Code: Select all
$txt[500] =  'Roster';


This adds the tab - but I haven't used the action mod yet - so the url I pointed to earlier /roster/ may change if I decide to use it.


-----------

Edit:

I installed the Action Mod - and the url now looks like this:

Code: Select all
<a href="', $scripturl, '?action=roster">'.$txt[500] , '</a>
Phrozyn
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Mon Sep 07, 2009 1:13 am

Previous

Return to SMF

Who is online

Users browsing this forum: No registered users and 1 guest

cron