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 |
#282
|
|||
|
|||
![]()
Yeah I understand the way it works because I've got around 10 pages already, Its just im creating loads more pages now which non Vb experts need 2 update
![]() ![]() |
#283
|
||||
|
||||
![]()
Anyone know how to modify the templates so that they work with this hack? Namely, the breadcumb and footer.
I am running into a problem right now because my forum is installed on /forums/ but I want to have these pages located in / instead. Since vB doesn't output full path, my URL for those two templates are http://domain.com/page.php, which gives noting but fugly 404's. I've tried <if condition="THIS_SCRIPT == 'lega'">forum/</if> but that doesn't work at all as nothing comes up! Is there any thing that I'm missing on? Does anyone know how to fix it? |
#284
|
||||
|
||||
![]()
As far as the (footer) links using the right path. It's been discussed plenty in this thread. A few posts up in post 271 nad again here in post 125.
To solve the navbar issues, I created a new navbar for the non-vb pages and hardcoded the breadcrumb links. |
#285
|
||||
|
||||
![]()
Dude, you are the man! All said and done at my site
![]() |
#286
|
|||
|
|||
![]()
Hi,
Could anyone email (or post) some code to display the current active users on the forum on a NON-VB page? Such as: There are current xx users online - x registered - x guests ..etc? I don't think it'd be too hard but obviously it's too hard for me! ![]() Thanks a lot if anyone can help, Matt |
#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? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|