The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
How to create your own vBulletin-powered page! (uses vB templates)
Want to create your very own vBulletin powered page which includes the header, footer, and the user permissions system as well? Well now you can Want to know how it will look? Take a look at the attached screenshot below! Now includes the Who's Online modification! Also, instructions included on how to create your own pages that are integrated with current vBulletin files! I'm going to give you a generic page but you can easily modify the contents of the page by changing the template So here we go Instructions: Create a new file, whatever you want to call it (let's say test.php). Open up test.php and add the following (replace TEST with whatever template you want to show): PHP Code:
Now create the template, called TEST with the following content: HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">Title</td> </tr> <tr> <td class="alt1">Text</td> </tr> </table> $footer </body> </html> Now check it out by going to test.php Who's Online Modification Now if you want to show who is browsing this new page of yours, just open up includes/functions_online.php and find: PHP Code:
PHP Code:
Then find: PHP Code:
PHP Code:
---------------------------------- Also if you want to create your own pages 'within' current vBulletin files, do the following: Open the file you want, and then right before the final ?> in the source code, add the following: PHP Code:
edit by Lynne: If running 3.8.4 or above, see this post to take care of the PHP 5.3.0-related problems - https://vborg.vbsupport.ru/showpost....postcount=1171 |
#612
|
|||
|
|||
i wan´t a custom page but i also want this page to have some other page in it like this
test.php as it says in this article and then i also want test.php?do=test to be another page i tried to put that code below everything but it did not work.. i also wanna know how i fix so test.php?do=test2 is only shown to some usergroups but not all, but test.php and test.php?do=test should be allowed to everyone. |
#613
|
|||
|
|||
Quote:
its working like sweet in 3.6.8..... thanks buddy...... |
#614
|
|||
|
|||
Great tutorial. took me a while to find at first but thanks
|
#615
|
|||
|
|||
I ahve a page at http://www.mummybrain.com/toplist/ - i'm wanting to open that page inside the template, how can i call this page to open inside?
|
#616
|
|||
|
|||
No ones found a way to put the files in any other folder but the forum root? That kind stinks
Even CHDIRing before and after global still causes errors with the images and some things. |
#617
|
|||
|
|||
works beautifully in 3.7 b4
thx! |
#618
|
||||
|
||||
@top_end_ms - It's really messy to say the least .. even vB's own blog is simply at /blog.php. Some mods that I have are the same way. I hate having random files in my forum root.
I got it working finally. First I copied the client scripts folder into the separate folder I want. Had to copy the /images folder as well (or else no images show up). Then I had to go into the header template and make absolute links for the menu options (or else they came up as domain.com/customfolder/name.php). Still having some issues with the "Search" working on the custom page (keeps going to customfolder/search.php) but other than that, it's as perfect as it will get. Maybe no one will try to search on those pages. Give it a try! (Not sure if having two client script folders is going to break anything, security issue, etc? Will find out I guess...) |
#619
|
|||
|
|||
is "Style" and "Template" one and the same thing?
|
#620
|
|||
|
|||
No, they are related but not same. A style is a collection of many templates, stylesheets, some variables, icons, buttons, etc.
|
#621
|
||||
|
||||
Great Instructions, Gary King!! :up::up::up:
Thank You Very Much For Sharing Them!! :up::up::up: My Best Regards!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|