https://www.icyphoenix.com/viewtopic.php?f=35&t=8633
-----------------------------------
DWho
Sat 18 Aug, 2012 16:48

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

 :mrgreen:  :mrgreen:


-----------------------------------
Mighty Gorgon
Sun 26 Aug, 2012 13:46

Re: Remove Bbcode Tags In Posting Body
-----------------------------------
You have at least three ready to use functions in bbcode.php

[codeblock]	/*
	* 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)[/codeblock]


I think you know how to use them... :-)


-----------------------------------
mort
Sun 26 Aug, 2012 14:31

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.[/quote]

http://wysiwygbbcode.codeplex.com/


-----------------------------------
DWho
Sun 26 Aug, 2012 14:45

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...

 :oops:


-----------------------------------
mort
Sun 26 Aug, 2012 15:10

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[b][i] play [/i][/b] with the html and javascript. :mryellow: 

;)

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.

 [img]http://www.icyphoenix.com/files/images/8840/untitled.png[/img]


-----------------------------------
DWho
Mon 27 Aug, 2012 09:16

Re: Remove Bbcode Tags In Posting Body
-----------------------------------
Thanks 

I will check this out..

 :mrgreen:  :mrgreen:


-----------------------------------
mort
Mon 27 Aug, 2012 11:51

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

Re: Remove Bbcode Tags In Posting Body
-----------------------------------
Thanks again

 :mrgreen:  :mrgreen:


