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 |
#1302
|
|||
|
|||
![]()
awesome bro, I'll go check it out right now, thanks for lending me a hand.
--------------- Added [DATE]1292886240[/DATE] at [TIME]1292886240[/TIME] --------------- Almost got it, we're most definitely closer.. It parses the post correctly but parsed the [img] into a clickable link instead of showing the picture. Any ideas? Using your suggestion results like this with or without requiring global at the top of the plugin, I also made the test.php with requiring the bbcode_parser, or the parsing line that it had previously.... I'm stumped.. --------------- Added [DATE]1292887793[/DATE] at [TIME]1292887793[/TIME] --------------- I just noticed something else, the plugin results in 14 results instead of 7, it displays the first 7 threads from the forum and displays each of them twice. |
#1303
|
|||
|
|||
![]()
I have fixed it where it shows the posts twice, but for some reason I cannot get it to parse the images from the post. Any ideas?
|
#1304
|
||||
|
||||
![]()
Yeah forgot they don't parse images when using 'nonforum'- replace that with a valid forum id of one of your forums where images are allowed...
Basically try something like... Code:
$thrds[pagetext] = $bbcode_parser->parse($thrds[pagetext] , 2, true,); |
#1305
|
|||
|
|||
![]()
Worked like a charm- I'm good to go. Thanks for helping me out soo much- I appreciate it. Happy Holidays!!
|
#1306
|
||||
|
||||
![]()
Glad to help. :up: Happy Holidays.
|
#1307
|
|||
|
|||
![]()
How do i add certain forums to the additional page? And would i be able to remove them from my index.php?
|
#1308
|
||||
|
||||
![]()
Add them in what way - a link? This is just a php page, so put in whatever php you need/want to do what you want. Or, if you just want a link, just put the link in the template.
|
#1309
|
||||
|
||||
![]()
It sounds like all you want is hidden forums.
|
#1310
|
|||
|
|||
![]()
Hi,
I never Create a new file and create the template. Any one cant help me to do that and include that on vbulletin? |
#1311
|
|||
|
|||
![]()
Here are the errors I'm getting on the page I created. Can someone please tell me what I've done wrong?
Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|