The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hello,
I'm trying to add a simple menu link after "Quick Links", but I was never good enought to locate the correct hook. Can someone helps? Code:
<plugin active="1" executionorder="30">
<title>Forum Link</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[
$templater = vB_Template::create('teamtalk_forum_link');
$template_hook['navtab_end'] .= $templater->render();
]]></phpcode>
</plugin>
HTML Code:
<template name="teamtalk_forum_link" templatetype="template" date="1160112327" username="ChrisTERiS" version="1.0.0"><![CDATA[ <li id="vbflink_teamtalk"><a href="teamtalk.php">{vb:var vbphrase.teamtalk_global}</a></li> ]]></template> |
|
#2
|
||||
|
||||
|
Why not create it with the navigation manager?
|
|
#3
|
||||
|
||||
|
I don't want Tab. Just a Link in forum. Never tried to add something like this with a product file.
|
|
#4
|
|||
|
|||
|
I believe it's the "navbar_end" template hook.
We're talking about the sub-menu under the main navbar right? |
|
#5
|
||||
|
||||
|
I know, you can make a link, and assign it to a product with the nab manager.
So when you export your product XML it will have the navigation entry with it.
|
| Благодарность от: | ||
| RichieBoy67 | ||
|
#6
|
||||
|
||||
|
Quote:
![]() Anyway thank you David --------------- Added [DATE]1446218808[/DATE] at [TIME]1446218808[/TIME] --------------- I also tried this but adding a link is blocked (read only) to vBulletin product. I can't assign it to another product. |
|
#7
|
||||
|
||||
|
What I did in one of my products to add a link to the "Quick Links" drop-down menu is use the plugin hook "global_setup_complete" and the plugin code:
PHP Code:
|
|
#8
|
||||
|
||||
|
Finally I created a Tab menu for it and if someone wants to move it somewhere he can do it by copying the link and permissions.
![]() --------------- Added [DATE]1446219813[/DATE] at [TIME]1446219813[/TIME] --------------- Quote:
|
|
#9
|
||||
|
||||
|
Quote:
When you export the product, it will export the link in the xml. |
|
#10
|
||||
|
||||
|
Christos, try:
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|