How To New Pages in vb style
Ok ive seen that alot of people have been asking how to create new pages with the vbulletin style on them like i have used on forum.imaedia.com for the link/games etc pages, so ive decided to write this to tell everyone how to do it
Ok i usualy start by creating a basic template in the admin cp that i will use for all the pages that im going to add. log into your admin cp go to styles and templates then go to the style manager and expand the style that you are currently using on the right of the page you will see a drop down menu, select add new template from it and then you need to name it for this example im naming mine : "test" now we need to create a very basic html template to go in this template: because im doing this quickly i just added any css i wanted to use onto this page instad of using the vbulletin css styles ok so put the following into your temoplate and change the parts that say page name and page content to suit your needs :) Code:
$stylevar[htmldoctype] The next step is to create the php file that will call the template, Here is the code i used, to incldue the naviation and header/footer Code:
<?php then go to yourforumurl/pagename.php and you got yourself a non vb page with vb template on it hope that helps post any questions, i prolli missed something or done something totaly wrong but hehe just trying to help :P |
Nice job, but I don't like the way you coded the PHP file, looks like you just threw it in there, un-organized so to speak.
But still good job. ^_^ |
replace TEMPLATENAME with your template's name :) (it's 2 times on this file)
Code:
<?php |
yea thats better hehe, alot nicer organised
|
That's why i posted it ;)
Kier and his team made an amazing job in commenting all the functions and stuff you can find in that files so let's honor that work and use their comments :) |
yea.....ill put that code into the first post aswell :)
|
Now that is better! :) Nice job!
|
thanks, and thanks to MrNase too :)
|
white page seeing this
http://www.interfans.org/forum/rules.php some of my members don't see this page. They get a white page. Why? |
Thanks .. I really like this and have started using it!! :)
|
All times are GMT. The time now is 05:45 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|