The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
i need to add a php script into one of my templates does it work? or how can i make it work?
|
#2
|
||||
|
||||
![]()
You cannot add php to templates. You add the php to plugins and then put the output into the templates via a variable.
|
#3
|
|||
|
|||
![]()
urrm tht made no sense haha
could you help i need to put this in there Code:
<?php include("path/to/show_rares.php"); ?> |
#4
|
||||
|
||||
![]()
Which template?
You'd put something like this into a plugin (hook depends on template) : PHP Code:
global_start works for a lot of the templates if they use global scope and aren't evaluated before this hook. |
#5
|
|||
|
|||
![]()
i have no clue what you just said, basically i need that code to work in this template
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">RARE VALUES</td> </tr> <tr> <td class="alt1"> </td> </tr> </table> $footer </body> </html> ![]() If you can help it would be great |
#6
|
||||
|
||||
![]()
If it's a new page, then you don't need to put code in a plugin. You put the php code into your page that you just created. It's php which goes into the php page.
|
#7
|
|||
|
|||
![]() Quote:
i followed that guide you gave me. and ive made the .php and linked it to the template... now what |
#8
|
||||
|
||||
![]()
The article gives you the skeleton of what you need. You now enter your code under the are that says "START MAIN SCRIPT". And then the output from that should be a $variable and you put that $variable into your template.
If you look at a basic vbulletin page, you will see them do this. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|