quote:
Originally posted by Methos2
quote:
Originally posted by Madman
quote:
Originally posted by Methos2
ok, it shows as it should, it replaces the smilies with the appropriate pics, and as for the code, ill just go and fetch it.....
this is the whole php code that is in the document:
Then if it works as it should if you set the the $text variable in the script then the problem is caused by how you set the $text variable to your input.
its not a case of it not working.... its just a case of that...
quote:
Originally posted by Methos2
but having to to do this throughout the code deifes the object of a 'shortcut' such as :), unless i have missed something here it would be alot simpler and quicker to just use the html tag <img> wouldnt it....
i dont understand what you mean
if you set $text to whatever you want to convert for example $text = $_POST['text'] and then use the replace function, then $text will now contain the text you inputed (e.g. $_POST['text']) but the shortcuts will have been replaced by the image codes.
So i dont see what you have to "do" that defeats the point of using the shortcuts.
Could you perhaps upload the script your testing so we can test it and understand what your trying to acheive?