abdfahim Posted August 16, 2006 Share Posted August 16, 2006 Plz give me any code or help link from where I can get help in adding smilies and quote button in my forum. Link to comment https://forums.phpfreaks.com/topic/17711-solved-quote-and-smilies-in-forum/ Share on other sites More sharing options...
hackerkts Posted August 16, 2006 Share Posted August 16, 2006 Hint... "bbcode" Link to comment https://forums.phpfreaks.com/topic/17711-solved-quote-and-smilies-in-forum/#findComment-75540 Share on other sites More sharing options...
GingerRobot Posted August 16, 2006 Share Posted August 16, 2006 There is a two part tutorial on here which you may find useful:http://www.phpfreaks.com/tutorials/107/0.phphttp://www.phpfreaks.com/tutorials/123/0.php Link to comment https://forums.phpfreaks.com/topic/17711-solved-quote-and-smilies-in-forum/#findComment-75548 Share on other sites More sharing options...
abdfahim Posted August 17, 2006 Author Share Posted August 17, 2006 The tutorials of those links have everything except procedures for adding quote and smilies. Link to comment https://forums.phpfreaks.com/topic/17711-solved-quote-and-smilies-in-forum/#findComment-76024 Share on other sites More sharing options...
Jeremysr Posted August 17, 2006 Share Posted August 17, 2006 Smilies are easy: just replace :-) or whatever with an image tag.[code=php:0]str_replace(":-)", "<img src='happy.gif'>", $post_content);[/code] Link to comment https://forums.phpfreaks.com/topic/17711-solved-quote-and-smilies-in-forum/#findComment-76028 Share on other sites More sharing options...
HeyRay2 Posted August 17, 2006 Share Posted August 17, 2006 You can easily adapt the techniques in the BBCode tutorials on this site to work with quotes and smilies. The only things that changes is the tags that are replaced.The code that works for:[code][b]text[/b][/code]will work the same for:[code][quote]text[/quote][/code]Experiment with the examples. Change things around. It's the best way to learn and improve your skills.Good luck! ;) Link to comment https://forums.phpfreaks.com/topic/17711-solved-quote-and-smilies-in-forum/#findComment-76031 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.