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 |
#682
|
|||
|
|||
i add php page it;s not working plz help me what i am doing wrong
here is a Link http://www.mknexusonline.com/content/mkgames/test.php |
#683
|
|||
|
|||
Quote:
Thanks sabrina |
#684
|
|||
|
|||
Read the vbulletin manual, especially the chapter about plugins/hooks.
|
#685
|
|||
|
|||
I'm terribly confused by this entire thing.
The guide really doesn't explain this well for a newbie. I've made the .php file and uploaded it to the FTP file manager then I have saved the template.... That's all the guide tells me to do and of course nothing has happened. What am I missing? |
#686
|
||||
|
||||
Quote:
You say you saved the template and uploaded the PHP file. What happened when you navigated to the page? |
#687
|
|||
|
|||
Hi All,
I have tried and tried for the last few hours to integrate this with phplist. Could someone please explain in laymans terms how this can be done simply!. I can change the directory because it is out side however all I want to use is the headers and the footers from vbulletin. I find myself hitting a major brick wall! Somebody please help! if there are any experts out there who can do for a small fee I will gladly pay for their time. Thanks in advance tim |
#688
|
|||
|
|||
Quote:
I need this new page because I want a page where I can place article links to get rid of the clutter in my forum. Thanks for help --------------- Added [DATE]1208381875[/DATE] at [TIME]1208381875[/TIME] --------------- hey, okay so basically i copied and pated test.php to my publictml directory. I am now at a loss as to what to do from there. I dont mod VB alot all i wish is to have a page with a few links and a few bits of text. What do i do, i know i edit the bits labled test but i dont know what to edit them too. Please help guys! |
#689
|
||||
|
||||
Quote:
1. a php file calling a template 2. a template with the content for the page Since you already have the file, you now need to create a template. Look in your test.php and find a line that looks like this: eval('print_output("' . fetch_template('TEST') . '");'); The bit that says TEST is the name of the template that is called when a person navigates to www.yourforum.com/test.php This name can be anything you choose. So create a template called TEST by going to Styles & Templates -> Your style -> Add Template. Call it TEST, and put the example code provided in the first post of this article. Edit the basic html to show the article links you want to show. www.yourdomain.com/test.php should now show whatever you put in the template called TEST. The last part of the tutorial is just so that when people are looking at the test.php page they show up on online.php list as 'Viewing article links' (or whatever you choose to say) instead of 'Unknown Location'. Hope that makes more sense to you. |
#690
|
||||
|
||||
hmm...all i get is this
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/ede/public_html/test.php on line 2 Parse error: syntax error, unexpected T_STRING in /home/ede/public_html/test.php on line 2 i did step by step everything like in the tut. any1 any idea ? |
#691
|
|||
|
|||
I'm trying to have this page outside of the forum root folder.
I replaced Code:
require_once('./global.php'); Code:
chdir('./forum_root_folder/'); require('./global.php'); www.mathhelpforum.com/downloads.php And the images (curiously one of the images is working) and links are not looking in the forum root folder as they should. How do I fix that? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|