Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11839
Latest: BugginIn
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 42423
Total Topics: 7395
Most Online Today: 105
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 98
Total: 98

Author Topic: Add option to Main Menu bar  (Read 258 times)

0 Members and 1 Guest are viewing this topic.

Offline mickjav

  • Full Member
  • ***
  • Posts: 133
    • View Profile
    • Database Dreams
Add option to Main Menu bar
« on: June 17, 2022, 05:32:07 pm »
I would like to add a New Option to the Menu But It's no longer in subs.php or I may have missed it lol

[ Guests cannot view attachments ]

I would like to add the below above the add pictures option.

Code: [Select]
'sub_buttons' => array(
 'addgallery' => array(
 'title' => $txt['gallery_menu_addcat'],
 'href' => $scripturl . '?action=gallery;sa=addcat',
 'show' => allowedTo('smfgallery_manage'),
 ),

All the best mick.

Home of Chart Tracker Elite, Apollo & DJ 2020, Coming soon The Librarian.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16086
    • View Profile
Re: Add option to Main Menu bar
« Reply #1 on: June 18, 2022, 10:32:29 am »
Its a little more complicated with hooks. You have to edit Sources/GalleryHooks.php
 And find the "function gallery_menu_buttons" function in the file and make changes in that area.
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/
Like Like x 1 View List

Offline Shades

  • Community Suite Customer
  • Full Member
  • ******
  • Posts: 185
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Re: Add option to Main Menu bar
« Reply #2 on: June 18, 2022, 05:39:14 pm »
I would like to add a New Option to the Menu But It's no longer in subs.php or I may have missed it lol

(Attachment Link)

I would like to add the below above the add pictures option.

Code: [Select]
'sub_buttons' => array(
 'addgallery' => array(
 'title' => $txt['gallery_menu_addcat'],
 'href' => $scripturl . '?action=gallery;sa=addcat',
 'show' => allowedTo('smfgallery_manage'),
 ),

All the best mick.

You can use the ultimate menu mod and add as many buttons that you want! ;)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com
Like Like x 1 View List

Offline mickjav

  • Full Member
  • ***
  • Posts: 133
    • View Profile
    • Database Dreams
Re: Add option to Main Menu bar
« Reply #3 on: June 19, 2022, 05:51:38 am »
Thanks Shades. tested on test forum works a treat Looks like I'll be installed yet another mod  ;D

Home of Chart Tracker Elite, Apollo & DJ 2020, Coming soon The Librarian.
Like Like x 1 View List

Offline Shades

  • Community Suite Customer
  • Full Member
  • ******
  • Posts: 185
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Re: Add option to Main Menu bar
« Reply #4 on: June 21, 2022, 12:23:00 am »
Thanks Shades. tested on test forum works a treat Looks like I'll be installed yet another mod  ;D
Hey, I only share what works good for me! Glad to help! 8)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
4325 Views
Last post January 25, 2007, 11:32:24 pm
by maritimer
1 Replies
3014 Views
Last post November 14, 2007, 02:54:44 pm
by slick44
3 Replies
3475 Views
Last post June 21, 2011, 04:20:01 am
by cosmicx
0 Replies
2660 Views
Last post May 06, 2012, 09:44:20 pm
by CWVRV
3 Replies
1735 Views
Last post February 28, 2018, 07:55:39 am
by SMFHacks

+- Recent Topics

Custom badges by Hatshepsut
August 18, 2022, 10:10:46 pm

Membergroup level by davejo
August 18, 2022, 02:13:49 am

Setting a single free download. by SMFHacks
August 16, 2022, 09:50:04 am

Quick moderation checkboxes in search result? by SMFHacks
August 08, 2022, 10:37:03 am

Contact Page Mod Not Working by SMFHacks
August 05, 2022, 12:19:43 pm

Issues with new Newsletter Pro installation by SMFHacks
August 05, 2022, 07:15:18 am

SMFBlog Mod by Nicole
August 03, 2022, 09:46:22 pm

Contact Page by Nicole
August 03, 2022, 09:45:42 pm

trader + classifieds by Nicole
August 03, 2022, 05:05:17 pm

Category Permissions List by SMFHacks
July 30, 2022, 07:53:24 am

Powered by EzPortal