July 20, 200818 yr hello, i have a small hard question , i really wish to find the answer soon here because iam look for that answer for 3 days and i got no success , well , iam not a professional in the php programming but iam trying to be good as i can on it so about the question , just iam trying to complete my second script programming , i want to make adding topics system , i want to let the visitor be able to add any mount of pictures inside his topic between any words line he want like the topics result on the vBulletin adding topics system just like that form :- words , words , words , words , words words , words , words , words , words picture words , words , words , words , words picture words , words , words , words , words words , words , words , words , words picture words , words , words , words , words but i want to let the visitor be able to put any mount of words and pictures inside his topic , i think u got what i mean now i wish to got the explain to make it from the professional programmers or just if any one have small topics system working like iam asking for it will be great if he can share it for teach us and to let us know the way to make it and to being better . thanks every body
July 20, 200818 yr Have a look at content editors like TinyMCE , FCKEditor or Google: javascript content editors WYSIWYG etc
July 20, 200818 yr Author thank you very much Mihai Georgescu but i wanna ask u for one more favor , it will be from your kind to doing it and i will be thankful for it . just i dont know any thing about the javascript , so can u just send to me small topic system like the one that iam asking for if u have one ,just for studying it and to know the way from it to do what iam asking for . iam very glad with ur reply and your help too and thank you very much
July 20, 200818 yr Just read the documentation ... it's really easy, here's a quick intro to how it works: - you have a HTML page with a form and a textarea; - you insert a piece of javascript that loads the TinyMCE script; - the script transforms the textarea into an editor similar to the one that you see in this forum; - the user does X, Y inside the textarea (the editor handles everything); - the user clicks Submit and the content is posted to your PHP handling file (just like a normal form); - you save that data in a database; - you have another page that loads that data from the database; - all done.
July 20, 200818 yr TinyMCE is what you need. Make sure you check out the documentation like Mihai Georgescu has said. Its not too heavy.
July 21, 200818 yr Author i downloaded the editor and i made normal simple texarea and i made the steps in the installtion but it didnt work , so here is my full code and please tell me what is the error . thanks <script type="text/javascript" src="tiny_mce/tiny_mce_gzip.js"></script> <script type="text/javascript"> tinyMCE_GZ.init({ plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetim ,preview,media,'+ 'searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable, isualchars,nonbreaking,xhtmlxtras', themes : 'simple,advanced', languages : 'en', disk_cache : true, debug : false }); </script> <html > <head> <title>New Page 1</title> </head> <body> <form method="POST" action="submit.php"> <p> </p> <p> </p> <p><textarea rows="15" name="world" cols="56"></textarea></p> <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> </form> <!-- Needs to be seperate script tags! --> <script type="text/javascript"> tinyMCE.init({ .. your normal init .. }); </script> </body> </html>
Create an account or sign in to comment