Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2013, 12:56:20 am

Login with username, password and session length
Members
Total Members: 10768
Latest: CayoTTe
Stats
Total Posts: 32395
Total Topics: 5480
Online Today: 39
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 55
Total: 55
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Custom Theme, no button...found the file...now what?  (Read 2293 times)
TrailChic
Inline PM Customer
*****
Offline Offline

Posts: 2


View Profile
« on: June 27, 2007, 03:05:57 pm »

I can't link it.
My custom theme already does have a link image to the gallery, but it's not working!
Found the index.template.php. now what? I am ready to edit...but what?

Oh my custom theme is scribbles

Thanks much. I am going nuts here!!
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11003


View Profile
« Reply #1 on: June 27, 2007, 06:46:39 pm »

Check out the template_menu function in that theme should be a place to add buttons
Logged
TrailChic
Inline PM Customer
*****
Offline Offline

Posts: 2


View Profile
« Reply #2 on: June 27, 2007, 11:17:28 pm »

yes, I looked at it, but I don't know what to do...

here's the code:

Code:
// 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')))
      $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 '
<ul id="menubox"><li id="home"><a' , $current_action=='home' ? ' class="chosen"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>
   <li id="help"><a' , $current_action=='help' ? ' class="chosen"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>
   <li id="search">';

   if ($context['allow_search'])
      echo '<a' , $current_action=='search' ? ' class="chosen"' : '' , ' href="', $scripturl, '?action=search"><span>Search</span></a>';
   echo '</li><li id="calendar">';   
   if ($context['allow_calendar'])
      echo '<a' , $current_action=='calendar' ? ' class="chosen"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a>';
   echo '</li><li id="admin">';   
   if ($context['allow_admin'])
      echo '<a' , $current_action=='admin' ? ' class="chosen"' : '' , ' href="', $scripturl, '?action=admin"><span>' , $txt[2] , '</span></a>';   
   echo '</li><li id="login">';   
   if ($context['user']['is_guest'])
      echo '<a' , $current_action=='login' ? ' class="chosen"' : '' , ' href="', $scripturl, '?action=login"><span>' , $txt[34] , '</span></a>';   
   echo '</li><li id="register">';   
   if ($context['user']['is_guest'])
      echo '<a' , $current_action=='register' ? ' class="chosen"' : '' , ' href="', $scripturl, '?action=join"><span>' , $txt[97] , '</span></a>';   
   echo '</li><li id="profile">';   
   if ($context['allow_edit_profile'])
      echo '<a' , $current_action=='profile' ? ' class="chosen"' : '' , ' href="', $scripturl, '?action=profile"><span>' , $txt[79] , '</span></a>';
   echo '</li><li id="logout">';   
   if ($context['user']['is_logged'])
      echo '<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">&nbsp;<span>' , $txt[108] , '</span></a>';
   echo '</li>
   <li id="gallery">';
   // echo '<a' , $current_action=='gallery' ? ' class="chosen"' : '' , ' href="#"><span>Gallery</span></a>';
   echo '</li>
   <li id="forum">';
   // echo '<a' , $current_action=='forum' ? ' class="chosen"' : '' , ' href="#"><span>forum</span></a>';
   echo '</li>
   <li id="chat">';
   // echo '<a' , $current_action=='chat' ? ' class="chosen"' : '' , ' href="#"><span>chat</span></a>';

   echo '</li></ul>';
   


}

anyone know what to do?Huh THANK YOU !!!!

I mean I can see the
Code:
<li id="gallery">';
   // echo '<a' , $current_action=='gallery' ? ' class="chosen"' : '' , ' href="#"><span>Gallery</span></a>';
   echo '</li>
but what now?
« Last Edit: June 27, 2007, 11:19:00 pm by TrailChic » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11003


View Profile
« Reply #3 on: June 28, 2007, 09:36:48 pm »

Find
Code:
   // echo '<a' , $current_action=='gallery' ? ' class="chosen"' : '' , ' href="#"><span>Gallery</span></a>';
Change to
Code:
  echo '<a' , $current_action=='gallery' ? ' class="chosen"' : '' , ' href="#"><span>Gallery</span></a>';
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 23, 2013, 08:29:56 pm]

[May 23, 2013, 04:50:21 am]

[May 22, 2013, 10:03:30 pm]

[May 22, 2013, 03:00:09 pm]

[May 22, 2013, 03:03:31 am]

[May 21, 2013, 03:27:16 pm]

[May 21, 2013, 02:11:10 pm]

[May 21, 2013, 01:18:58 pm]

[May 21, 2013, 12:22:02 am]

[May 21, 2013, 12:20:41 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.393 seconds with 21 queries.