Hwulex
07-12-2002, 02:50 PM
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:
<input type="button" class="bginput" value="button" title="button" accesskey="m" onclick="smilie('$bbuserinfo[text]')" onmouseover="stat('button')">
Sooo. Why does onclick="smilie('$bbuserinfo[text]')" not work?
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:
I need to insert some text, say $bbuserinfo[text] into the message box on a reply. So in the template, I've got:
<input type="button" class="bginput" value="button" title="button" accesskey="m" onclick="smilie('$bbuserinfo[text]')" onmouseover="stat('button')">
Sooo. Why does onclick="smilie('$bbuserinfo[text]')" not work?
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: