SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 24, 2012, 08:13:46 pm

Login with username, password and session length
Members
Total Members: 10071
Latest: cdavidson012
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 49
Total: 49
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Remove underline gallery link?  (Read 1835 times)
xatnep
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 20


View Profile
« on: August 17, 2010, 09:50:47 am »

I use custom theme.. and I edited on index.template.php and follow the instruction but I see undeline link as shown here:


How to remove underline link on gallery, MyImages, and  Search?
Logged
xatnep
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 20


View Profile
« Reply #1 on: August 17, 2010, 09:59:06 am »

I use instruction here: my smf version 1.1.11


./Themes/default/index.template.php
Find: [Select]

$current_action = 'admin';
   if (in_array($context['current_action'], array(

Add After: [Select]

'gallery',


Find: [Select]

// the [member] list button
   if ($context['allow_memberlist'])
      echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'mlist' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=mlist">' , $txt[331] , '</a>
            </td>' , $current_action == 'mlist' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Add After: [Select]


   // the [SMF Gallery] button
   if ($context['allow_smfgallery_view'])
      echo ($current_action == 'gallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'gallery' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a>
            </td>' , $current_action == 'gallery' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #2 on: August 17, 2010, 10:06:04 am »

Yes that is for the default theme. Custom theme menu code for 1.1.x may vary so you have to study other similiar buttons and just replace the actions with the gallery
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #3 on: August 17, 2010, 10:14:02 am »

For the Gallery button on the menu compare the menu code from other menu buttons on the theme and change the gallery button to that


Second one may require editing Gallery.php and find the toolbar button strip code and change it to tabs = false
Logged
xatnep
SMF Gallery Pro Customer
Newbie
*****
Offline Offline

Posts: 20


View Profile
« Reply #4 on: August 17, 2010, 10:55:57 am »

i use this theme:
http://custom.simplemachines.org/themes/index.php?lemma=1890

Okay.. I include the contain of index.template.php :

http://www.mediafire.com/?58m47y7x9p5n7b6
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 08:02:50 am]

[Today at 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
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 0.549 seconds with 20 queries.