Yippee, my first plugin in wordpress repo.
A plugin for giving users the option to send attachment to each other in private messages. Users can send file attachment to each other in private messages as well in replies to those messages.
Check the screenshots below:


You can download the plugin from wordpress repo here
The plugin was originally developed keeping audio/video attachments in mind, so the option to wrap audio/video attachments in HTML5 audio/video tags is still there.
Drop in your comments if you found it useful, or if you find any bugs.
today it finally let me send a photo. Can you fix the plugin so the person can download it?
Thanks!
ok today it finally let me send a photo. Can you fix the plugin so the person can download it?
Thanks!
Thanks Chandan
I solved applying the Slimbox plugin:
I can open the attached images in a lightbox? How to do this?
Hi dhegarcia,
No, the images can’t be opened in a lightbox, unless of course the plugin is modified to do so. If you know your way with wordpress programming, you can do it yourself by enqueuing and using wordpress’s inbuilt thickbox plugin, or some external lightbox plugin. Else, let me know if you want me to do something about it.
@Andrés Felipe López G.
Same here, hope this can be fixed soon!
Right now it works here only with .png files…
Thanks!
there’s a small overlooked silly mistake in the way the plugin works, it seems that if you type the ‘allowed file extenstions’ with white spaces, it wont recognise them. So instead of ‘png, gif, jpg’, if you type ‘png,gif,jpg’ it works.(its silly, and its been fixed for the upcoming update, sorry about that). I am not sure if that’s the error in your case, but you might wanna try that.
Thank you very much Chandan,
it works like a charm now!
Have a nice day & keep up the good work!
Best regards,
rain3r
Hi and first of all, thanks for all your plugins
I just installed your plugin, configure it with size 5mb and files tyoe including pdf but I’m trying to send a file with 350kb in pdf and I get this error “There was an error sending that message: attachement too big or the file type not allowed, please try again”.
What could it be?
I am having the same problem. Please help!
there’s a small overlooked silly mistake in the way the plugin works, it seems that if you type the ‘allowed file extenstions’ with white spaces, it wont recognise them. So instead of ‘png, gif, jpg’, if you type ‘png,gif,jpg’ it works.(its silly, and its been fixed for the upcoming update, sorry about that). I am not sure if that’s the error in your case, but you might wanna try that.
Hi Chandan seems to work (almost)….. 2 things:
1. When compose message, not file (any type) is uploaded but when reply everything works fine. Any idea?
2. Is it possible not load the attachment but download it on clic?
Thanks in advance!
Hi,
Thanks for all your great tutorial, please do you know of any snippet which i can use to filter email address as i dont want my user to include Their email address in private message.
Regards
check this
grr…haven’t had coffee yet…see my comment below…replied to the wrong thing…;)
Hello! GREAT idea for a plugin, but I cannot get it to work! I installed the plugin (latest wordpress, and using a multi-site installation), but when I go to set which file types are allowed, I get a “you don’t have sufficient rights to edit this page” – I’m the super admin! ….help!
-Chris
Hi Chris,
Yes there’s a problem on multisite installation. I’m fixing it in the next version of the plugin (Which i hope will release soon, may be in a week or so). Meanwhile you can check this thread on wordpress.org http://wordpress.org/support/topic/wordpress-multisite-problem. That might help
Hi there,
Really like the idea of the plugin yet i have come across an issue (previously mentioned by someone else):
When i send a message & upload a file… as soon as I press send it says that either the file is not allowed or the size is to big.
Obviously I have tested several diferent options with files and sizes, but this doesn’t change the issue on the front end.
I had the latest version of your plugin through the wordpress site.
Really think this plugin will be hugely helpful once it works.
P.s.: is there a po file for translation?
Understood, and thanks for pointing me to the other info…will try that and if it doesn’t work, will stand down and wait for the fix! Many thanks!
-=Vel=-
Hello,
Thanks for the great plugin. I had the same issue as Lesther and perhaps HansRuedi and others, the problem for me on file
includes/actions.phpwhere$allowedExts = explode(',', $allwd_ext);which will output an extra white space before the$allowedExtsarray values.To solve this, I have added an extra space after the comma of the
$glueargument of theexplodefunction:$allowedExts = explode(', ', $allwd_ext);. A better solution would be to trim all the white spaces before output the exploded items:array_map('trim', explode(",",$allwd_ext));Glad you got it working Ahmed. and thanks for posting a solution, much appreciated..
Hi, thanks for your plugin
but can not get to work
I configured everything right and if I want to send the message with the attachment I get the following message: “There was an error sending that message: attachement too big or the file type not allowed, please try again”
have something to do with the theme I’m using?
all right, not passing
could help me, thanks
Kudos! What a neat way of tinhikng about it.
Hi Chandan
Will be a good addition for BP
Thanks.
But: just tried v1.1 with WP 3.4.2 and BP 1.6.1 (single instance) with no luck.
It’s always refusing to send with an error msg.
Regards,
Hans
hi HansRuedi, you need to update the settings once you activate the plugin, update the file types you want to allow etc. Only then the plugin starts working. Have you already done that?
Thanks for your reply, Chandan
Yes, I already did that and tried different settings and files – I’m a long time user of BP…
If time is money you’ve made me a wealhteir woman.
The plugin doesn’t work, there is noch attachment inside the message.
Please check it.
Stefan
With all th excitement of adding my first plugin into wordpess repository, i added a previous version of one of the plugin files in the reposiroty. Please uninstall and delete the current plugin and dowload it again from wordpress and install it. It’ll work now. And sorry for the mess
Hi, firstly let me say thank you for this important plugin. i have just installed it but when you send a photo attachment, there is no attachment in the message at the other users inbox. can you please check the plugin for any bug.
Regards
If possible could you please provide me a link to the site where it doesn’t work. I’d sure check and correct it.
Sorry, a wrong file was uploaded by mistake to the reposiroty. uninstall and delete the current plugin. Download it again from wordpress repo (updated) and install it. It should work fine.