The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Query results above header...
I have a php script with a query on it and if I call the page up with a "basic page" template the results are always at the top of the page, above the header etc and I want the results to show in the body of the page. Any Ideas?
|
#2
|
||||
|
||||
Here is a link: My Test Page
Here is the php script: PHP Code:
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> |
#3
|
||||
|
||||
you can never output anything via an echo or print command. replace echo with a variable, ($myvar = "<tr>"; for example) and then place that variable in your test template.
|
#4
|
||||
|
||||
So can I assign a variable to this part of the scritp and then call that variable in a template?
PHP Code:
PHP Code:
|
#5
|
||||
|
||||
You don't need to do that. Any variable in the script can be used in a template.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|