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: 202
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 194
Total: 195

Author Topic: Multiple Gallery buttons  (Read 9470 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: 16436
    • 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: 16436
    • 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: 16436
    • 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: 16436
    • 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
5462 Views
Last post September 17, 2007, 07:49:57 am
by SMFHacks
3 Replies
3858 Views
Last post March 09, 2008, 02:51:11 pm
by SMFHacks
6 Replies
7192 Views
Last post November 16, 2008, 08:45:48 am
by greatflash
2 Replies
3497 Views
Last post April 01, 2010, 02:19:11 am
by william777
2 Replies
4550 Views
Last post September 16, 2010, 05:28:34 pm
by endomorph

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