Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4282
Latest: Eric87
New This Month: 7
New This Week: 0
New Today: 0
Stats
Total Posts: 43664
Total Topics: 7576
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 62
Total: 62

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

0 Members and 1 Guest are viewing this topic.

Offline mickjav

  • Full Member
  • ***
  • Posts: 142
    • 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: 16618
    • 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

  • Full Member
  • ***
  • Posts: 219
  • 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: 142
    • 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

  • Full Member
  • ***
  • Posts: 219
  • 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
4857 Views
Last post January 25, 2007, 11:32:24 pm
by maritimer
1 Replies
3547 Views
Last post November 14, 2007, 02:54:44 pm
by slick44
3 Replies
4888 Views
Last post June 21, 2011, 04:20:01 am
by cosmicx
0 Replies
4284 Views
Last post May 06, 2012, 09:44:20 pm
by CWVRV
3 Replies
2680 Views
Last post February 28, 2018, 07:55:39 am
by SMFHacks

+- Recent Topics

Administration Center Clean Up by Senkusha
February 14, 2025, 07:30:31 am

Unknown Column: money by Senkusha
February 13, 2025, 07:02:57 pm

Do you offer paid assistance with the SMFBlog mod? by Grammy
February 11, 2025, 02:58:04 pm

SMFBlog Mod by Grammy
February 10, 2025, 07:33:32 pm

[Mod]Bluesky Auto Embed by SMFHacks
January 30, 2025, 01:47:36 pm

Delete a Picture from Trash - Error by SMFHacks
January 29, 2025, 09:06:38 pm

RESOLVED: Store Not Logging Transactions or Sending Emails by SMFHacks
January 23, 2025, 06:24:27 pm

Ability to exclude categories from ezPortal SMF Gallery random image ezblock by Alistair
January 22, 2025, 08:20:13 am

How to move SMF to new server by SMFHacks
January 21, 2025, 08:45:53 pm

Figuring out settings by SMFHacks
January 12, 2025, 04:56:14 pm

Powered by EzPortal