The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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 Code:
<?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') . '");');
?>
what to modify to have title:"Pay per impression"? tnx
|
|
#2
|
||||
|
||||
|
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: Code:
<title>$vboptions[bbtitle] - $pagetitle</title> Code:
<title><if condition="THIS_SCRIPT != 'pay-per-impression'">$vboptions[bbtitle] - </if>$pagetitle</title> |
|
#3
|
|||
|
|||
|
it works!
thanks!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|