PDA

View Full Version : Showthread title


coberr
12-27-2009, 06:05 PM
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 :

<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:
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
12-28-2009, 12:12 PM
Thanks you for your time.

Works perfectly.