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

Author Topic: Add option to Main Menu bar  (Read 675 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: 16436
    • 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
4706 Views
Last post January 25, 2007, 11:32:24 pm
by maritimer
1 Replies
3245 Views
Last post November 14, 2007, 02:54:44 pm
by slick44
3 Replies
4574 Views
Last post June 21, 2011, 04:20:01 am
by cosmicx
0 Replies
3943 Views
Last post May 06, 2012, 09:44:20 pm
by CWVRV
3 Replies
2492 Views
Last post February 28, 2018, 07:55:39 am
by SMFHacks

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