Recent Topics

Members
Stats
  • Total Posts: 10,754
  • Total Topics: 1,374
  • Online today: 120
  • Online ever: 879
  • (Jan 21, 20, 05:49:15 PM)
Users Online
Users: 0
Guests: 108
Total: 108

Help with Black rain v.2

Started by magik, Nov 14, 10, 06:13:27 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Crip

Can you ---
Attach your (index.template.php)
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

magik

haha ive done it,  ;D thanks again Crip  O0

Crip

I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

magik

#13
my home button is a bit wonkey lol


// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm','forum' )))
      $current_action = $context['current_action'];
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

   // Are we using right-to-left orientation?
   if ($context['right_to_left'])
   {
      $first = 'last';
      $last = 'first';
   }
   else
   {
      $first = 'first';
      $last = 'last';
   }
        echo '<div id="tabs6">';

   // How about the [home] button?
      echo '<ul><li', $current_action == 'home' ? ' id="active"' : '', '><a href="',

$scripturl, '"><span>'.$txt[103].'</span>[/url]</li>';
   
  // How about the [Forum] button?
      echo '<ul><li', $current_action == 'forum' ? ' id="active"' : '', '><a href="', $scripturl, '?action=forum"><span>'.$txt['tp-forum'].'</span></li>';
   
  // How about the [help] button?
       echo '<li', $current_action == 'help' ? ' id="active"' : '', '><a href="', $scripturl, '?action=help" ><span>', $txt[119], '</span>[/url]</li>';

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

   // Is the user allowed to administrate at all? ([admin])
        if ($context['allow_admin'])
      echo '<li', $current_action == 'admin' ? ' id="active"' : '', '><a href="', $scripturl, '?action=admin"><span>', $txt[2], '</span>[/url]</li>';
       
   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo '<li', $current_action == 'profile' ? ' id="active"' : '', '><a href="', $scripturl, '?action=profile"><span>', $txt[467], '</span>[/url]</li>';

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

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo '<li', $current_action == 'pm' ? ' id="active"' : '', '><a href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span>[/url]</li>';
   
   // the [member] list button
   if ($context['allow_memberlist'])
      echo '<li', $current_action == 'mlist' ? ' id="active"' : '', '><a href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span>[/url]</li>';

   // If the user is a guest, show [login] and [register] buttons.
   if ($context['user']['is_guest'])
   {
      echo '<li', $current_action == 'login' ? ' id="active"' : '', '><a href="', $scripturl, '?action=login"><span>', $txt[34], '</span>[/url]</li>
           <li', $current_action == 'register' ? ' id="active"' : '', '><a href="', $scripturl, '?action=register"><span>', $txt[97], '</span>[/url]</li>';
   }
   // Otherwise, they might want to [logout]...
   else
      echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>', $txt[108], '</span>[/url]</li>';
        echo '</ul></div>';
}

Crip

Home should be --

   // How about the [home] button?
      echo '<ul><li', $current_action == 'home' ? ' id="active"' : '', '><a href="',$scripturl, '"><span>'.$txt[103].'</span></a></li>';



Home should be --
Quote
   // How about the [home] button?
      echo '<ul><li', $current_action == 'home' ? ' id="active"' : '', '><a href="',$scripturl, '"><span>'.$txt[103].'</span></a></li>';
I have become comfortably numb!


No PM's for Support unless invited! 

I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -
TOTM Winner.

magik

Thanks crip, ive tried doing that but still wonkey lol will have a play about with it

many thanks :D