Remove Bbcode Tags In Posting Body


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

:mrgreen: :mrgreen:

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

Code: [Download] [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... :-)

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/

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

:oops:

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

untitled


wysiwygbbcode-f167e044e11b.zip
Description:  
Download
Filename: wysiwygbbcode-f167e044e11b.zip
Filesize: 12.67 KB
Downloaded: 104 Time(s)

Profile PM  
Subject: Re: Remove Bbcode Tags In Posting Body
Thanks

I will check this out..

:mrgreen: :mrgreen:

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/

Profile PM  
Subject: Re: Remove Bbcode Tags In Posting Body
Thanks again

:mrgreen: :mrgreen:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.2033s (PHP: 10% SQL: 90%)
SQL queries: 17 - Debug Off - GZIP Enabled