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 |
#287
|
|||
|
|||
Hi.
A bit late question here baybe, hope you still help out. I am about to make a "results" page, with your mod. I want to make a drop down list (without links) that shows the latest races won. Anyway, how can i make a drop-down list like the 'Quick Links', just inside your mod? (not in navbar ) Regards, Challenge |
#288
|
|||
|
|||
had to allow openbase redirect...
|
#289
|
|||
|
|||
I want to integrate only certain aspects of the forums into my site. I want to stay away from templates.
Mainly I want to get the information thats generating on the welcome/home page for the forums into the new site. If the visitor is not logged in then the login form replaces the user CP. Any suggestions ? |
#290
|
|||
|
|||
I figured it out.
|
#291
|
|||
|
|||
Quote:
didnt make any sense to me since i had no restrictions on the script guess its just the way vb behaves? is there some trickey i can perform so that guest with no forum permission can view custom pages? |
#292
|
||||
|
||||
Hehe, thanks for this tut. ^_^
|
#293
|
|||
|
|||
Quote:
|
#294
|
|||
|
|||
Thanks for the information! matters a lot CHEERS!
|
#295
|
|||
|
|||
Quote:
|
#296
|
|||
|
|||
Where should i put the template?
|
#297
|
||||
|
||||
Quote:
|
#298
|
|||
|
|||
Is there a way to use an include function and call some other .php
data into this page? When I try it, it never shows any data past the "eval templates" I need to display some none vBul. data in a page as well and I cannot use the php include start methgos because the file is static (changes) for every user. |
#299
|
|||
|
|||
Quote:
|
#300
|
||||
|
||||
@include("localhost/1/get_counts.php?mode=bands"); this includes produces a number how could i asign this number to a $varible to i can use it in a template ?
|
#301
|
||||
|
||||
Im not understanding this hack. Is this a replacement for the cpms system? Where I could take my current homepage, and just make php includes to call whatever info i want?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|