The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
DB Driven Navigation Hooks - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: DB Driven Navigation Hooks (/showthread.php?tid=1105)



DB Driven Navigation Hooks - venedude - 07-28-2018

Hello all!

I added a new custom navigation hook under usersc/includes/database_navigation_hooks.php but does not seem to be working. I'm I missing something? In the menu entry I created it just shows up as {{some_hook}}

$itemString = str_replace('{{some_hook}}','just a string to test',$itemString);


US 4.3.25, fresh install (not upgraded from previous version)


Thanks!


RE: DB Driven Navigation Hooks - Brandin - 07-29-2018

I believe there are two styles, dropdown and item. I don't recall if we hit both, we may have missed one. Did you put this menu item as a top level, dropdown or dropdown submenu item?

Brandin.


RE: DB Driven Navigation Hooks - venedude - 07-30-2018

(07-29-2018, 02:54 AM)Brandin Wrote: I believe there are two styles, dropdown and item. I don't recall if we hit both, we may have missed one. Did you put this menu item as a top level, dropdown or dropdown submenu item?

Brandin.

Hi Brandin,

Parent: No parent
Dropdown: No

If I add one of the built-in hooks, like {{username}}, in either the label or link it works.


RE: DB Driven Navigation Hooks - Brandin - 07-30-2018

I will see if I can reproduce in 4.4 and get back to you ASAP.


RE: DB Driven Navigation Hooks - Brandin - 08-13-2018

Line 81 in database-navigation.php:
include $abs_us_root.$us_url_root.'usersc/includes/database_navigation_hooks.php';

Change from require_once to include Smile


RE: DB Driven Navigation Hooks - venedude - 09-19-2018

(08-13-2018, 03:03 AM)Brandin Wrote: Line 81 in database-navigation.php:
         include $abs_us_root.$us_url_root.'usersc/includes/database_navigation_hooks.php';

Change from require_once to include Smile

OMG, totally missed this. Thanks for your reply.

With this change now it works if set as "No parent", but not if a parent is set.


RE: DB Driven Navigation Hooks - Brandin - 09-20-2018

I believe that is possibly something we forgot to do when doin the coding. Can you open a ticket at userspice.com/bugs?

Thank you,
Brandin.