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 |
#392
|
|||
|
|||
i am only using one style and I added it as a template.
matter of fact if I go into the style and edit the file I created it is in fact under the style. Code:
define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'upload'); // 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( 'applied', I didnt see the last spot where you had TEST.. Sorry man!! Good work though!!! |
#393
|
|||
|
|||
I'm using vb2, is there a custom page for that? I tried using this one and it wouldn't work, I kept getting an error. I tried just modyfying a page I had and then creating a template but it wouldn't work.
HELP! |
#394
|
|||
|
|||
How do I change this so on the new page you create in the Nav Bar it doesn't show the page title as a sub title under the forum home title on the left in the navbar. Instead I just want it to list the page title only without a link back to the forum home
|
#395
|
|||
|
|||
how to inculde the vbphrase ?
|
#396
|
|||
|
|||
This is very nice!
I am using vB 3.5.1, and it worked perfectly fine! http://runescapeproject.com/updates.php is where I have mine at, and it worked WITHOUT ERROR. Nader, I am not an expert, but I think it might be worth it to look in the vB user manual or API guide or something... just my opinion. |
#397
|
||||
|
||||
I don't know if this is possbile or not but I'm trying to create a stand alone index.php file that contains some code for a Beach Tide Table. The trick is getting the vBulletin header, footer and navbar on the page so it looks consistent with the rest of my site. The Tide Table code has to be in the index.php file as it contains information for multiple locations that is refreshed when you click on the location you want. Here is the Tide Table link:
http://www.ncangler.com/tides/wilmington/index.php My forums are located here: http://www.ncangler.com/forums/ Can anyone tell me if this can be implemented with this hack? Thanks for your help! |
#398
|
|||
|
|||
A shot in the dark, but what if you nest the tidetable index.php under a directory of your choosing?
|
#399
|
||||
|
||||
Hi Cebby. Thanks for the response. I'm not familiar with nesting. How would I do that?
Quote:
|
#400
|
|||
|
|||
Nesting might not be the right nomenclature. Basically instead of calling the index.php that is the main vB page (in the root), you put another file called index.php inside another directory and point to that file instead. Like I said...shot in the dark...
FWIW, I haven't implemented this hack yet, but will tonight... :cheeky: |
#401
|
|||
|
|||
Another thought (and probably more reliable). I was poking around in the admincp tonight and found where you can change the name of the main forum page. The default is index.php, but you can name it anything you want - you just need to rename the vB index.php file to the new name you choose.
Under vBulletin Options -> Forum Home Page Options -> (first item) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|