Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 212
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 216
Total: 216

Author Topic: Custom Theme, no button...found the file...now what?  (Read 5621 times)

0 Members and 1 Guest are viewing this topic.

Offline TrailChic

  • Member
  • *
  • Posts: 2
    • View Profile
Custom Theme, no button...found the file...now what?
« 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!!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Custom Theme, no button...found the file...now what?
« 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
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline TrailChic

  • Member
  • *
  • Posts: 2
    • View Profile
Re: Custom Theme, no button...found the file...now what?
« 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: [Select]
// 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???? THANK YOU !!!!

I mean I can see the
Code: [Select]
<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 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Custom Theme, no button...found the file...now what?
« Reply #3 on: June 28, 2007, 09:36:48 pm »
Find
Code: [Select]
   // echo '<a' , $current_action=='gallery' ? ' class="chosen"' : '' , ' href="#"><span>Gallery</span></a>';
Change to
Code: [Select]
  echo '<a' , $current_action=='gallery' ? ' class="chosen"' : '' , ' href="#"><span>Gallery</span></a>';
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
7098 Views
Last post September 14, 2006, 01:20:31 pm
by SMFHacks
1 Replies
4138 Views
Last post February 24, 2007, 08:28:22 pm
by SMFHacks
35 Replies
20942 Views
Last post April 04, 2009, 10:48:09 am
by lego
1 Replies
3349 Views
Last post July 05, 2007, 08:14:49 am
by SMFHacks
5 Replies
8360 Views
Last post January 19, 2008, 09:35:38 am
by madeupmedia

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal