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 |
#812
|
|||
|
|||
MM i'd like to be able to do that as well
|
#813
|
||||
|
||||
Quote:
http://www.vbulletin.com/docs/html/m...r_implementing |
#814
|
|||
|
|||
I couldn't figure that one out. But I did find the Dreams chatbox intergrates very nicely.
If anyone would like to check it out. You can find it here. http://www.computervitals.com/forum/Olympics.php Thanks for the article and the help!! |
#815
|
|||
|
|||
Nice!
|
#816
|
|||
|
|||
I get a error
Code:
Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/admin/public_html/test.php on line 32 Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/admin/public_html/test.php on line 32 |
#817
|
|||
|
|||
move test.php to /forums
|
#818
|
|||
|
|||
Quote:
|
#819
|
|||
|
|||
Some of the code has been modified to fit the site, so it may not work for every one. The widgets you see there you can get at NBC Olympics. Simply paste the widget code into the template where you like it and you're set.
|
#820
|
|||
|
|||
How did you create the separate blocks for each module within the php file? Also, what chat program do you use, we use cyb chat and was wondering how to implement that into the Olympic page.
|
#821
|
|||
|
|||
I have CYB for my main chat program on the forum page. But that isn't as easy to integrate with the custom page. So I also installed Dreams Chatbox, you can then add the chat box to the custom template were you want it. I also wanted 2 separate chats so the Olympics would be separate from the main chatbox. If you visit my main page, http://computervitals.com/forum you will see I have both of the chat boxes added, then the link in the 2nd chat box to link to the main Olympic page.
Here's how you set the separate blocks, this is all done in your new template you created for the page. Start with this: Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">Olympic Videos</td> <td class="tcat">Athletes to Watch</td> <td class="tcat">Olympic Photos</td> </tr> Then format the table more Code:
<tr> <td class="alt1" align="center"> Your content here for 1st block </td> <td class="alt1" align="center"> Your content here for 2nd block </td> <td class="alt1" align="center"> Your content here for 3rd block </td> </tr> </table> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|