Renlok Posted January 29, 2008 Share Posted January 29, 2008 ive no clue about regex. but could someone help me make like a debbcoder for when a user needs to edit a post or something or atleast help me get started. Quote Link to comment Share on other sites More sharing options...
laffin Posted January 30, 2008 Share Posted January 30, 2008 ya mean yer info is already converted to html, and u need it to go back to bbcode? that's pretty complicated order, as different bbcodes output different information. prolly the easiest way is to add html comments before and after each bbcode converstion. example: [url=http://www.google.com]google[/url] usually wud output <A HREF="http://www.google.com>google</A> but if u added html comments u can make yer job easier if it looked like <!--- bbcode: [url=http://www.google.com] --><A HREF="http://google.com"><!--- bbend -->google<!-- bbcode: [/url]></A><!--- bbend --> Yes it may add a lot of clutter, but will make reconstructing the original bbcoded message a whole lot easier 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.