Log in

View Full Version : how to customize tag <title>


Cornolio
10-13-2005, 09:23 PM
i have some custom pages, and i'd like to customize the tag title (i think i'll use <if condition...) to have just "Pagetitle", and not "Forumname - pagetitle".

the code used is

<?php

// GO TO FORUM DIR
chdir('./');

// STANDARD VBULLETIN STUFF
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'pay-per-impression');
require_once('./global.php');

// GENERIC_SHELL VARS
$pagetitle = "Pay per impression";
$HTML = ""; // PIECED TOGETHER IN SCRIPT

eval('$navbar = "' . fetch_template('navbar') . '";');
eval('$HTML = "' . fetch_template('pay-per-impression') . '";');

eval('print_output("' . fetch_template('GENERIC_SHELL') . '");');

?>

the page create is: http://www.discutere.it/pay-per-impression.php

what to modify to have title:"Pay per impression"?

tnx :)

Adrian Schneider
10-13-2005, 09:48 PM
A quick fix would be to create another template (copy paste GENERIC_SHELL if you'd like) and edit the <title>.

You could also edit the GENERIC_SHELL template as follows:
Change:
<title>$vboptions[bbtitle] - $pagetitle</title>
To somethign Like:
<title><if condition="THIS_SCRIPT != 'pay-per-impression'">$vboptions[bbtitle] - </if>$pagetitle</title>

Cornolio
10-13-2005, 09:53 PM
it works!
thanks! :D