Log in

View Full Version : How do I make a Custom Page


interfx
02-19-2007, 12:25 AM
I created a new template called "page_privacy", and entered my information (privacy statement), then when I go to the page:

http://www.domain.com/forums/index.php?page=privacy

It does not show up... What am I doing wrong? I thought this should be very simple way to make a custom page...

Thanks for any advice...

Brandon Sheley
02-19-2007, 12:45 AM
if you gave us the actual link it may help ;)

interfx
02-19-2007, 01:21 AM
<a href="http://www.oled.info/forums/index.php?page=privacy" target="_blank">http://www.oled.info/forums/index.php?page=privacy</a>

There you go... Not much to see, it defaults to the std. forums page... I have a template template defined as "page_privacy", and it looks just fine.

HMBeaty
02-19-2007, 01:23 AM
So I take it you didn't make the PHP file that should go with your template?

ConqSoft
02-19-2007, 01:25 AM
That's not how you create a custom page in vBulletin. This is:

Create a template called "custom_somename" ( it must be prefixed with custom_ ) and put something like this in it:


$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>Some Page Title</title>
</head>
<body>
$header
$navbar

Some Page Content

$footer
</body>
</html>



Then you can call it using:

http://www.yourdomain.com/forum/misc.php?do=page&template=somename

HMBeaty
02-19-2007, 01:30 AM
Or you could add the php file so it looks much cleaner. For example, instead of looking like:

http://www.yourdomain.com/forum/misc.php?do=page&template=somename

It will look more like:

http://www.yourdomain.com/forum/somename.php

interfx
02-19-2007, 01:32 AM
Thanks, figured it out...

ConqSoft
02-19-2007, 01:33 AM
I use vBSEO to rewrite them to friendly URLs. ;)

Couple of examples:

http://www.cbrxx.com/merchandise.html
http://www.cbrxx.com/misc.php?do=page&template=merchandise

http://www.cbrxx.com/rules.html
http://www.cbrxx.com/misc.php?do=page&template=rules

http://www.cbrxx.com/privacy.html
http://www.cbrxx.com/misc.php?do=page&template=privacy

http://www.cbrxx.com/link.html
http://www.cbrxx.com/misc.php?do=page&template=link