vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Showthread title (https://vborg.vbsupport.ru/showthread.php?t=231348)

coberr 12-27-2009 06:05 PM

Showthread title
 
I would to add also the foru display title in the SHOWTHREAD for the <title>

Currenly I have the following:
<title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title}</title>

What Do I need to do in the vb4 to get the following result for the <title> tag.

Exaple on vbulletin.org/forum

<title> Showtrhead title - vB4 Programming Discussions </title>

What syntax I need to use in the <title> in SHOWTHREAD to get the:

<title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title} - vB4 Programming Discussions </title>

Thanks.

MARCO1 12-27-2009 06:13 PM

Try this :
HTML Code:

<title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title} - {vb:raw foruminfo.title_clean} </title>

coberr 12-27-2009 06:24 PM

Thanks but seems that doesnt works.

<title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title} - - </title>

It shows me just "-" instead vB4 Programming Discussions.

Really strange, in the ForumDisplay Works.

MARCO1 12-27-2009 07:16 PM

Let me try it when I back to home.

coberr 12-28-2009 10:09 AM

Hi, did you try at home?

In vb 3.7-8 I didnt have problems with that.

winstone 12-28-2009 11:05 AM

create a plugin with following code:
PHP Code:

vB_Template::preRegister
    
'SHOWTHREAD', array('forumTitle' => $forumTitle
); 

Product: vBulletin
Hook Location: showthread_complete

save and activate the plugin
in SHOWTHREAD template, find
Code:

<title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title}</title>
replace with
Code:

<title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title} - {vb:raw forumTitle}</title>

coberr 12-28-2009 12:12 PM

Thanks you for your time.

Works perfectly.


All times are GMT. The time now is 07:23 AM.

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.00985 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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