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 |
#862
|
||||
|
||||
Quote:
|
#863
|
|||
|
|||
I am trying to integrate coppermine gallery into vbulletin. Coppermine allows to include a custom header and footer. You can use html or php files for your custom header and footer.
I already tried it, but it does not seem to work. One problem is that the gallery is called from a sub directory (/forumroot/gallery). If I copy the needed vb files to the gallery directory, I get this error: Quote:
|
#864
|
||||
|
||||
Do not copy the vb files to another folder because very often they call other vb files and won't be able to find them. Do a chdir, as mentioned already, in order to change to the vb forums directory and include them.
|
#865
|
|||
|
|||
Thanks, now I can run the file from within the gallery file without copying vb files to the gallery directory. But I still get the error I posted above, when I try to include the file in coppermine. The file executes fine when I run it stand alone.
|
#866
|
|||
|
|||
OK, I have it working but the page comes up completly white.
I replaced TEST with my style name, and test with my navbar display, and test page with Home.php My template is called Home I copied and pasted everything that was said to be coppied into everything but it still comes up white, Any suggestions? --------------- Added [DATE]1225161376[/DATE] at [TIME]1225161376[/TIME] --------------- Found my issue, Sorry |
#867
|
||||
|
||||
Hi,
With regular forums, the breadcrumbs look like this: Quote:
Code:
$navbits[$parent] = 'My custom page'; Quote:
Quote:
That is, how can I add a "breadcrumb" to that first row? How would I add two, if necessary? Quote:
|
#868
|
|||
|
|||
I figure it out. For anyone interested, you simply add items to the navbits array in the order you want them to appear, specifying the url of any link as the array key and the text to display as the value.
Another question I have, though, is how to pass a meta description tag that is dynamically generated via the php script? Right now it appears to be using the forum's default meta description tag. Thanks! |
#869
|
|||
|
|||
Would a custom page still get displayed correctly if the forums are turned off?
I'm thinking of using this method to create a custom 404 error page that would perfectly match our forum's design, but I would need the page to work when the forums are both on & off. Thanks, James |
#870
|
||||
|
||||
Quote:
|
#871
|
|||
|
|||
Not if you make this:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|