Author Topic: Silent Wave FAQ  (Read 6256 times)

Offline Kethra

  • Support Team
  • Hero Member
  • *
  • Posts: 1322
    • Chez moi
Silent Wave FAQ
« on: Jan 01, 2008, 21:14:46 »
This will be a FAQ thread for the Silent Wave theme that will be added to as more common problems/questions arise.

« Last Edit: Mar 12, 2008, 20:51:38 by Kethra »

"You want weapons? We're in a library! Books! The best weapons in the world! This room's the greatest arsenal we could have - arm yourselves!" ~ The Doctor

Online ARG

  • GFX Designer
  • DS Friend
  • Hero Member
  • *
  • Posts: 5656
  • Civilian Support
    • Files4Design
Re: Silent Wave FAQ
« Reply #1 on: Feb 18, 2009, 20:50:55 »
What about editing the menu bar to add more links?

In your index.template.php file you will see this code:

Code: [Select]
// Show the start of the tab section.

echo '
<ul>';

// Show the [home] button.
echo '<li><a href="', $scripturl, '">' , $txt[103] , '</a></li>';

// Show the [forum] button.
      echo '<li><a href="', $scripturl, '?action=forum">' , $txt['tp-forum'] , '</a></li>';

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

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

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

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

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

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

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


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


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


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

echo '</ul>'

Depending on where you want the menu button to show, add this code and change the url, title, ect. to your desired text. I usually add buttons between the calendar and admin buttons

Code: [Select]
<li><a href="http://syberwebzhosting.com" title="Affordable web hosting" target="_blank">Web Hosting</a></li>

Remember: Always keep an original copy of the file you are altering on your computer, preferably on the desktop so if you make a mistake you can always have the original as a backup. 
« Last Edit: Feb 18, 2009, 20:54:18 by Gatlin1 »
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!