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 |
#872
|
|||
|
|||
where do you create the template and where do you put the html code
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> |
#873
|
||||
|
||||
Quote:
|
#874
|
|||
|
|||
nice but when i go back to forum or memberlist the pagina is going everytime to the added page ?
whats wrong? all the links that i click are going to the new page but if a delete the link in the navbar and going to the url then the links are good ! thx |
#875
|
||||
|
||||
I don't really understand what the problem is except it revolves around a link you added in the navbar? Perhaps you have it coded wrong. You might want to post what you did.
|
#876
|
|||
|
|||
Quote:
Code:
<td class="vbmenu_control"><a href="http://www.xx.eu/forum/Chat.php/">Chat</a></td> |
#877
|
||||
|
||||
Quote:
Code:
<td class="vbmenu_control"><a href="http://www.xx.eu/forum/Chat.php">Chat</a></td> |
#878
|
|||
|
|||
Quote:
--------------- Added [DATE]1227225877[/DATE] at [TIME]1227225877[/TIME] --------------- --------------- Added [DATE]1227225965[/DATE] at [TIME]1227225965[/TIME] --------------- --------------- Added [DATE]1227244261[/DATE] at [TIME]1227244261[/TIME] --------------- i have now an dating script but its not working to login (i know its not working with vbulletin username) if i open the script in a new window its working ! if i open it in vbforum cant login the script iframe not working cookies? any idea? thx |
#879
|
|||
|
|||
Hi,
I have a serious problem. I made the following chat page; it is called parachat.php and this is the code: Quote:
Quote:
Is this a problem with the php page, or with the use of conditionals? Could anybody help me? Thanky you in advance. |
#880
|
|||
|
|||
Quote:
its not working the php script in a vbulletin page , the users cant login i have the same problem with a dating inlog program |
#881
|
|||
|
|||
In my case, the page IS working for all users, with only one excepcion: there is ONE user that is entering the page, although she belongs to a usergroup which is not authorized to enter it.
That user is the only exception... the page is working fine for all other users. Some days ago, this user belonged to another usergroup (a usergroup allowed to enter the page), and, after i moved her to usergroup #21, she continued entering the page. Perhaps her browser is showing her a cached version? |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|