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 |
#1392
|
||||
|
||||
I just now looked a little more closely at your PHP page and I see what the problem is. This custom page needs to use your custom template. Not your navbar template or any other template. Just the new template you created.
You haven't followed the tutorial exactly. Go back, do exactly as Gary details. Then when you want to edit the look of your page the only thing you change is the template code. This custom page will ALWAYS use your custom template, regardless of what you're trying to put on that page. |
#1393
|
|||
|
|||
ok. i must be dumb or am missing something. Even if I create the exact files as described in the original post, makes the modes for the newer version of vb, i still get nothing that is formatted.
|
#1394
|
||||
|
||||
Have you successfully made just the default page in the tutorial first? Before trying to make any changes?
|
#1395
|
|||
|
|||
Thats just it. I try to mimic the exact code in the example on the tutorial. Two files a test.php and a TEST template file. Using those I get nothing back
|
#1396
|
||||
|
||||
Remember that the template needs to exist in the style you're using, and every style you plan on using it with. Otherwise, all you'll get is a blank page when that skin has no template for it.
|
#1397
|
|||
|
|||
Ah, there lies my problem. So I changed the name TEST to be FAQ which is a template in te software and it finally showed something. Well, I appreciate the help but unfortunately this does not address my problem or should I say my need.
I will just highlight what I need and maybe you can point me to an existing post because I can't find one that works for me. I wrote some gallery software whih you can see on sites like LeicaImages.com or Nikonimages.com It is stand alone nd does not use templates. I am testing on http://www.snoozingonthejob.com/ an integration of vb with my software. I have account info working. The only thing I need is to include the vb navbar at the top of this page http://www.snoozingonthejob.com/ag2sigallery/index.php so that when people are in my part of the sftware they can stil navigate through the forum softwre. Thanks for any feedback you could provide. |
#1398
|
|||
|
|||
not working for me on vbulletin 5 can anybody help me out
the page is coming but l am unable to include header and footer |
#1399
|
||||
|
||||
Of course this won't work in vB5 this article is for vB3
|
#1400
|
|||
|
|||
vB3 is not work !, content code error.
|
#1401
|
||||
|
||||
Works perfect for vb3.x
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|