Remove Bbcode Tags In Posting Body »  Show posts from    to     

Icy Phoenix


Old Support Topics - Remove Bbcode Tags In Posting Body



DWho [ Sat 18 Aug, 2012 16:48 ]
Post subject: Remove Bbcode Tags In Posting Body
Hi

A question is it all possible with version 2.0 to remove the bbcode tags from within the text field in posting body?

Also to make the text appear exactly as it would if you were using a wysiwyg editor.

I love bbcode but I hate seeing all the tags in my post and having to repeatedly click preview to see how it all looks...

If it is too much of a headache or if not at all possible please let me know..

Thanks

Mike



Mighty Gorgon [ Sun 26 Aug, 2012 13:46 ]
Post subject: Re: Remove Bbcode Tags In Posting Body
You have at least three ready to use functions in bbcode.php

Code: [Hide] [Select]
/*
* This function will strip common BBCodes tags, but some of them will be left there (such as CODE or QUOTE)
*/
function bbcode_killer($text, $id = false)

/*
* This function will strip from a message some BBCodes, all BBCodes $uid, and some other formattings.
* The result will be suitable for email sendings.
*/
function plain_message($text, $id = false)

/*
* This function will strip all specified BBCodes tags or all BBCodes tags
*/
function bbcode_clean($text, &$tags)



I think you know how to use them...


mort [ Sun 26 Aug, 2012 14:31 ]
Post subject: Re: Remove Bbcode Tags In Posting Body
@ Both of you - I modified this for some other software some time ago and it works a treat. Might be worth a look at.

Quote:
It works like any web-based WYSIWYG editor, but it inputs and outputs BBCode instead of HTML.


http://wysiwygbbcode.codeplex.com/


DWho [ Sun 26 Aug, 2012 14:45 ]
Post subject: Re: Remove Bbcode Tags In Posting Body
Thanks for the tips but sadly bbcode confuses the hell out of me to even install or edit...

Thanks for the link Mort thats exactly what I would like using IP bbcode but I would not even know where to start...



mort [ Sun 26 Aug, 2012 15:10 ]
Post subject: Re: Remove Bbcode Tags In Posting Body
This zip is the "Latest" from their github.

Have a look at the demo.htm and it should give you some idea of how the textarea is treated to accommodate the javascript.

You could create a New phpBB Page in the root of IP and a .tpl etc to just play with the html and javascript.



Here's a picture of what I ended up doing with it and integrating it into a php file for some arcade script. And I can't see why the JS could not be modified more to add other things although it does already cover a lot of html functions.

untitled


DWho [ Mon 27 Aug, 2012 09:16 ]
Post subject: Re: Remove Bbcode Tags In Posting Body
Thanks

I will check this out..



mort [ Mon 27 Aug, 2012 11:51 ]
Post subject: Re: Remove Bbcode Tags In Posting Body
It's probably your only hope because there is not much out there that comes close to it.

Not even this is of any use?

http://code.google.com/p/almsamim-wysiwyg-phpbb3/


DWho [ Tue 28 Aug, 2012 10:04 ]
Post subject: Re: Remove Bbcode Tags In Posting Body
Thanks again





Powered by Icy Phoenix