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 |
#22
|
||||
|
||||
Quote:
|
#23
|
||||
|
||||
Not very promissing, waiting for somehting more fundamental ...
|
#24
|
||||
|
||||
Quote:
Code:
require_once('./global.php'); Code:
chdir('/home/site/public_html/testvb/'); require('./global.php'); |
#25
|
||||
|
||||
Sorry newbie here, can some kind sole please explain what this is suppose to do.
I have created the test.php and called it and yes looks nice What is the template part for and how would you best make use of this please. Thanks lol well hush my mouth, I see now (-0-0-) Yes nice concept and thanks |
#26
|
||||
|
||||
i have done some thing like this a while ago and i loe it as i use it for my affialites and rules page
|
#27
|
||||
|
||||
Quote:
|
#28
|
|||
|
|||
alright, hopefully someone can help me with this:
i have some large files i want to make available to certain usergroups, but not other. the files are way too large to upload as "attachments" with vb so i would have to upload them via ftp and then just post a link in a thread...of course this means the only way to prevent people from downloading it is to prevent them from seeing the thread at all, which is not my intention. with this new way of making a vb page, is there any way to do what i am trying to do? any help would be great. |
#29
|
||||
|
||||
Quote:
PHP Code:
Also, save this code in a file such as download.php and then you can use the file by linking to it like http://www.example.com/forum/downloa...=something.php which will download www.examlpe.com/forum/files/something.php if the user is an administrator. |
#30
|
||||
|
||||
Nice job although I think personally this would be a template mod rather than a hack, since no vBulletin files were modified.
Still good job though. |
#31
|
|||
|
|||
This looks promising gary -> a few questions !!!
1) How can I use this outside my forums directory? Do i just use this? PHP Code:
3) I have a php links script which I would like integrated into my forums in terms of the way it looks and the way only certain usergroups can access it. Can i use your hack to do this? If so, how I would I make a php page appear in the content area instead of the TEST template ??? Thanks again |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|