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 |
#202
|
||||
|
||||
![]()
What do you mean by "adding it to the template cache at the top of the page" ??
Thanks M8 Quote:
|
#203
|
|||
|
|||
![]() Quote:
rob |
#204
|
|||
|
|||
![]()
Oh k. Finally i figured this out. I am such a n00b.
Ok, You don't need to create a new custom template for this basic page stuff. You can have it display an existing template If you're seeing the "all white"screen with the source: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML> You're almost there. The problem is probably your print_output line, you're probably printing a nonexistant template. Try using a template included with vb3 like GENERIC_SHELL. i.e. eval('print_output("' . fetch_template('GENERIC_SHELL') . '");'); Then if you want to get creative with a new custom template, you must add it using the vB3 admin control panel. Then when you fetch_template('newCustomTemplate') it will show up instead of the "white screen." Someone want to confirm this? rob |
#205
|
|||
|
|||
![]()
anybody have any idea with this one????
https://vborg.vbsupport.ru/showthrea...&page=13&pp=15 Post #195 all the way down at the bottom thanks |
#206
|
|||
|
|||
![]()
Everything works right, but my images aren't loading. Anyone know why the images won't load when I try this?
I'm doing the appropriate changedir to reach the vB root. Thanks, |
#207
|
|||
|
|||
![]() Quote:
You could just enclose your footer in a table. |
#208
|
|||
|
|||
![]() Quote:
Anyone? |
#209
|
|||
|
|||
![]()
Works great except the new page does not show up in the nav bar. Any ideas?
|
#210
|
|||
|
|||
![]()
Hi,
I want to create a new custom page in the root directory of my website but I always get the errors below. What am I doing wrong here (I'm using vb 3.0.3) ? Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home/autosurf/public_html/forums/global.php on line 18 Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/autosurf/public_html/forums/global.php on line 18 |
#211
|
|||
|
|||
![]()
Right now, I'm looking through the thread to see if it's there, but I want to include my homepage in the list of locations for currently active users. The problem? The homepage, like my forum homepage is also named index.php
So... Homepage = www.livemockdraft.com/index.php Forum main = www.livemockdraft.comforums/index.php Is there a way to get the functions_online.php file to differentiate between the two? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|