Where add hook in core "run hooks()" to be able to add new item to user cp nav as custom variable like attachments
I try to put hook in:
usercp_menu()
usercp_menu_messenger()
usercp_menu_profile()
usercp_menu_misc()
I can use echo in plugins func runned by hooks in this four func by i can use template
I add in attachment simple plugin to test if someone want help, you must manual add hook to function_user.php end $ test variable to usercp menu nav template
Hi,
Perhaps the following code helps:
https://github.com/MyBBStuff/MyAlerts/bl....php#L1214
In this case, I'm adding my entries as a new menu section before the "Miscellaneous" section, but you can change the location by changing the priority (the third parameter to "$plugins->add_hook()").
Thanks for replay
tested and failed, this is good for all new box like myalerts but not for single item
(2017-03-02, 07:58 PM)Supryk Wrote: [ -> ]Thanks for replay
tested and failed, this is good for all new box like myalerts but not for single item
Hi,
It should work for a single item, I've done so in the past. Can you share the code you've tried?
@"Euan T", thanks for try to heklp me, I am very grateful
code in attachment
this add single item but for music only in bottom and broke template, i know we can modify template but what when new item will be in if (if user group can use this option)
http://i.imgur.com/YWGGlvm.png
So you want the item to be shown in the last menu group? I'll have a look at the code tomorrow and see what I can figure out.
Thank you, I hope you find the solution
Bump bump bump
There must be a way
Sorry, I got sidetracked doing something else. I'll try and get a chance to look at this during this week.