The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Add to quick links VB 4.1.8
OK I have researched and really don't understand where to modify and add to the quick links or get them from. The links I want to add to the quick links are below. Thanks for the help.
-subscribed threads (already there) -private messages -profile settings -my posts -my threads -who's online (already there) |
#2
|
||||
|
||||
You would edit the navbar template and add those links in. Or, just use the template_hooks that are there:
HTML Code:
{vb:raw template_hook.navbar_quick_links_menu_pos1} {vb:raw template_hook.navbar_quick_links_menu_pos2} {vb:raw template_hook.navbar_quick_links_menu_pos3} |
#3
|
||||
|
||||
OK, I'm still confused, lol. Can you give me a break down how to do that. Thanks JJ
|
#4
|
||||
|
||||
To do what?
To edit the template - Style Manager > find style > Edit templates > find navbar > add in your links To write plugin, Plugin Manager > add new plugin > hook location is probably "process_templates_complete" and then just add in the code like this: PHP Code:
|
#5
|
||||
|
||||
Thanks for the help!
|
#6
|
|||
|
|||
The problem with this solution is that the link to member profile is variable depending on the user ID, so, is there a way to add this type of code to a link:
Code:
<vb:if condition="$memberinfo['musername']">{vb:raw memberinfo.musername}<vb:else />{vb:raw memberinfo.username}</vb:if> <a href="{vb:link member, {vb:raw memberinfo}}"> {vb:rawphrase view_profile} </a> </li> </vb:if> |
#7
|
||||
|
||||
You could use a variable to define it first (I think the function is something like fetch_seo_url). It's php, so just write php to define the url and then insert it into the link.
PHP Code:
|
#8
|
|||
|
|||
Lynne --- is this still valid info?
I've added a plugin to product "vBulletin" at the "process_templates_complete" hook. The PHP code is: PHP Code:
However, I can't find the text anywhere on the page or in its HTML source... I am running 4.2.0 --- did the navigation update change this? --------------- Added [DATE]1340893800[/DATE] at [TIME]1340893800[/TIME] --------------- Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|