The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I have this script which calls html codes from a database: PHP Code:
HTML Code:
<html> <head> <title>En Testsida</title> </head> <body><h1>En Testsida</h1><hr> Nyheter:<br /> <br /> <b>$pfn_title</b><br /> $pfn_content<br /> <br /> </body> </html> PHP Code:
Now to the problem: The two variables that are stored in the plugin_frontpage table wont be replaced with the content in the plugin_frontpage_news table. The html codes work just fine, but the varibles are just being printed as they are, not with its content. What am I doing wrong? I know its possible, vBulletin works the same way. All templates contains variables. Thanks in advance! Niklas |
#2
|
||||
|
||||
![]()
Hi,
You will probably want to use some vBulletin's database object as well as template system - it will make things much easier. You are actually looking to append the data, rather than replace it each time. In my below example I use .= instead of = to add it to the end of the variable. PHP Code:
|
#3
|
|||
|
|||
![]()
actually, this isnt for vBulletin. Thanks a lot for replying.
Niklas |
#4
|
||||
|
||||
![]() PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|