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: 92
Total: 92

Author Topic: No button for Gallery Lite in SMF  (Read 6148 times)

0 Members and 1 Guest are viewing this topic.

Offline krury

  • Member
  • *
  • Posts: 4
    • View Profile
No button for Gallery Lite in SMF
« on: January 24, 2007, 06:56:36 pm »
I read your fix in the setup faq, but it did not enough detail for me to implement. What code do I need to add/modify in the index.template.php?
How do I add the button after changing the code?

Thanks

Kevin

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: No button for Gallery Lite in SMF
« Reply #1 on: January 24, 2007, 06:57:35 pm »
Post the template_menu function of your custom theme.
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 krury

  • Member
  • *
  • Posts: 4
    • View Profile
Re: No button for Gallery Lite in SMF
« Reply #2 on: January 25, 2007, 08:40:06 am »
Here it is I think!
Thanks
Kevin

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: No button for Gallery Lite in SMF
« Reply #3 on: January 25, 2007, 08:46:26 am »
Open index.template.php
Find
Code: [Select]
// PM button
$context['menubox'][]=array(
'title' => $txt['pm_short'] . ' '. ($context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : ''),
'link' => $scripturl.'?action=pm',
'chosen' => 'pm',
'memberonly' => true,
'guestonly' => false,
'permission' => 'allow_pm',
);
Before it add
Code: [Select]

// Gallery button
$context['menubox'][]=array(
'title' => $txt['smfgallery_menu'],
'link' => $scripturl.'?action=gallery',
'chosen' => 'gallery',
'memberonly' => false,
'guestonly' => false,
'permission' => 'allow_smfgallery_view',
);
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 Dave123

  • Member
  • *
  • Posts: 1
    • View Profile
Re: No button for Gallery Lite in SMF
« Reply #4 on: March 27, 2008, 09:29:38 am »
here's my index.template.
cant find the txt as above.

 

Related Topics

  Subject / Started by Replies Last post
10 Replies
9170 Views
Last post December 05, 2007, 10:49:46 pm
by djmac
3 Replies
7484 Views
Last post April 21, 2008, 10:17:18 pm
by SMFHacks
2 Replies
4964 Views
Last post April 28, 2008, 07:01:53 pm
by SMFHacks
3 Replies
5263 Views
Last post October 06, 2009, 03:08:29 pm
by william777
5 Replies
8131 Views
Last post February 02, 2011, 01:05:44 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