ForumMadeSimple feature request
ForumMadeSimple feature request
Hi there,
I've successfully installed FMS 0.9.2 and so far the new features are great !
However, I wish I could use TinyMCE (FrontEnd) instead of the BBcode editor.
Would that be possible in the next version ?
Cheers,
BRX
I've successfully installed FMS 0.9.2 and so far the new features are great !
However, I wish I could use TinyMCE (FrontEnd) instead of the BBcode editor.
Would that be possible in the next version ?
Cheers,
BRX
Re: ForumMadeSimple feature request
This can be very dangerous, required a very cleaning code before submit tobrxdesign wrote: I've successfully installed FMS 0.9.2 and so far the new features are great !
However, I wish I could use TinyMCE (FrontEnd) instead of the BBcode editor.
Alby
Re: ForumMadeSimple feature request
alby is righ. When the software gets html-tags from unknown sources, it has to have good "whitelist" and tag parser has to be 100% correct. Otherwise the system becomes vulnerable to cross site scripting bug. Much better practice is to translate non-html tags to html and ignore unknown tags. Let's take an example:
(replace { with [ and } with ] please... I couldn't escape those properly with url)
is legal way to execute javasctipt. This is easy for filter, because javascript can be tagged illegal by whitelisting only http and https-protocols. But then: is much harder to parse correctly. BB {url=http://...} is simple to parse, because everything between = and } are part of url and they can safely be translated to url-encoding. No hassling with " nor ' nor any other strange way to hack the system.
Hopefully this prevents some to try to implement the html-handling to forum software.
Teme
(replace { with [ and } with ] please... I couldn't escape those properly with url)
is legal way to execute javasctipt. This is easy for filter, because javascript can be tagged illegal by whitelisting only http and https-protocols. But then: is much harder to parse correctly. BB {url=http://...} is simple to parse, because everything between = and } are part of url and they can safely be translated to url-encoding. No hassling with " nor ' nor any other strange way to hack the system.
Hopefully this prevents some to try to implement the html-handling to forum software.
Teme
Re: ForumMadeSimple feature request
Thanks Alby and Teme for pointing that to me.
Indeed it doesn't seem to be a good request anymore
Then how could I improve the BBcode editor so that users have more options like inserting images, etc. ?
An editor such the ones on these forums would be nice.
BRX
Indeed it doesn't seem to be a good request anymore

Then how could I improve the BBcode editor so that users have more options like inserting images, etc. ?
An editor such the ones on these forums would be nice.
BRX
Re: ForumMadeSimple feature request
It's simple but I remember of drop this because for avoid messing presentation because someone posted image very very bigbrxdesign wrote: Then how could I improve the BBcode editor so that users have more options like inserting images, etc. ?
Alby
Re: ForumMadeSimple feature request
Wouldn't you just be able to have limitations on the upload. Max file size and pixel size?
Re: ForumMadeSimple feature request
Seriously it would be a killer module with that small feature.
Re: ForumMadeSimple feature request
I seem exaggerated, it is a small forum for small communitiesraynoch wrote: Seriously it would be a killer module with that small feature.

I had not notice the double post, please no double post
For other ppl: I think to add img bbcode in next release, upload I think is beyond the scope of FMS
Alby
Re: ForumMadeSimple feature request
It wasn't a double post. I searched for quite a while trying to find something on this. After I posted my thread, I found this thread and commented on it. Therefore being two post on two threads.
Thanks for noticing.
One point. If the FMS works so well and is very functional compared to other Forum solutions. Wouldn't it make sense to add this small feature?? Just a thought. It's really all it lacks.
Thanks for noticing.
One point. If the FMS works so well and is very functional compared to other Forum solutions. Wouldn't it make sense to add this small feature?? Just a thought. It's really all it lacks.
Re: ForumMadeSimple feature request
Hi
this is a simple way to provide an "image-button":
Edit Forum.module.php at line 892
an then at line 909:
After this save the file and edit bbcode_toolbar.php after line 69. Insert this code:
Design an image (toolbar_image.gif) and use it as botton. Done!
A merry merry christmas to all!
cu
Allyfied
this is a simple way to provide an "image-button":
Edit Forum.module.php at line 892
Code: Select all
// Modify by AdvancedBBParser ch424.net
function AlbyBBParser( $text )
{
$bb = array(
'/</','/>/',
'/\[color=(.*?)\](.*?)\[\/color\]/ism', //color
'/\[center\](.*?)\[\/center\]/ism', //center
'/\[quote\](.*?)\[\/quote\]/ism', //blockquote
'/\[url\](.*?)\[\/url\]/ism', //link 1
'/\[url=(http:\/\/)(.*?)\](.*?)\[\/url\]/ism', //link 2
'/\[b\](.*?)\[\/b\]/ism', //bold
'/\[i\](.*?)\[\/i\]/ism', //italics
'/\[u\](.*?)\[\/u\]/ism', //underline
'/\[img\](.*?)\[\/img\]/ism', //insert image
'/\r\n/', //new line
'/[\s]{2}/i' //space
);
Code: Select all
$html = array(
'<','>',
'<span style="color:\1;">\2</span>', //color
'<div class="forum_center">\1</div>', //center
'<div class="forum_quote">\1</div>', //blockquote
'<a href="\1" rel="nofollow">\1</a>', //link 1
'<a href="http://\2" rel="nofollow">\3</a>', //link 2
'<b>\1</b>', //bold
'<i>\1</i>', //italics
'<u>\1</u>', //underline
'<img src="\1" />', //insert image
'<br />', //new line
' ' //space
);
Code: Select all
<a href="javascript:void(0);" onclick="storeCaret('img','img');return false;"><img src="{$_ModulePath}toobar_image.gif" alt="Bild" title="Bild" style="margin:1px; background-image:url({$_ModulePath}bbc_bg.gif);" /></a>
A merry merry christmas to all!
cu
Allyfied