![]() |
Attachments in private messages
Last tested in 3.5.0 beta 4
Beta hack With this hack you can send attachments inside private messages. Sometimes you may want to send an image or file to another user, but you just don't want to disclose your email or make the file public, with this hack you can attach it to the private message. Info for hackers: You may modify, improve, upgrade, redistribute this hack, include it in another hack or yours or translate it provided you do it free of charge and you distribute it in www.vbulletin.org at least, there is no need to pm me asking for permission Some portions of the code are (c) Jelsoft Enterprises Ltd. == I didn't think this could be done by plugins alone, but it was, although some sections were really tricky. Please read the faq in the post below. Also please reply if you tested it and it worked for you :) much appreciated v1.0.0 first release v1.0.1 Fixed an elusive bug that deleted all your non-pm attachments. Now in "valid file extensions" everything is correctly shown Added vbulletin version check so you can't install the plugin in an unsupported version |
FAQ
I'm getting a: Invalid Post specified. If you followed a valid link, please notify the administrator That means the plugin was unable to get attachments permissions for the user. To solve it:
$_pmt = 1; |
Works just fine in IE but in Firefox the 'manage attachments' button does nothing when clicked. And after testing it out in IE the attachment doesn't show up, guess I should re-do the hack.
|
Quote:
The attachments should show up provided the hook for that is active, check in the plugins manager that the 4 hooks for the private attachments are currently active. I forgot to say... I tested it in a blank, unmodified vb3.5 beta 3 installation |
The manage attachments button doesn't work at all in firefox.
|
I will install in the morning.
|
Hey Kent, could you please reupload your attachments as one zip per file as per our new rule :) Thanks
Btw, great modification, was surprised when I saw this in plugins and not code mods ;) |
Quote:
I've even tried to change the plugin's id in the database, but nothing changed. Still, it does attach the file. |
Thanks Kentaurus you got me through that problem, but now some more problems.
When I do try to add a Attachment I get this Warning: Invalid argument supplied for foreach() in \newattachment.php on line 545 the rest of the page comes out fine. Then when I try to actually upload a file, I get this Warning: Invalid argument supplied for foreach() in \newattachment.php on line 545 Any Ideas guys? Also I have the same problem as Johannes de León in that the list of valid extensions does not show in either in the new PM page or new Thread page. --Jagged Tooth-- |
Nice Hack.
One suggestion: I think you can get rid of the Cron Script by using Hook cron_script_cleanup. |
Nice hack...suggestion for next version, how about per usergroup settings as to who can and cannot add attachments.
|
The scheduled task for pm attachment clean up, wiped out all of my attachments. It first ran at 12:01am and every message with an attachment has an "edit by" message and the attachments are missing and the edit time is 12:01am, same as when the task first ran.
|
.Tim, you seem to be having really strange problems, but I'll see if I can find a solution
Do you have a pop-up blocker or some configuration alike in your computer? What vbulletin version are you running the hack in? Do you have other hacks / plugins installed? Also, have you tried testing the hack in a fresh, unmodified 3.5 beta 3 installation? |
Quote:
No, I don't have anything like that, plus the attachments were working just fine before. Yes, I have a few others installed but nothing involving attachments or pm's. No, I haven't tried that, after I lost my attachments getting this hack working has kind of taken a back seat. |
Quote:
|
Quote:
last seen online new posts and reputation comments arcade custom wol who visited today |
when recieving a pm inwhich a file has been attached, there is no option to view the attachment, as a matter of fact the attachment doesn't show up at all.
|
any word on this?
|
Quote:
|
Same issue as everyone else with viewing the attachment. It didnt matter whether it was stored in database or file folder.
Once that issue is solved this will be an excelent hack and very easy to install. |
I uploaded a new version. For upgrading please:
In the "plugin manager" delete all plugins that have "private attachments - " as a prefix, there are 4 of them re-upload privateattachments.xml from download/update plugins re-upload privateattachments.php in your includes/cron folder Thanks to .Tim for the help in debugging this, I'm terribly sorry about the bug in deleting attachments, it's finally fixed. I am now trying to find why the attachments wouldn't be displayed, they show fine in my installation, I tried sending a pm with attachments from "user1" to "user2", mixing images and documents.... didn't have any issues, user2 can see the attachments in the pm just fine. Does the fieldset that says "attached images" and "attached files" appears, or does nothing appears at all? Could you also try seeing the pm in the "sent items" folders and check if the attachments show there? |
Quote:
I get the little paper clip in the general inbox view, but I can't see the attachment when I open the PM. All I can think is that I have missed a template mod. |
Quote:
|
Quote:
I did add a giant "Beta Hack" legend to the first post.... before it was just the tiny little checkbox to the right. Wish I could do something to help you recover your attachments. |
It still doesn't show up when one is reading a message. See attachments.
|
Quote:
|
Well, its working for me :)
Only thing is its templates are un cached, not saying its your fault but we really need to work out some way of adding to those arrays. |
Hello here.
Do you know if this modification works well on vBulletn 3.0.7 (the latest one)? Thank you for any information. Fab. |
Quote:
|
Quote:
|
In my sent items, the message has a paperclip but there is no attachment showing when viewing the message.
|
Same here, no attachement showing when viewing the message. :( I needed this mod desperately. Any way through this problem ?
|
Kentaurus, I know you are very busy, but I too (as already stated) would love to be able to use this mod on my forum, but am having the same problem.
I know it is hard fixing a bug you can't re-create, but any assistance would be apprecaited. |
Def doesnt work for RC1 (atleast for me)
|
Ok, I've narrowed it down a little further. ;)
The paperclip shows when listing private messages. It does NOT show the attachment in the sent messages and the person who the attachment was sent to does NOT get an attachment in their pm. But when viewing the attachments listing in the Admin CP, the attachment is there. Hope this helps in tracking it down. ;) |
bump... would be nice to get this updated :)
|
Kentaurus... Any idea if it'll work with RC1 with the current install info. Normally I'd go ahead and install but I don't like the look of the bug that deleted all attachments lol!
|
Quote:
This doesnt work with RC1. Comes up with error stating needs Beta4 and found RC1. Will not allow access to pms. Hopefully this hack will be updated. |
Yeap, I lost this one as well when I upgraded to RC1. Would love to get it back as soon as you figure it out. Liz
|
Quote:
|
All times are GMT. The time now is 04:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|