PDA

View Full Version : Display a forum name in the navbar template


David LeBow
10-05-2008, 02:30 PM
Dumb Newbie question #17:

I'm adding a navbar item in the navbar template to a link in a submenu. I have the ID to the forum I'd like to jump to but would like the hyperlink text to be the name of the given forum.

How can I programmatically insert the forum name of the forum with id, say, 4, as the text of the <a> element?

Here's the section out of the submenu:

<tr>
<td class="vbmenu_option">
<a href="ForumDisplay.php?f=4" rel="nofollow">FORUM NAME HERE</a>
</td>
</tr>

I've seen code-snippets in the form $vbulletin->forumcache["$forumID"]['title'], but I can't seem to get it to expand to anything but Array[4]['title'] (et al. - various parameter options explored).

What's the RIGHT way to get a forum name from an ID in the Navbar template...?

Thanks.