PDA

View Full Version : Showthread title


coberr
27 Dec 2009, 19:05
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
27 Dec 2009, 19:13
Try this :

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

coberr
27 Dec 2009, 19:24
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
27 Dec 2009, 20:16
Let me try it when I back to home.

coberr
28 Dec 2009, 11:09
Hi, did you try at home?

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

winstone
28 Dec 2009, 12:05
create a plugin with following code:
vB_Template::preRegister(
'SHOWTHREAD', array('forumTitle' => $forumTitle)
);
Product: vBulletin
Hook Location: showthread_complete

save and activate the plugin
in SHOWTHREAD template, find <title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title}</title>
replace with <title>{vb:raw thread.prefix_plain_html} {vb:raw thread.title} - {vb:raw forumTitle}</title>

coberr
28 Dec 2009, 13:12
Thanks you for your time.

Works perfectly.