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 |
#822
|
|||
|
|||
Thanks for all the assistance CV, it's coming along nicely. I just have to install the new chat bar.
http://www.shatteredplanet.org/forum/olympics.php |
#823
|
|||
|
|||
There ya go..
Now to complete it, Go back to page one and add the footor contents. |
#824
|
|||
|
|||
Yeah I added the footer. One question though, for the chatbox how do I change the color of the input box. My font color doesn't mesh well with white. I just have to implement the Who's Online portion of the hack. Where did you change the name of the chat bar too?
|
#825
|
|||
|
|||
Name of the chatbar is in the code you added to the template. You can remove the phrase and add what you would like to say.
As for the input text, I'm not sure, but I imagine if you look in your plugin manager you should be able to edit the plugin to change the text... But before you do that. Check the options for the chatbox in the ACP. |
#826
|
|||
|
|||
Quote:
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <thead> <tr> <td class="tcat"><a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_chatbox')"><img id="collapseimg_forumhome_chatbox" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_chatbox].gif" alt="" border="0" /></a><a href="javascript:openChatbox()">$vbphrase[chatbox_chatbox]</a></td> </tr> </thead> <tbody id="collapseobj_forumhome_chatbox" style="$vbcollapse[collapseobj_forumhome_chatbox]"> <tr> <td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%"$chatboxheight style="border: 0px" frameborder="0"></iframe></div></td> </tr> </tbody> </table> |
#827
|
|||
|
|||
i have my vbulletin in the /forums directory
and i want this to appear in the /developers directory where would i put the ../forums? |
#828
|
|||
|
|||
I would like to have a youtube rip box from something like keepvid.com within my powered page. How do I get the keepvid page to be part of my vbulletin powered page? I hope that makes sense. Kind of like adding my template around their rip page.
|
#829
|
||||
|
||||
For external content you'd just use an iframe.
|
#830
|
|||
|
|||
Thanks DJ,
Lets say I wanted to add http://www.site.com as the site I want to be framed with my template. How would I implement that into the code below: 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> |
#831
|
|||
|
|||
Where it says TEXT, you put this in:
Code:
<iframe src="http://www.site.com" width="90%" height="1500" frameborder="0" scrolling="no"></iframe> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|