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 |
#632
|
|||
|
|||
![]() Quote:
any help on this? |
#633
|
||||
|
||||
![]()
You need to be more precise than that, what doesnt work, what happens ?
|
#634
|
|||
|
|||
![]() Quote:
Post: https://vborg.vbsupport.ru/showpost....&postcount=630 Show's the error thats linked above. |
#635
|
|||
|
|||
![]()
Got my page working correctly!
Another question. How would I go about creating 3 columns inside of that template? HTML Coding right? |
#636
|
|||
|
|||
![]()
Great !
![]() |
#637
|
|||
|
|||
![]()
Umh... obviously the paths to my pictures are links are broken, my forum is in /forum/ and my test.php is in /
I cant simply copy the images folder since I already have one in / How can I make the paths right to get pictures and URLs correct? Something like the chdir() thing ? edit: base tag seems to help ![]() Another question : i have multiple styles: do I have to set the template for all of them ?? |
#638
|
||||
|
||||
![]()
Yup, one template for each style.
--------------- Added [DATE]1204712981[/DATE] at [TIME]1204712981[/TIME] --------------- A link to the page might be more helpful. |
#639
|
|||
|
|||
![]()
I would like it to open a page inside a frame, how would i go about doing that?
|
#640
|
|||
|
|||
![]()
search for the <iframe> tag. something like <iframe src=test.php></iframe> i think.
Anybody can give an example of what code to put into the test.php page so that It will display the FORUMHOME template ? (ie: show the index of the /forum/ ) |
#641
|
|||
|
|||
![]()
why not open index.php and read?
|
#642
|
|||
|
|||
![]()
Here is a question:
Using the instructions given it took about 30 seconds to get an additional template driven page into my forum, which was nice ![]() Now I am fiddling around trying to get data from the database into a html table in the template and have hit a wall. Just for the sake of testing I am attempting to select all users from a specific user group and display their username in a table. So to do this after this line: Code:
$navbits[$parent] = 'Test Page'; Code:
$userlist = $db->query_read_slave("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE usergroupid = 2"); while ($user = $db->fetch_array($userlist)) { //print_r($user); } $db->free_result($userlist); As an example if the select return 2 users (Bob & Dave) I want to render a table that looks like this: Code:
<table> <tr> <td>Username</td< </tr> <tr> <td>Bob</td> </tr> <tr> <td>Dave</td> </tr> </table> |
#643
|
|||
|
|||
![]()
Is it against the law to embed other websites into your own? because I got a complaint lol
|
#644
|
|||
|
|||
![]()
It's not another website, it's one i own. I own www.mummybrain.com but want to open www.mummybrain.com/tickers/ inside looking like it's vB. Is that the best way to do this? All i really need is just the header, but thought this might be able to do it. But i can't copy and paste all the code, cos then it doesn't work.
|
#645
|
||||
|
||||
![]() Quote:
It's not against the law. It's more like free advertisment. They still get the hit to their website, and your not hotlinking anything. |
#646
|
|||
|
|||
![]()
Does anyone know how to insert $forumbits in test.php so that it will display some threads ??? (or any reason this wouldnt work ?)
edit: seems to be working now. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|