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 |
#1007
|
||||
|
||||
![]()
Hello,
Please you help? test.php PHP Code:
PHP Code:
No Listed Results: 1 Existing records: 85 Screen resultsWhy does not list? Attachment 95557 Thanks |
#1008
|
||||
|
||||
![]()
templates are case-sensitive. You need to call it either "TEST" or "test" in both $globaltemplates and the eval statement.
|
#1009
|
||||
|
||||
![]()
I do not understand,
Request, you show a quote? |
#1010
|
||||
|
||||
![]() Code:
// pre-cache templates used by all actions $globaltemplates = array( 'TEST', ); ...... eval('print_output("' . fetch_template('test') . '");'); ?> |
#1011
|
||||
|
||||
![]()
Ok same fixed,
My problem, I can not list only the database data data is only one line
I want to list all of the data 1. line 2. line 3. line like |
#1012
|
|||
|
|||
![]()
instead of
PHP Code:
PHP Code:
|
#1013
|
||||
|
||||
![]()
<div align="left">Thank you very much
</div> |
#1014
|
|||
|
|||
![]()
Hi
I am newbie. Sorry if bother. I follow your instruction. I combine .php and htm code in one file at test.php in Template editor from my Style Manager > Edit Template . Do i make things correct? Please help me How do I call the page? |
#1015
|
|||
|
|||
![]()
No. I was trying to use it in the custom page itself.
![]() Putting it in the global_start hook made it work for me. Thanks for your help ragtek. Now the only glitch (for me) is the fact that I would prefer not to show notices on my custom page. I'm guessing they are tied in with the navbar? Is there a way to disable showing notices here? Thanks, James |
#1016
|
|||
|
|||
![]()
Without realy looking and checking i make it with this little "dirty" plugin: add a plugin at global_setup_complete with
PHP Code:
|
#1018
|
|||
|
|||
![]()
with the exec_switch_bg function
|
#1019
|
||||
|
||||
![]()
Answer Is it for me?
If you are for me I am Novice, Request, Can you give sample code?
|
#1020
|
|||
|
|||
![]()
the best for you would be
1. create a template tel_bit and put this into: Code:
<tr class="$bgclass"><td>$tel_list_al[telefon_sah].....all your other stuff.. PHP Code:
|
#1021
|
||||
|
||||
![]()
Sorry, but I could not do
![]() New template "tel_bit" PHP Code:
PHP Code:
PHP Code:
394 line -> eval('$satirlar .= "' . fetch_template('tel_bit') . '";'); Where am I wrong? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|