Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4263
Latest: Cekky
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43455
Total Topics: 7557
Most Online Today: 60
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 42
Total: 42

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

+- Recent Topics

[Mod]Tenor Posting Animated Gifs by SMFHacks
August 30, 2024, 04:04:26 pm

List of other errors after installing and trying to use by SMFHacks
August 27, 2024, 02:15:52 pm

Subject Error by SMFHacks
August 27, 2024, 02:15:46 pm

Store Not Logging Transactions or Sending Emails for Paid Items, Free Items Work by SMFHacks
August 27, 2024, 05:26:52 am

Don't Know How to Unhide Previously Hidden Items in Latest SMF Store 5.0 by Michael Vail
August 26, 2024, 11:38:33 pm

Undefined array key "session_var" and Undefined array key "session_id" Errors by SMFHacks
August 26, 2024, 11:10:54 pm

SMF Links Error by yamiacaveman
August 22, 2024, 06:21:53 pm

HTTP Error 500 by SMFHacks
August 20, 2024, 12:28:53 pm

Site upgrade to 2.1 by live627
August 18, 2024, 02:47:33 am

Uninstall issue and new licence no email by landyvlad
August 16, 2024, 08:05:48 am

Powered by EzPortal