PDA

View Full Version : Get Blog link to show on vBadvanced [How Too]


RaceJunkie
Fri 31st Aug '07, 8:37pm
I asked this at vBadvanced and I thought it would be good to have it here as well. Thanks to Brian and Stilgar.

Admin CP => vBa CMPS => Default Settings => Main Settings => Portal Output Global Variables

Add 'template_hook' (without the quotes)

After that you need to edit Template: blog_navbar_link.

Original:

<td class="vbmenu_control"><a href="blog.php$session[sessionurl_q]">$vbphrase[blogs]</a></td>Change to:

<td class="vbmenu_control"><a href="/NAME_OF_FORUM_DIRECTORY/blog.php$session[sessionurl_q]">$vbphrase[blogs]</a></td>

be sure to add the / before the directory name.

goblues4
Sat 1st Sep '07, 10:19am
Instead of the template edit, you can add blog.php to Navbar Replacements

Mark.B
Tue 4th Sep '07, 3:50pm
AdminCP > vBaCMPS > Edit pages

Click "Edit" on the page you're dealing with (by default this is "Default/Homepage").

Scroll right the way down and expand "Main Options".

Under "Portal Output Global Variables", in the box on the right add:
template_hook

NOTE: just template_hook, NOT $template_hook!!

Scroll even further down and click "Save".

This will make your blog link show in the navbar on the vBadvanced page. It will also add the Project Tools link if that's missing, and any future template hook links that vB adds. So you're future-proofed!

class101
Sun 30th Sep '07, 7:03pm
great thank you guys I was looking for this solution because a simple add to the Navbar settings was not working for me. Cheers :)

ncangler
Wed 17th Oct '07, 4:47pm
I checked that "template_hook" was indeed located in the "Portal Output Global Variables" Main Options on each of my vBa CMPS pages and it is, but I still can't get vBulletin Project Tools to work anywhere but from within vBulletin. If I go out to a vBa or Photopost product page the link is broken because it is missing the /forums/ path. Any ideas how I can fix this. I haven't figured out the whole template hook thing yet. :)

ncangler
Wed 17th Oct '07, 4:50pm
Duh! I just read the template edit above and added the '/forums' path to the 'project_navbar_link'. Works great. Thanks for your patience guys.

Zingu
Mon 5th Nov '07, 3:51am
thnx!! worked like a charm! :)

lspichkin
Thu 8th Nov '07, 12:25am
This worked for me, but what does it mean that template_hook is now global? thanks!