Lumio Posted February 17, 2007 Share Posted February 17, 2007 Hello! I already posted it in another topic. But nobody has answered it. I made a little BB-Parser with javascript. Check it out on livebb.zems.net Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/ Share on other sites More sharing options...
emehrkay Posted February 17, 2007 Share Posted February 17, 2007 pretty cool. i dont know if it matters or not, but if you put a space in the tag, it doesnt work [b ]bold[/ b] Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-187414 Share on other sites More sharing options...
mattd8752 Posted February 17, 2007 Share Posted February 17, 2007 Is that ajax? Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-187422 Share on other sites More sharing options...
fert Posted February 17, 2007 Share Posted February 17, 2007 most likely, but them again Javascript does have regex support Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-187430 Share on other sites More sharing options...
mattd8752 Posted February 17, 2007 Share Posted February 17, 2007 It could be AJAX or javascript, I don't have to much experience with JAVASCRIPT to be able to tell. Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-187442 Share on other sites More sharing options...
Lumio Posted February 18, 2007 Author Share Posted February 18, 2007 It's only Javascript. AJAX (=Asynchronous JavaScript and XML) is used to communicate with a server without reloading a page. This BB-Parser is live And yes that's true... Javascript has regex support. But I don't like it If you write [b ] and [/ b] it isn't a right syntax. Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-187853 Share on other sites More sharing options...
shawnplr Posted February 19, 2007 Share Posted February 19, 2007 Nice script. Doesn't update when you paste until it gets more keyboard input. Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-188340 Share on other sites More sharing options...
Lumio Posted February 19, 2007 Author Share Posted February 19, 2007 That's true... but I don't know how to fix that... because if I use onchange It also doesn't work. Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-188451 Share on other sites More sharing options...
ted_chou12 Posted February 19, 2007 Share Posted February 19, 2007 Nice.! Ted (1000th post ) Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-188487 Share on other sites More sharing options...
tarun Posted February 20, 2007 Share Posted February 20, 2007 WoW HOT STUFF 1 Thing Though - Maybey Allow Stuff Like Fonts And Colours Thnx, Tarun Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-189838 Share on other sites More sharing options...
Lumio Posted February 20, 2007 Author Share Posted February 20, 2007 Ok... Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-189839 Share on other sites More sharing options...
JBS103 Posted February 23, 2007 Share Posted February 23, 2007 This would be pretty nice to have implemented on the forum so you could see if your tags were working without the preview button. Nice going. Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-192338 Share on other sites More sharing options...
Lumio Posted February 24, 2007 Author Share Posted February 24, 2007 Thank you! So if anyone want to help me just write some blogentries Or if someone wants to help me developing it just write me a feedback (bottom of www.livebb.zems.net) thx Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-193201 Share on other sites More sharing options...
JoshF Posted February 26, 2007 Share Posted February 26, 2007 I like it. Simple and effective. Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-194374 Share on other sites More sharing options...
AXiSS Posted February 26, 2007 Share Posted February 26, 2007 Pretty cool. I like it, but I don't know what I'd use it for. Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-194778 Share on other sites More sharing options...
Lumio Posted February 27, 2007 Author Share Posted February 27, 2007 When I started to write that script, I thought about to use it for previews. But in fact it's better to use TinyMCE or something like that. Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-195079 Share on other sites More sharing options...
HaLo2FrEeEk Posted February 27, 2007 Share Posted February 27, 2007 Schweet, I made something like this out of php, but its not live updating, and I made it so people could enter tutorial for my site in bbcode, which they are more used to, and then submit it and the parser would convert it to HTML, its here: http://claninfectionist.com/imsc/testing/replace.php I also used javascript from my forum to insert the bbcode, like a forum does. Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-195598 Share on other sites More sharing options...
Lumio Posted February 28, 2007 Author Share Posted February 28, 2007 404 Error Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-195874 Share on other sites More sharing options...
obsidian Posted February 28, 2007 Share Posted February 28, 2007 That's true... but I don't know how to fix that... because if I use onchange It also doesn't work. Try using a combination of onchange, onkeydown and onkeyup. You can even run some additional checks with onfocus and onblur if you want. There are definitely ways to get around what you're after. Also, while it picks up http:// and www. as standard links, it doesn't pick up email addresses. I would definitely recommend you try to like enough regexp in JS to get some additional functionality like that. Otherwise, it's really a nice tool so far. Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-196190 Share on other sites More sharing options...
Lumio Posted February 28, 2007 Author Share Posted February 28, 2007 Yeah! I also thought about link email-adresses. I'll also look up a way to use functions for contents Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-196272 Share on other sites More sharing options...
Lumio Posted February 28, 2007 Author Share Posted February 28, 2007 Okay! I made some bugfixes and added mail-addresses to find. I didn't know, that regex is that much easy Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-196324 Share on other sites More sharing options...
agentsteal Posted March 4, 2007 Share Posted March 4, 2007 Cross Site Scripting: http://www.livebb.zems.net/index.php/<marquee><h1>vulnerable</marquee> Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-198887 Share on other sites More sharing options...
ted_chou12 Posted March 4, 2007 Share Posted March 4, 2007 Pretty cool. I like it, but I don't know what I'd use it for. for beta testing in phpfreaks. Ted Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-199054 Share on other sites More sharing options...
Lumio Posted March 4, 2007 Author Share Posted March 4, 2007 Your "file not found" page is vulnerable to XSS. Thank you! It's not my server so I can't do anything. But I told the serveradmins of that problem. Thank you Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-199087 Share on other sites More sharing options...
wintallo Posted March 9, 2007 Share Posted March 9, 2007 Good start! I like it alot! I'm not too sure how it could be used but I'm sure there's an application for it! Link to comment https://forums.phpfreaks.com/topic/38895-live-bb-parsing/#findComment-203532 Share on other sites More sharing options...
Recommended Posts