Steppio Posted March 19, 2007 Share Posted March 19, 2007 How the devil would i go about putting one of these lovely forms that im using to type this question into a website? I already have the form to put the information into the database and that works, but what of all these lovely buttons /emoticons above? Is this PHP or something totally different? Quote Link to comment Share on other sites More sharing options...
monk.e.boy Posted March 19, 2007 Share Posted March 19, 2007 javascript. Have you not 'view source' on any of the forums? monk.e.boy Quote Link to comment Share on other sites More sharing options...
DeathStar Posted March 19, 2007 Share Posted March 19, 2007 This is a standard SMF forum Quote Link to comment Share on other sites More sharing options...
obsidian Posted March 19, 2007 Share Posted March 19, 2007 javascript. Indeed javascript is the lifeblood of those "additional" features to the forms, but only as far as inserting the code for the different options into your actual text field. It still is going to be up to you, using PHP or other scripting language, to display those codes appropriately on the final display page. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 19, 2007 Share Posted March 19, 2007 If you want to create an editor like this search google for BBCode editors. The editor uses javascript to insert the bbcodes in to the textarea. However in order to parse the BBCodes that will require PHP. Look in to the regex board and you see a few topics about BBCode parsers. Quote Link to comment Share on other sites More sharing options...
Steppio Posted March 19, 2007 Author Share Posted March 19, 2007 Thank you very much, i'll look into the BBCode editor. Edit - I dont intend to use this function for a forum, i have a page that members of the site can add articles to the news database, i only really need it for formatting, does this make any difference on how complicated the editor will be to make? Quote Link to comment Share on other sites More sharing options...
monk.e.boy Posted March 19, 2007 Share Posted March 19, 2007 http://www.htmlarea.com/ roxors your soxors. html area is piss easy to use, and so long as you are reasonably careful with the HTML it returns you can dump it into the database, and display it from the database easily. monk.e.boy Quote Link to comment Share on other sites More sharing options...
hackerkts Posted March 19, 2007 Share Posted March 19, 2007 Hope this link will help you along you go Learning Journal - Create PHP BBCodes I Regards, SkY Quote Link to comment Share on other sites More sharing options...
Steppio Posted March 19, 2007 Author Share Posted March 19, 2007 All of this is very helpful, thank you all. Quote Link to comment Share on other sites More sharing options...
obsidian Posted March 19, 2007 Share Posted March 19, 2007 http://www.htmlarea.com/ I've had numerous bad experiences with HTMLArea, both on browser support and generated code. I much prefer TinyMCE over HTMLArea. I think there are others who will agree with this as well. 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.