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? Link to comment https://forums.phpfreaks.com/topic/32094-how-do-i/ 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 Link to comment https://forums.phpfreaks.com/topic/32094-how-do-i/#findComment-148940 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. Link to comment https://forums.phpfreaks.com/topic/32094-how-do-i/#findComment-148941 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... Link to comment https://forums.phpfreaks.com/topic/32094-how-do-i/#findComment-148944 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? Link to comment https://forums.phpfreaks.com/topic/32094-how-do-i/#findComment-148947 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 Link to comment https://forums.phpfreaks.com/topic/32094-how-do-i/#findComment-148951 Share on other sites More sharing options...
Pi_Mastuh Posted December 28, 2006 Author Share Posted December 28, 2006 It's not working ??? Link to comment https://forums.phpfreaks.com/topic/32094-how-do-i/#findComment-148968 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? Link to comment https://forums.phpfreaks.com/topic/32094-how-do-i/#findComment-148971 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! Link to comment https://forums.phpfreaks.com/topic/32094-how-do-i/#findComment-148977 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.