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 |
#582
|
|||
|
|||
works great
|
#583
|
||||
|
||||
This is just what I needed! Thanks much
|
#584
|
|||
|
|||
Quote:
|
#585
|
|||
|
|||
how stupid of me. this whole time, i thought the "who's online mod" was to make the box show in the new page. i didn't realize it was correct the "unknown page" thing. lol
thanks. if it was renamed "who's online fix" i think that would help. lol |
#586
|
|||
|
|||
love it thank you!
Ive had a look through this thread, but couldn't find what I'm after. Can someone please tell me what I need to do to get the 'whos online' and 'statistics' showing at the bottom of the page ? Id also like to get this part to show on the page when they are not logged in/not registered? Quote:
|
#587
|
||||
|
||||
How Can I delete a template I made i dont use that page anymore and for the life of me i cant find out how to delete it in the AdminCP/Stylemanager
|
#588
|
|||
|
|||
Just revert the template, if it is a custom template then the template will be deleted.
|
#589
|
||||
|
||||
thank you
great hack and i modify to Staff its great i creat that page for our Staff but i wish i can set permissions but its ok thanx again Regards attached SS. |
#590
|
||||
|
||||
Thank you, Gary.
I've used the Who's Online Modification to adjuste on of my modifications where it said Unknok Location. |
#591
|
|||
|
|||
How can I get this to work in directories. I have tried to create a page in www.mydomain.com/directory/page/index.php
I changed test to index but it doesn't work because it says it can't find global.php I know its because it is in a directory but how do I fix it? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|