The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
using plugins to display community drop down links
I'm trying to display a link inside the "community" drop down menu.
So I added a global_setup_complete plugin with the contents: Code:
eval('$template_hook[\'navbar_community_menu_end\'] .= "<tr><td class="vbmenu_option"><a href="$vboptions[bburl]/ideas/ideas.php">Submit ideas</a></td></tr>"'); How can I properly display a link inside the community drop down button? Do I also need to "cache_templates" or something? Thank you. |
#2
|
||||
|
||||
I don't know why you're using eval()??
Just remove the eval... fix the quotes... Use this code: PHP Code:
|
#3
|
|||
|
|||
Quote:
Well thanks a lot tho for helping me with plugins. ^.^ |
#4
|
||||
|
||||
For future reference eval() is actually a pretty dangerous php function opening yourself up to hacking attempts if you don't know exactly what you are doing. You should avoid it in the future as much as possible, especially if you're not experienced.
It takes any text and evaluates it as if it was php code. When using eval() you need to put safe guards in place to make sure the text it gets could not possibly be dangerous or altered by the user. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|