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 |
#902
|
||||
|
||||
![]() Quote:
|
#903
|
|||
|
|||
![]()
Still can't get this to work with vbadvanced dynamics, anyone out there have this and had any luck with it? still seeing a blank page.
|
#904
|
||||
|
||||
![]() Quote:
|
#905
|
||||
|
||||
![]() Quote:
Finally, a simple thing took care of what i wanted to do. Wonder how i did not thought of that at once. What I did, I just removed $headinclude variable from my custom template AND instead put all the code of headinclude directly into it in replacement of $headinclude. (as it means exactly the same), this allowed me to easily give my own dynamic meta info replacing the old (without template edits, plugins or queries or anything) Works perfect ![]() Thanks |
#906
|
||||
|
||||
![]()
Lynne I love all of your stuff, but even though I am proficient at coding, I am at a loss as to actually follow this tutorial.
I wish to display on the actual custom page, currently active users. My page is: a homegrown creation, called vbquote template named vbquote, php file is vbquote.php code for this is: Code:
<?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'vbquote'); // ################### PRE-CACHE TEMPLATES AND DATA ###################### // pre-cache templates used by all actions $globaltemplates = array('vbquote'); // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); // ######################## START MAIN SCRIPT ############################ $navbits = array(); $navbits[$parent] = 'vB Quotations'; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('vbquote') . '");'); ?> ![]() |
#907
|
||||
|
||||
![]()
You want to show Currently Active Users on there? First, make sure that works as is - like add the code you want to add since I see none there yet (very important!). Then follow the instructions in this article - Adding Currently Active Users to your own vB page
|
#908
|
||||
|
||||
![]() Quote:
Tried to follow that, but not sure where to add it on our "custom".php page. Do we just whack it anywhere ? |
#909
|
||||
|
||||
![]() Quote:
|
#910
|
||||
|
||||
![]()
Timber, did you get a working PHP page before you tried to add the What's Going On Box? What the URL to the test page your working on?
|
#911
|
||||
|
||||
![]() Quote:
any more ideas please. thanks |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|