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 |
#772
|
|||
|
|||
![]()
how to make mod could to made and pm me that mod Please
|
#773
|
||||
|
||||
![]()
There is no mod here , its just html
Design the page in html and use this article to build a vb powered page and paste the html code in the new template |
#774
|
|||
|
|||
![]()
Thanks my page is finally using the vbulletin login systen due to this =D thanks a lot, members areas working anyone that need help fell free to send me a private message I wont probably reply on here
|
#775
|
|||
|
|||
![]()
Using this method, is there anyway I can pass the content of the page into the template from the script? Essentially, I'm wondering if I can replace the value "Text" with something that is generated by the php script. Any hints would be appreciated.
|
#776
|
||||
|
||||
![]() Quote:
Suppose I have some pages I need to execute and show : page1.php, page2.php, page3.php I should create some templates : template1, template2, template3 Then insert the variables : $show1 (containing the html execution of page1.php) into template1, $show2 (containing the html execution of page2.php) into template2 and so on. But how can I generate/fill (for example) the variables and insert them into the template when I link the user to mysite.com/forums/page2.php ? --------------- Added [DATE]1216770050[/DATE] at [TIME]1216770050[/TIME] --------------- Found, may be, I should add a plugin : Code:
ob_start(); include('./page2.php'); $show2 = ob_get_contents(); ob_end_clean(); Is it ? |
#777
|
|||
|
|||
![]()
Is there a way to do this outside of the forums directory?
|
#778
|
||||
|
||||
![]() Quote:
PHP Code:
PHP Code:
--------------- Added [DATE]1216816873[/DATE] at [TIME]1216816873[/TIME] --------------- Ok, I apologize for all this asking and answering by myself ![]() Can be a big shortcut, no templates, no plugins, but it's obviously less safe. |
#779
|
|||
|
|||
![]()
Then it is not really a vb-powered page, is it?
|
#780
|
||||
|
||||
![]()
LOL
![]() |
#781
|
|||
|
|||
![]()
How can you get your page to auto adapt to the current theme a user is running (ie. font and panel colors)?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|