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 |
#592
|
|||
|
|||
global.php has been designed to be included from scripts in the same directory. You can change the directory to forum root, require global.php, and then change back to /directory/page and continue processing but I would not recommend it.
|
#593
|
|||
|
|||
Would this be able to work at all on a Wordpress blog?
|
#594
|
|||
|
|||
Quote:
THANKS!! |
#595
|
|||
|
|||
You should use the is_member_of() function to do this properly.
PHP Code:
|
#596
|
||||
|
||||
Does anyone know if the output of a page created in this way could be cached? And the cached version displayed to the end user?
Perhaps with the cached page being updated via a cron job every ten minutes? That would be SO cool! |
#597
|
|||
|
|||
est ce que sa marche avec 3.8
|
#598
|
|||
|
|||
i have a php script that i am having trouble with. it is not written for vbulletin, but i would like to include it in my vb's template. this script has about 3-4 php files. i create a php file from which i run my script. i only include once the index.php of my script, which runs other php files from inside of it.
my problem is the following: when i run the script, everything is fine, the template is there etc. when i enter the details the script asks for, and i hit submit, the new window that opens does not have the vb template. i've tried everything, no luck. the window that opens when i hit submit has no action (etc. xxx.php?=something.) its just xxx.php. the funny thing is that if i have an error in my form, the template stays as it is even though a new window opens. the problem only occurs when i hit submit. please help that's the action code from the script: <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> |
#599
|
|||
|
|||
Very nice tutorial
|
#600
|
|||
|
|||
Hi,
Where do i put the HTML one? |
#601
|
|||
|
|||
In a new Template in your AdminCP ( -> Styles & Templates -> Style Manager -> Edit Templates)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|