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 |
#122
|
||||
|
||||
Okay, I just copied it straight out of the control panel, and those "+" marks weren't there. I have no idea where they came from, but when I pasted here, they showed up.
|
#123
|
||||
|
||||
Fascinating. For some reason, my copy of BBEdit is placing characters in those places in my files when I save them. Looks like problem solved. Thank you.
One question, though; There's no link in the NavBar for the page. Where in the NavBar should it be? |
#124
|
||||
|
||||
Quote:
|
#125
|
||||
|
||||
Quote:
https://vborg.vbsupport.ru/showpost....3&postcount=36 Code:
$vboptions[homeurl]/ I have many operating pages outside the forums directory using this hack. |
#126
|
||||
|
||||
Quote:
|
#127
|
||||
|
||||
Quote:
I knew I could count on a fellow Texan for help. |
#128
|
||||
|
||||
Some of us need all the help we can get.
|
#129
|
||||
|
||||
I have removed the following code from the PHP file and it still works. Could you tell me what the purpose of this code is and what it does?
Code:
// ################### 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( ); |
#130
|
|||
|
|||
OK, read through everything - I think. When I run test.php located in my development forum dir, it comes out correct
When I try to run test.php outside of my dev forum, I get this: http://www.rimfirecentral.com/test.php I have modified test.php with: PHP Code:
Thanks, Dan |
#131
|
|||
|
|||
I had the same style problem on my page outside of the forum. Copying the clientscript and images folders in the directory the test.php page resides seemed to correct that.
The problem I can't figure out though... the links in the navbar and footer portion of the test page do not link properly if the page is outside of the forum folder. The address is missing the forum portion of the URL. Example: link leads to http://www.yourdomain.com/register.php when it should lead to http://www.yourdomain.com/forum/register.php. |
#132
|
|||
|
|||
Quote:
"also needs to be added to the beginning of all the relative links in the navbar and footer templates." If I have to copy any script out there, I'm not even going to mess with it. I did have use for it if I could get it to work though. I'm also going to use it within my forum dir for two or three pages that I need too. Will start working on those tonight! |
#133
|
||||
|
||||
Quote:
They are for phrasegroups, and also for template-cache; meaning if you put your template names there then you will save 1 extra query. |
#134
|
||||
|
||||
Quote:
Would those lines cause more memory usage? |
#135
|
||||
|
||||
Those lines would cause less memory usage.
|
#136
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|