Pi_Mastuh Posted December 28, 2006 Share Posted December 28, 2006 I'm trying to make a program to replace :) with an image (emotes on a message board). I was wondering how i'd code that. Anyone know? Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted December 28, 2006 Share Posted December 28, 2006 are you looking for str_replace() or something else?Ted Quote Link to comment Share on other sites More sharing options...
Pi_Mastuh Posted December 28, 2006 Author Share Posted December 28, 2006 I'm just not sure, I was thinking str replace but can it replace something with a piece of HTML code? THat's the problem. Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted December 28, 2006 Share Posted December 28, 2006 you can try css which produces your own creative tagseg. <smile> css can replace it with a picture, or whatever you want, but I am not a big expert of it...so... Quote Link to comment Share on other sites More sharing options...
Pi_Mastuh Posted December 28, 2006 Author Share Posted December 28, 2006 I don't know CSS, do you know another way besides str_replace? Quote Link to comment Share on other sites More sharing options...
ted_chou12 Posted December 28, 2006 Share Posted December 28, 2006 try this:http://www.limesoftware.co.uk/index.php?nav=42&&n=40a tutorial from some other site i have found previously.see if it is the right kind of thing you want.Ted Quote Link to comment Share on other sites More sharing options...
Pi_Mastuh Posted December 28, 2006 Author Share Posted December 28, 2006 It's not working ??? Quote Link to comment Share on other sites More sharing options...
Pi_Mastuh Posted December 28, 2006 Author Share Posted December 28, 2006 at the part that sayswhile($rgsmileys = mysql_fetch_array($getsmileys$rgsmileys was never defined as a variable, what should that be? Quote Link to comment Share on other sites More sharing options...
Pi_Mastuh Posted December 28, 2006 Author Share Posted December 28, 2006 Never mind, got it to work. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.