Quote:
If the designer want's to do smth. complletely different from <ul> he can do that by simply modifying the template - with the list entries being generated in PHP he can't |
Quote:
|
Quote:
Kym |
This is very handy... https://vborg.vbsupport.ru/showthread.php?t=283123 (Thanks Andreas)
Also Scott's post on vb.com https://www.vbulletin.com/forum/show...56#post2295256 |
Quote:
And a note for any other coders that might want to add menus via DB addition rather than at installation.. Be sure you run build_language() after adding the navigation and phrase info. If you don't, your phrase won't appear in the menus. EDIT: Another note.. The information that's the original topic of this thread gets added to the install XML when you export it. So, you just need to create the navigation links and export a new XML for the mod. |
Quote:
PHP Code:
and I got these results: Code:
Time taken for 10.000 Bit Templates: 0.072948932647705 vs. these for the original version: Code:
Time taken for 10.000 Bit Templates: 1.542927980423 That's 6.5 times slower vs 134 times slower, and seems to indicate that eval() isn't the main offender. |
It's basically the overhead required for variable registration and object creation that makes rending templates in a loop pretty slow.
|
Yeah, I played around more and found that my times dropped from 1.5 to 0.7 just by not calling register_globals().
|
Quote:
I've come up with this code, it's not efficient but it works, I will work on efficiency- nhawk I know you mentioned making a database change but I prefer to avoid db edits if possible. This example adds a link to Quick Links No phrase needed. On navigation_tab_complete hook: PHP Code:
|
Quote:
I do not know the exact ideas behind Navigation Manager , but I think it simply wasn't designed with dynamic links in mind as vBulletin itself (except vBulletin CMS) does not do that. As I see it, there are currently three alternatives (of which none is realldy ideal):
IMHO the best solution would be if the Navigation Manager would offer "Dynamic Content" items which would just act as placeholders in ACP and are only being filled with content on the frontend when needed. This would be easy to implement and maintain for Add-ons and would still give the Administrator the power to control placement, etc. http://tracker.vbulletin.com/browse/VBIV-15123 |
All times are GMT. The time now is 07:32 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|