MyBB Community Forums
Long code to atttachment - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html)
+---- Thread: Long code to atttachment (/thread-45921.html)



Long code to atttachment - iarspider - 2009-02-28

This is my first ever MyBB plugin, so don't be too hard :)
Also, English is not my mother language (Russian is).

The plugin was created for an upcoming introduction of a new forum - MyBB based, of course - on a site of russian programming tool (it's like an IDE, but for several programming languages - Object Pascal/Delphi, FlatAsm, C++, PHP, JavaScript, CSS, HTML) called HiAsm. The idea behind this plugin is to automatically enforce one of the forum rules that says "Please don't post large code chunks (> 100 chars) in message body, use attachments!".

Plugin supports internationalization, language files for English and Russian are already included. Also, maximal length of code chunk is configurable via Admin CP.


RE: Long code to atttachment - x_Stricken_x - 2009-02-28

Sounds niceSmile I'll try it out later.


RE: Long code to atttachment - iarspider - 2009-02-28

I hope I will meet your expectations. Blush

By the way, the plugin has a small "problem" (won't call it a "bug"): if the code-collapsing is triggered after ajax-based quick edit, the code is still displayed inline, although if you refresh the page, the message will be shown properly.


RE: Long code to atttachment - Imad Jomaa - 2009-02-28

Very well done. Smile


RE: Long code to atttachment - Diogo Parrinha - 2009-03-01

I might use this on my forum. There are always users who post large code chunks of C and C++ instead of attaching the source file.
Thanks Smile