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: 43293
Total Topics: 7522
Most Online Today: 118
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 111
Total: 111

Author Topic: Remove underline gallery link?  (Read 6325 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: 16451
    • 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: 16451
    • 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
4362 Views
Last post August 31, 2007, 11:48:33 am
by texterted
2 Replies
4360 Views
Last post November 13, 2008, 10:43:35 am
by fotografo74
1 Replies
3595 Views
Last post December 17, 2008, 11:11:47 pm
by SMFHacks
1 Replies
3489 Views
Last post September 20, 2009, 07:52:18 am
by SMFHacks
1 Replies
3510 Views
Last post February 08, 2015, 03:19:17 pm
by SMFHacks

+- Recent Topics

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

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

Powered by EzPortal