The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Im using vBAdvanced & i have a php script that fetches data from a site a spits it out onto mine, but if i create a template on vbadvanced and put <?php include("file.php"); ?> nothing shows up.
& i need to do this with around 8 pages - Any one tell me how to do this Regards |
#2
|
||||
|
||||
![]()
you can't use php code in templates, besides what you use in template conditionals.
|
#3
|
|||
|
|||
![]()
Here's a link to a thread on vbadvanced.com on how to do just that: http://www.vbadvanced.com/forum/showthread.php?t=1082
Now, I've got a question that I've searched through this site and vbadvanced for the answer with no luck. How many variables can be passed to a template from php? I got 1 to work fine, but more than one is causing problems. I've actually posted to the same thread I gave you the link to. I'm racking my brain pretty good. This hurts! |
#4
|
||||
|
||||
![]()
what do you mean by passing variables to a template? You can use any number of variables within a template, assuming the variables exist in the php script from which the template is called
|
#5
|
|||
|
|||
![]() Quote:
Here's a copy of the php script: PHP Code:
PHP Code:
|
#6
|
||||
|
||||
![]()
thnx v/much for your help guys it works sweet
![]() |
#7
|
|||
|
|||
![]()
Hey, I got it working! Apparently there was some extra junk below the ending php tag that was causing some problems. Everything works great now. Too bad it's on my local test server, or I'd put up a link.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|