PDA

View Full Version : Forum Category Name in Showthread


Nightfoxx121
05-14-2012, 03:28 AM
Hey everyone.
I'm pretty new to working with vBulletin templates but I'm trying to figure out how I can display the forum's name and possibly the website name in the <title> tags of showthread.php.

Site name wouldn't be difficult of course as I could simply type it myself, but I have no clue what the {vb: tag is to display the category name. Although having the {vb: tag of the website would be better since I may change domains later on so if anyone knows that, that's also welcome.

Any assistance is much appereciated,
- Nightfoxx

BirdOPrey5
05-14-2012, 03:17 PM
You need to edit the template SHOWTHREAD.

You can edit templates via Style Manager in Admin CP.

Find the <title> line in the template.

<title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title}<vb:if condition="$pagenumber > '1'"> - {vb:rawphrase page_x, {vb:raw pagenumber}}</vb:if></title>

Add this for the name of your board (main name)

{vb:raw vboptions.bbtitle}

and this for the forum name (forum the thread is in)

{vb:raw GLOBALS.foruminfo.title_clean}

Nightfoxx121
05-19-2012, 05:35 AM
Awesome, it works great! thanks a lot