The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Variable output doesn't work
Hi guys,
I created a plugin/hook with the following code: Product: vBulletin Hook Location: global_start (also tried init_startup) Subject: XPRank Execution Order: 5 Plugin PHP code: Code:
$gebruiker_id = 1; $sql="SELECT `xp` FROM `rank` WHERE `userid` = '".$gebruiker_id."'"; $dataxp=mysql_query($sql)or die(mysql_error()); while($inhoud = mysql_fetch_array($dataxp)) { $xprank = $inhoud['xp']; } {vb:raw xprank} Result: Doesn't work, even not when i create a variable like $phpecho="test echo"; and then use {vbraw: phpecho}. Nothing works. Does anyone has a idea how to fix this? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|