Quote:
Originally Posted by kh99
You need to register the variable for use in the template. Add this line to your code:
PHP Code:
vB_Template::preRegister('header', array('xprank' => $xprank));
Here's an article if you want to read more about it: https://vborg.vbsupport.ru/showthread.php?t=228078
|
Thanks man, i read the article already and even tryed your solution but that also didn't work for me.
If i do echo $xprank; in the plugin, it outputs it above the website, so there is a value in it and the code is right. The variable contains data, the trick now, is to output it. I added your line of code and still had no output whatsoever using this:
Normally, i have no problems finding errors and understanding them but this one is driving me crazy for hours because the docs say it should work. I Use vbulletin 4.0.1.
--------------- Added [DATE]1313018307[/DATE] at [TIME]1313018307[/TIME] ---------------
Quote:
Originally Posted by M4GN3T
Thanks man, i read the article already and even tryed your solution but that also didn't work for me.
If i do echo $xprank; in the plugin, it outputs it above the website, so there is a value in it and the code is right. The variable contains data, the trick now, is to output it. I added your line of code and still had no output whatsoever using this:
Normally, i have no problems finding errors and understanding them but this one is driving me crazy for hours because the docs say it should work. I Use vbulletin 4.0.1.
|
I think it was a cache problem, because while waiting for your reply it suddenly appeared. Thanks a lot!