vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Forum Category Name in Showthread (https://vborg.vbsupport.ru/showthread.php?t=282878)

Nightfoxx121 05-14-2012 03:28 AM

Forum Category Name in Showthread
 
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.

Code:

<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)

Code:

{vb:raw vboptions.bbtitle}
and this for the forum name (forum the thread is in)

Code:

{vb:raw GLOBALS.foruminfo.title_clean}

Nightfoxx121 05-19-2012 05:35 AM

Awesome, it works great! thanks a lot


All times are GMT. The time now is 11:15 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01730 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete