Module: Empty Bodies
Posted by Maurice Makaay
All files from this thread
File Name | File Size | Posted by | Date | ||
---|---|---|---|---|---|
empty_bodies-1.1.0.tar.gz | 2.8 KB | open | download | Maurice Makaay | 03/25/2009 | Read message |
empty_bodies-1.1.0.zip | 4.7 KB | open | download | Maurice Makaay | 03/25/2009 | Read message |
Module: Empty Bodies August 20, 2007 03:42PM |
Admin Registered: 19 years ago Posts: 8,532 |
Allow empty bodies in messages, so forum users can commit quick comments by only using the subject line. The module will also add a string to the subject and body to identify empty messages. These strings can be customized through the language files.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Changelog: ---------- 2007-08-20 v1.1.0 - Updated deprected hooks for Phorum 5.2. - Bumped version to clearly mark the Phorum 5.2 compatible version of this module. 2006-08-20 v1.0.3 - Changed the common hook a bit to detect an empty body correctly in case $_POST data is sent unchanged to the server. In this case empty_body=1 and body=n/t is sent. Before the change, the "n/t" in the body would cause the script to set empty_body to 0 and use "n/t" as the new body. 2007-01-21 v1.0.2 - The editmessage (Edit [x] times. Last edit at [y] by [z]) and possible additions to the body (e.g. by other modules) are now kept intact. - The BBcode module adds a space to the start of the body, which confused the Empty Bodies module a bit. The module is now compatible with this. 2006-01-17 v1.0.1 - The module now makes use of Phorum 5.1 hooks for good integration with the posting editor.. - Added feature to print subject suffix (n/t) and body string¶ for empty messages. The strings to use are configured using the localization files. - If a user enters "n/t" in the body himself, the message now counts as not being empty. 2006-01-11 v1.0.0 - Initial release.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Empty Bodies January 26, 2008 12:52PM |
Registered: 16 years ago Posts: 63 |
I really should have looked closer at the mods list before hacking this myself lol. Luckily it didn't take long to un-hack. Thanks!
It's not a TV show, it's an obession: [chat.bbchatter.com]
It's not a TV show, it's an obession: [chat.bbchatter.com]
Re: Module: Empty Bodies May 17, 2009 05:10PM |
Registered: 14 years ago Posts: 106 |
Re: Module: Empty Bodies May 17, 2009 06:11PM |
Admin Registered: 19 years ago Posts: 8,532 |
I'm coming back to the Embed Attachments module here. When using that one, adding the message to the body by means of an [attachment ...] link will fill the body. When the image is not added to the body, then posting won't work.
It can probably be implemented by hacking the empty bodies module as well (the phorum_mod_empty_bodies_common() function), but I don't see a quick hack at the moment.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
It can probably be implemented by hacking the empty bodies module as well (the phorum_mod_empty_bodies_common() function), but I don't see a quick hack at the moment.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Empty Bodies January 18, 2012 03:01AM |
Registered: 12 years ago Posts: 3 |
Hi!
This too old theme, but i deside to comment...
A have installed this module. After it RSS (and Atom) feed does't work - there is an error.
I found problem:
feed_functions.php
String to form title:
$buffer.= " <title>$title</title>\n";
it doesn't work. I replaced whit this code:
$buffer.= " <title>".htmlspecialchars($title, ENT_COMPAT, $PHORUM['DATA']['HCHARSET'])."</title>\n";
that's all. thank you.
My phorum: [kazanauto.ru]
This too old theme, but i deside to comment...
A have installed this module. After it RSS (and Atom) feed does't work - there is an error.
I found problem:
feed_functions.php
String to form title:
$buffer.= " <title>$title</title>\n";
it doesn't work. I replaced whit this code:
$buffer.= " <title>".htmlspecialchars($title, ENT_COMPAT, $PHORUM['DATA']['HCHARSET'])."</title>\n";
that's all. thank you.
My phorum: [kazanauto.ru]
Sorry, only registered users may post in this forum.