PDA

View Full Version : $template_hook[navbar_buttons_left] not working when forum menu moved to header


ablaye
10-17-2007, 03:24 PM
Hi,

I have moved the forum menu to the header template. It used to be in the 'navbar' template.
However, the variable $template_hook[navbar_buttons_left] is no longer containing any data. It was supposed to create a "Blog" link on the forum menu but no longer does so when the menu is moved to the header.

Can anyone help?

Analogpoint
10-17-2007, 04:08 PM
Whatever code that is adding a link to $template_hook[navbar_buttons_left] needs to run before the header template is evaluated.

ablaye
10-17-2007, 04:18 PM
I figured that. But what is the code that is adding the link????

Analogpoint
10-17-2007, 04:20 PM
I don't know, I assume you installed a mod or the vB Blog add-on, and that's what's adding the link. So, which is it?

Blaine0002
10-17-2007, 06:03 PM
i am having this same problem with
$template_hook[postbit_userinfo_right_after_posts]
and i am evalling the template to the template_hook in the global start hook.

Paul M
10-17-2007, 06:18 PM
global_start is run after the header has been eval'd, you need to use parse_templates.

Blaine0002
10-17-2007, 06:19 PM
Thank you very much!

ablaye
10-17-2007, 06:23 PM
I don't know, I assume you installed a mod or the vB Blog add-on, and that's what's adding the link. So, which is it?

I only installed the plain vBlog. No add-on. I am trying to have the "Blogs" link appear on the header menu.
What do I need to change?

Analogpoint
10-18-2007, 12:42 AM
I only installed the plain vBlog. No add-on. I am trying to have the "Blogs" link appear on the header menu.
What do I need to change?

Did you install the official vBulletin Blog product found here http://www.vbulletin.com/features_blog.php ?

ablaye
10-22-2007, 06:59 PM
Did you install the official vBulletin Blog product found here http://www.vbulletin.com/features_blog.php ?
Yes. I sure did.

Analogpoint
10-22-2007, 08:07 PM
Yes. I sure did.

Oh, ok, I think there was another mod floating around called vBlog. That's why I wasn't sure. And since I don't have access to the code for vB blog product, I can't really help you out.