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

Author Topic: Gallery button has wrong link  (Read 4425 times)

0 Members and 1 Guest are viewing this topic.

Offline Mr.B

  • Member
  • *
  • Posts: 3
    • View Profile
Gallery button has wrong link
« on: December 01, 2010, 11:19:46 pm »
I just recently installed SMF 1.1.12, and also installed Gallery lite 3.0.2. Evrything is up and running, but the gallery button links, by default, to the home page. If I add "smf/" between the ".com/" and the "index.php?action=gallery", the gallery opens up. Also I can go into the admin section of gallery, to make changes, using the same smf/ method. But I can't make any changes. Because when I click save, it defaults back to the home page, and doesn't save the changes. I assume that it is either a index.php problem, or a template problem. I'm just too newb to figure it out.

 Thank you for your help.

Offline Mr.B

  • Member
  • *
  • Posts: 3
    • View Profile
Re: Gallery button has wrong link
« Reply #1 on: December 08, 2010, 09:44:25 pm »
Well it's been about a week now, and I still haven't figured it out. There's over 50 views, but no comments. I've moved files around, with no results. Maybe I should re-install?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery button has wrong link
« Reply #2 on: December 09, 2010, 12:27:58 am »
It should be in the index.template.php of your theme should be point to $scripturl . '?action=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 Mr.B

  • Member
  • *
  • Posts: 3
    • View Profile
Re: Gallery button has wrong link
« Reply #3 on: December 09, 2010, 01:19:28 am »
Like this? I changed it a period, it didn't help.

   // 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>' : '';
« Last Edit: December 09, 2010, 01:21:02 am by Mr.B »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Gallery button has wrong link
« Reply #4 on: December 09, 2010, 08:57:56 am »
That's it and looks correct
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/

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
5328 Views
Last post March 04, 2007, 09:40:00 pm
by SMFHacks
1 Replies
4487 Views
Last post June 14, 2008, 09:36:19 pm
by SMFHacks
2 Replies
5030 Views
Last post November 25, 2007, 03:42:13 am
by neary
9 Replies
8685 Views
Last post April 27, 2008, 08:36:53 pm
by mashby
4 Replies
6664 Views
Last post September 21, 2013, 03:05:14 am
by GrahamNR17

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