![]() |
Passing Variables to a Template
Ok, I'm making this new hack, and it's all done, sorted, finito, apart from this one niggly little bit.
I need to insert some text, say $bbuserinfo[text] into the message box on a reply. So in the template, I've got: PHP Code:
If I put a value in the brackets like onclick="smilie('Insert This')" it works. So, it would seem to me, that the template isn't receiving $bbuserinfo[text], and I don't know why. If I echo $bbuserinfo[text] in the php file, it outputs fine. :-\ I tried putting it in a seperate template to get it to work, but failed completely on that count too :p :( Please help :dead: |
Make sure that variable has a value to it.
|
It was defined, as echoing it worked.
Doesn't matter now anyway, I've fixed it :) Cheers for the reply. Mods please close :) |
All times are GMT. The time now is 10:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|