abeautifulmind Posted December 6, 2011 Share Posted December 6, 2011 Hello to all. Do anyone knows if there is something free on the web to put smilies tags and more as options for users they try to post on my web site? For example like here when you make new topic and you have smilies and everything. Thank you in advance. Quote Link to comment https://forums.phpfreaks.com/topic/252621-text-area/ Share on other sites More sharing options...
gizmola Posted December 7, 2011 Share Posted December 7, 2011 That is simply code that looks for character patterns in a post, and replaces those with links to the smiley images. Here's an article that might help on how you could implement this in a simple manner: http://blog.sachinkraj.com/how-to-add-smilies-in-comments-with-php/ This is not a javascript question however. If you're talking about a rich text editor with some built-in support for smilies, then take a look at tinymce http://www.tinymce.com/ which can include smiley markup. Installing the infrastructure needed for these types of things is non-trivial. Quote Link to comment https://forums.phpfreaks.com/topic/252621-text-area/#findComment-1295114 Share on other sites More sharing options...
abeautifulmind Posted December 7, 2011 Author Share Posted December 7, 2011 sorry for off topic but i think little javascipt is used because when you press e.g. smile it pass the symbol in textarea with no page refresh. Quote Link to comment https://forums.phpfreaks.com/topic/252621-text-area/#findComment-1295117 Share on other sites More sharing options...
gizmola Posted December 7, 2011 Share Posted December 7, 2011 If you have a link to what you're talking about we might be able to offer more advice. Otherwise we can only guess. Sounds like you have a javascript rich text editor widget like tinymce or something similar. Quote Link to comment https://forums.phpfreaks.com/topic/252621-text-area/#findComment-1295131 Share on other sites More sharing options...
Network_ninja Posted December 7, 2011 Share Posted December 7, 2011 You maybe is looking for a rich text editor. try this: http://www.tinymce.com/ Quote Link to comment https://forums.phpfreaks.com/topic/252621-text-area/#findComment-1295189 Share on other sites More sharing options...
gizmola Posted December 7, 2011 Share Posted December 7, 2011 You maybe is looking for a rich text editor. try this: http://www.tinymce.com/ Thanks for this insightful post, I only mentioned tinymce twice already in my two replies. Thank goodness you were here to also suggest the same thing that I suggested twice already --- but at least you posted the link to it. Wait.... I posted the link to it as well. Quote Link to comment https://forums.phpfreaks.com/topic/252621-text-area/#findComment-1295399 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.