Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4214
Latest: thatsjustit
New This Month: 5
New This Week: 3
New Today: 0
Stats
Total Posts: 42792
Total Topics: 7455
Most Online Today: 77
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 28
Total: 28

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

0 Members and 1 Guest are viewing this topic.

Offline mickjav

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

+- Recent Topics

prettyurls - TroubleShooting.wiki by SMFHacks
Today at 01:49:35 pm

Download Gallery Option by SMFHacks
March 23, 2023, 09:34:02 am

Lost attachments by pete
March 22, 2023, 10:24:17 am

Additional Permissions by mickjav
March 18, 2023, 05:21:23 am

[Mod]Discord Web Hooks by SMFHacks
March 17, 2023, 08:48:30 am

Site upgrade to 2.1 by SMFHacks
March 12, 2023, 08:51:19 am

Theme/CSS design wanted by mickjav
March 11, 2023, 12:10:11 pm

Category Images by Anmer
March 10, 2023, 06:20:04 am

DownloadsPro - Topic Link by Anmer
March 08, 2023, 03:18:05 pm

Bulk File Import by SMFHacks
March 08, 2023, 07:56:23 am

Powered by EzPortal