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. Quote Link to comment Share on other sites More sharing options...
hackerkts Posted August 16, 2006 Share Posted August 16, 2006 Hint... "bbcode" Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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] Quote Link to comment 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! ;) 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.