Author Topic: [SMF 1] Adding a custom tab  (Read 59272 times)

Offline allisondk

  • Newbie
  • *
  • Posts: 7
Re: Adding a custom tab
« Reply #110 on: Jun 12, 2009, 06:22:05 »
cool thanks, gonna try now.
Awesome smiley collection btw :P

Offline allisondk

  • Newbie
  • *
  • Posts: 7
Re: Adding a custom tab
« Reply #111 on: Jun 12, 2009, 06:39:32 »
ok, just tried to edit the help link to Rules and having it leading to ?action=page;sa=rules
the link is there allrightm but no text, just empty.

I might have to go with a drop down menu, since all the links from my main website will have to be there
Home, Rules, About us, FAQ, Entries, Standings, Schedule, Liveview, FLT, Media + the forum onces..

Offline skt

  • Newbie
  • *
  • Posts: 4
    • Email
Re: Adding a custom tab
« Reply #112 on: Dec 14, 2009, 23:24:02 »
hey guy,

i've just added the three mods for my SMF 1.1.11 and now i want help about how to add "download systems, invite & tags" custom tab in top DS-NATURAL navigation bar. i searched this forum but couldn't find the solution so please if anyone can advice
« Last Edit: Dec 15, 2009, 00:03:27 by skt »

Online agent47

  • Support Team
  • Hero Member
  • *
  • Posts: 819
  • At your service?
    • Superhero Alliance
Re: [SMF 1] Adding a custom tab
« Reply #113 on: Jan 30, 2012, 20:34:02 »
hey guy,

i've just added the three mods for my SMF 1.1.11 and now i want help about how to add "download systems, invite & tags" custom tab in top DS-NATURAL navigation bar. i searched this forum but couldn't find the solution so please if anyone can advice

_______________________


Links removed by ARG
Spammer? **scratches head**
« Last Edit: Jan 30, 2012, 21:25:00 by ARG »

Wedge is the way to go

Offline ARG

  • GFX Designer
  • DS Friend
  • Hero Member
  • *
  • Posts: 5655
  • Civilian Support
    • Files4Design
Re: [SMF 1] Adding a custom tab
« Reply #114 on: Jan 30, 2012, 21:21:30 »
hey guy,

i've just added the three mods for my SMF 1.1.11 and now i want help about how to add "download systems, invite & tags" custom tab in top DS-NATURAL navigation bar. i searched this forum but couldn't find the solution so please if anyone can advice

_______________________


Links removed by ARG

Look for this section in index.template.php. It's pretty much self explanatory.

Code: [Select]
// Show the start of the tab section.
echo '
<div id="topmenu">
<ul>';
// Show the [home] button.
echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

// Show the [help] button.
echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li><a' , $current_action=='search' ? ' class="current"' : '' , ' href="', $scripturl, '?action=search"><span>' , $txt[182] , '</span></a></li>';

// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li><a' , $current_action=='admin' ? ' class="current"' : '' , ' href="', $scripturl, '?action=admin"><span>' , $txt[2] , '</span></a></li>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a' , $current_action=='profile' ? ' class="current"' : '' , ' href="', $scripturl, '?action=profile"><span>' , $txt[79] , '</span></a></li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a' , $current_action=='pm' ? ' class="current"' : '' , ' href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a ' , $current_action=='mlist' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';

// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li><a ' , $current_action=='login' ? ' class="current"' : '' , ' href="', $scripturl, '?action=login"><span>' , $txt[34] , '</span></a></li>';

// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li><a ' , $current_action=='register' ? ' class="current"' : '' , ' href="', $scripturl, '?action=register"><span>' , $txt[97] , '</span></a></li>';

// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a ' , $current_action=='logout' ? ' class="current"' : '' , 'href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>' , $txt[108] , '</span></a></li>';

echo '
</ul>
</div>';

}


Or maybe take a look at this topic.

Also in the future, please don't post non-support related links in your posts. ;)

« Last Edit: Jan 30, 2012, 21:37:50 by ARG »
I no longer work here. Please stop sending me messages asking for premium theme support. That is what the Support Boards are for. Thank You!