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 |
#1382
|
||||
|
||||
hi I am asking for advice.
by code I want to have a link with PHP Code:
thanks you |
#1383
|
||||
|
||||
That can't be your full page code. If this isn't about writing a page, then you are in the wrong thread.
|
#1384
|
|||
|
|||
I searched includes/function_online.php for this
PHP Code:
|
#1385
|
||||
|
||||
This thread is for vB3, not vB4.
|
#1386
|
|||
|
|||
DOH.. Do you have a link for the vb4 version of this?
|
#1387
|
||||
|
||||
|
#1388
|
||||
|
||||
i have this mss!
Code:
Unable to add cookies, header already sent. File: /home/gamerol/public_html/leaguelegends.com.ar/foro/Livestream.php Line: 1 |
#1389
|
|||
|
|||
Well, I am looking for a way of just adding the navbarto my own stand alone page. This seems to do the trick but I don't get a navbarwhich uses the template or looks formatted nicely.
have a look here where I am testing http://www.snoozingonthejob.com/test.php by the way, i omit the other part of the code because I just want the navbar see below. Any help would be appreciated. Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'test'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'TEST',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$navbits = array();
$navbits[$parent] = 'Test Page';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
print $navbar;
?>
|
#1390
|
||||
|
||||
You can't omit anything from the PHP file. You customize how you want the page to look in the template.
|
#1391
|
|||
|
|||
Well I copied the files just like they are in the original post but just get a blank page
i created test2.php and the file TEST. Hate to beat a dead horse but I am clueless at this point |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|