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 |
#1282
|
|||
|
|||
is there a way to use this and have a flash file run in the center on the custom page?
|
#1283
|
||||
|
||||
sure, just make a table using vbulletins style variables so it has all the same style, then load your flash file wherever you want in that table.
|
#1284
|
|||
|
|||
Hello,
I need to integrate header and footer of the my site in vBulletin. Is there a way,I do not want to use iframes,neither want to use file_get_contents for getting the code. Is there a way to do it neatly in vbulletin. |
#1285
|
||||
|
||||
you're reading an article on how to create a vbulletin powered page that uses the vbulletin header and footer.
Did you actually even read it or are you waiting for someone to take you by the hand and read it for you? |
#1286
|
||||
|
||||
Since the user is new (first post) your derisive reaction is quite uncalled for. Especially as it seems you may not have read his question. Taking him by the hand to go through this article won't help him, since this article does not do what he wants to achieve.
@demo.hidden: You should open your own thread to ask this question in an appropriate forum. This article does not cover your question, hence this thread not really is the place to ask this. |
#1287
|
||||
|
||||
I'm sorry, I didn't even realize he had only a single post. I don't even remember replying to this thread to be honest.
|
#1288
|
|||
|
|||
is it possible to capture the output of an external script (maybe using include) and display it in the template? I need to assign some text to a variable and display it
thanks |
#1289
|
||||
|
||||
That's what the php part is for. Of course you can assign a value to a variable with php.
|
#1290
|
|||
|
|||
Any help for vb 4.1.0 ?
|
#1291
|
||||
|
||||
In a thread for vB3.x in the forum "vBulletin 3 Articles"? Probably not.
Try the vB4 version of this tutorial in the "vBulletin 4 Articles" forum: https://vborg.vbsupport.ru/showthread.php?t=228112 It should work perfectly well with vB4.1 |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|