Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 193
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 194
Total: 194

Author Topic: Remove underline gallery link?  (Read 6311 times)

0 Members and 1 Guest are viewing this topic.

Offline xatnep

  • Member
  • *
  • Posts: 20
    • View Profile
Remove underline gallery link?
« 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?

Offline xatnep

  • Member
  • *
  • Posts: 20
    • View Profile
Re: Remove underline gallery link?
« 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>' : '';


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Remove underline gallery link?
« 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
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 SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Remove underline gallery link?
« 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
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 xatnep

  • Member
  • *
  • Posts: 20
    • View Profile
Re: Remove underline gallery link?
« 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

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
4350 Views
Last post August 31, 2007, 11:48:33 am
by texterted
2 Replies
4344 Views
Last post November 13, 2008, 10:43:35 am
by fotografo74
1 Replies
3586 Views
Last post December 17, 2008, 11:11:47 pm
by SMFHacks
1 Replies
3484 Views
Last post September 20, 2009, 07:52:18 am
by SMFHacks
1 Replies
3497 Views
Last post February 08, 2015, 03:19:17 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

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

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal