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: 344
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 218
Total: 218

Author Topic: Multiple Gallery buttons  (Read 9479 times)

0 Members and 1 Guest are viewing this topic.

Offline STC007

  • Member
  • *
  • Posts: 34
    • View Profile
Multiple Gallery buttons
« on: May 27, 2007, 12:21:29 am »
Hey I've been trying to workout issues with the gallery Pro and in doing so I installed and unistalled it a few times.  Now I have 3 different buttons on the menu bar that say gallery on them.  how do I get rid of the other two?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Multiple Gallery buttons
« Reply #1 on: May 27, 2007, 12:26:58 am »
Need to edit themes/default/index.template.php in the menu funciton and delete the repeated code. You can also attach the file and I can do it.
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 STC007

  • Member
  • *
  • Posts: 34
    • View Profile
Re: Multiple Gallery buttons
« Reply #2 on: May 27, 2007, 12:39:44 am »
Got it!

Thanks.

Offline Qayyom

  • Member
  • *
  • Posts: 7
    • View Profile
Re: Multiple Gallery buttons
« Reply #3 on: September 03, 2008, 04:25:58 am »
Same problem with me.

here is my Gallery Buttons' related codes from my index.template.php

Code: [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>' : '';

please edit these codes for showing One-Button only

thanks for your early response

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Multiple Gallery buttons
« Reply #4 on: September 03, 2008, 07:52:19 am »
If you have more than one of those in your template just remove them and then only one of the buttons will show. Leave only one instance of the code above in the template file.
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 Qayyom

  • Member
  • *
  • Posts: 7
    • View Profile
Re: Multiple Gallery buttons
« Reply #5 on: September 03, 2008, 11:37:53 pm »
If you have more than one of those in your template just remove them and then only one of the buttons will show. Leave only one instance of the code above in the template file.

sorry, actually i don't know PHP or any other programming language.

so please edit my submitted codes(remove duplicate lines) that can i replace in my index.template.php file, please

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Multiple Gallery buttons
« Reply #6 on: September 03, 2008, 11:41:16 pm »
That does not have any have extra code in the sample above there is only one button code.
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 mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Multiple Gallery buttons
« Reply #7 on: September 04, 2008, 06:43:10 am »
If you have more than one of those in your template just remove them and then only one of the buttons will show. Leave only one instance of the code above in the template file.

sorry, actually i don't know PHP or any other programming language.

so please edit my submitted codes(remove duplicate lines) that can i replace in my index.template.php file, please


If you attach your index.template.php file, I'm sure someone will edit it for you.

Offline Qayyom

  • Member
  • *
  • Posts: 7
    • View Profile
Re: Multiple Gallery buttons
« Reply #8 on: September 04, 2008, 11:07:34 pm »
here is the attached file of my forum.

Please edit my index.template.php file

my forum url is www.Jangforum.com

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Multiple Gallery buttons
« Reply #9 on: September 05, 2008, 06:54:44 am »
Looks like you had two. I pulled one. Hope this works for you!

Offline Qayyom

  • Member
  • *
  • Posts: 7
    • View Profile
Re: Multiple Gallery buttons
« Reply #10 on: September 05, 2008, 11:08:53 pm »
sorry

where is attached file

i can't see the file

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Multiple Gallery buttons
« Reply #11 on: September 06, 2008, 08:28:20 am »
Right above your last post.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Multiple Gallery buttons
« Reply #12 on: September 06, 2008, 01:15:10 pm »
People in non customer group can not see attached files.
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 mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Multiple Gallery buttons
« Reply #13 on: September 07, 2008, 10:49:16 pm »
OK, good security measure considering what you offer. In this case, can you PM me an email address qayyom? I'll email the file.

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
5470 Views
Last post September 17, 2007, 07:49:57 am
by SMFHacks
3 Replies
3871 Views
Last post March 09, 2008, 02:51:11 pm
by SMFHacks
6 Replies
7199 Views
Last post November 16, 2008, 08:45:48 am
by greatflash
2 Replies
3514 Views
Last post April 01, 2010, 02:19:11 am
by william777
2 Replies
4579 Views
Last post September 16, 2010, 05:28:34 pm
by endomorph

+- 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