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 |
#572
|
|||
|
|||
I have been looking for something like this for awhile. THANKS!!!
Only having one problem with this mod. Don't know if this has been brought up yet though. Why can you not use VB Code in the mod. I am making a links page and the url=www.link.com/url with brackets of coarse is not working. I know some of you are having problems making this work at all. And I have found a small mistake in the upload of this to my forum on my part. If you make the text document in wordpad make sure that you use TEXT DOCUMENT not RICH TEXT DOCUMENT. |
#573
|
|||
|
|||
spectacular - just what i've been lookin' for
Thank you to everyone who posted this tutorial. |
#574
|
||||
|
||||
Quote:
I have the template in place, and the web page showing. I just want to prevent guests from seeing this page (I'd rather that they saw the standard "you must be a member... blah, blah, no privileges..." vb type message) I don't know if the quoted advice can help me, or where I should be changing stuff. Does anyone know what code should I add/change? Also do I change/add this in the template or in the php file? Thanks in advance |
#575
|
|||
|
|||
Works great.
Is there any way of adding an Attachment feature like the threads can have? |
#576
|
|||
|
|||
you would have to make a own class/dm abstracted from the attachment dm
|
#577
|
|||
|
|||
this all works great for me with one exception..
i use this to make a mini-site that only certain usergroups can access and all that works fine, my problem is in having a little navigation menu for the pages within this minisite. basically as it was i had to have all the links on every page so adding a new one was becoming annoying, and im trying to get it so that the navmenu is a separate page/template, but cant get the nav template/page to display and have no idea why. anyone help please? |
#578
|
|||
|
|||
Quote:
PHP Code:
|
#579
|
||||
|
||||
worked great thanks
|
#580
|
|||
|
|||
say i want to create a page called stats as a vbulletin custom template.
my forums are located at mysite.com/forums, which means my stats page would be mysite.com/forums/stats.php could i get it into the root directory so i could have the stats page at mysite.com/stats.php? |
#581
|
|||
|
|||
applied this on 3.6.8 (that's the latest version right? i forget sometimes)
worked BEAUTIFLY! thanks a lot. just have one teeny question. my page shows up as "uknown page" in the "whos online" page when someone is visiting it. anyway to change that or give it a proper title so vbulletin displays it? prolly some title i'm missing somewhere. thanks in advance. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|