![]() |
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. |
All times are GMT. The time now is 01:47 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:
|