ashly
06-14-2004, 08:23 AM
For the one's that want to make there own page power bij vb2 than here are the codes for template and the .php file.
view.php (Change to what you want)
<?php
error_reporting(7);
$templatesused='site';
$loadbirthdays=1;
$loadmaxusers=1;
require('./global.php');
eval("dooutput(\"".gettemplate('site')."\");");
?>
You can replay's in de php code site with what ever you want.
Make template called SITE (or what ever you want)
{htmldoctype}
<html>
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
<meta name="keywords" content="vbulletin,forum,bbs,discussion,jelsoft">
<meta name="description" content="$bbtitle is a discussion forum powered by vBulletin. To visit the forum, go to $bburl/ . To find out about vBulletin, go to http://www.vbulletin.com/ (http://www.vbulletin.com/) .">
<title>$bbtitle - powered by vBulletin</title>
$headinclude
</head>
<body>
$header
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" bgcolor="{tablebordercolor}" width="100%">
<!--DWLayoutTable-->
<tr>
<td width="973" height="27" bgcolor="{tableheadbgcolor}"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Title</b></normalfont></td>
</tr>
<tr>
<td height="27" valign="top" nowrap bgcolor="{secondaltcolor}"><normalfont><b>Text</b></normalfont></td>
</tr>
</table>
$footer
</body>
</html>
If you want to make more pages to the page and dont want to make a lot of those .php files thane here is a coding you can add.
open view.php(or what ever you name it) look for:
eval("dooutput(\"".gettemplate('site')."\");");
Replace it With:
if ($_REQUEST['do'] == '')
{
eval("dooutput(\"".gettemplate('site')."\");");
}
This changes makes shure that the view.php still works.
And you nied to do this if you want to ad more pages.
Open view.php (or what ever you named it) look for
?>
Add byfor that:
if ($_REQUEST['do'] == 'XXX')
{
eval("dooutput(\"".gettemplate('TEMPLATE_XXX')."\");");
}
And do that evey time you want to make more pages.
But Replace the XXX whit what you want to ?do=XXX to by called.
And where it says TEMPALTE_XXX you put the name of the template that you want to show up for your new page.
view.php (Change to what you want)
<?php
error_reporting(7);
$templatesused='site';
$loadbirthdays=1;
$loadmaxusers=1;
require('./global.php');
eval("dooutput(\"".gettemplate('site')."\");");
?>
You can replay's in de php code site with what ever you want.
Make template called SITE (or what ever you want)
{htmldoctype}
<html>
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
<meta name="keywords" content="vbulletin,forum,bbs,discussion,jelsoft">
<meta name="description" content="$bbtitle is a discussion forum powered by vBulletin. To visit the forum, go to $bburl/ . To find out about vBulletin, go to http://www.vbulletin.com/ (http://www.vbulletin.com/) .">
<title>$bbtitle - powered by vBulletin</title>
$headinclude
</head>
<body>
$header
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" bgcolor="{tablebordercolor}" width="100%">
<!--DWLayoutTable-->
<tr>
<td width="973" height="27" bgcolor="{tableheadbgcolor}"><normalfont color="{tableheadtextcolor}" class="thtcolor"><b>Title</b></normalfont></td>
</tr>
<tr>
<td height="27" valign="top" nowrap bgcolor="{secondaltcolor}"><normalfont><b>Text</b></normalfont></td>
</tr>
</table>
$footer
</body>
</html>
If you want to make more pages to the page and dont want to make a lot of those .php files thane here is a coding you can add.
open view.php(or what ever you name it) look for:
eval("dooutput(\"".gettemplate('site')."\");");
Replace it With:
if ($_REQUEST['do'] == '')
{
eval("dooutput(\"".gettemplate('site')."\");");
}
This changes makes shure that the view.php still works.
And you nied to do this if you want to ad more pages.
Open view.php (or what ever you named it) look for
?>
Add byfor that:
if ($_REQUEST['do'] == 'XXX')
{
eval("dooutput(\"".gettemplate('TEMPLATE_XXX')."\");");
}
And do that evey time you want to make more pages.
But Replace the XXX whit what you want to ?do=XXX to by called.
And where it says TEMPALTE_XXX you put the name of the template that you want to show up for your new page.