![]() |
PM Attachments 3.5
Original Hack by Rigel Kentaurus (http://www.cemzoo.com)
Original Thread: https://vborg.vbsupport.ru/showthread.php?t=91220 See the original thread for details of the problems.. Basically everything has been fixed so this works with existing installs and not just clean ones, also no error message about a non-matching release anymore.. attachments are now correctly displayed as they would be in a thread and this hack No longer inteferes with non-pm attachments.. So all the good bits left (Attachments in Private Messages, using the existing usergroup permissions) and all the bad bits taken out. Also I'm willing to support this hack, which is why I took the decision to start a new thread rather than use the existing one so I can easier support the hack and problems with this plugin not the old buggy one. (or at least that's the theory) Please uninstall the old plugin first, thanks. QuickFaq I'm getting Invalid Post specified: That means the plugin was unable to get attachments permissions for the user. The solution is to locate a thread in your forum (one that shouldn't be deleted in a long time, it doesn't matter if it's closed). Remember it's threadid Go to Plugin Manager and click on "private attachments - get posthash and allow attachments" Find: $_pmt = 1; Replace the "1" with the threadid |
What would cause the "Invalid Post specified" error in the first place? ;)
|
because this hack actually act like a "i take the permission from a thread, and apply it to the PM system"...
this means there is no permissions system for the PM attachments actually... missing! |
Quote:
|
Tested a couple of times with different size and types of attachements .. no problems.
Very useful addition .. thanks BluPhoenix. Clicked install. |
Some suggestions
- Make this into a Product with Install/Uninstall Codes so Users don't have to run Queries manually - You can use Hook cron_script_cleanup for the Cron-Stuff so you don't need an additional File |
Quote:
This works by tricking vbulletin that the pm is infact a thread, but on some systems the trick used to do that will fail. In such a case an old thread is used to hold the attachments in such a way that they are stored and viewed in the pm, but not viewed when the thread is viewed. nexialys: The permissions are still in effect if a usergroup does not have permission to send attachments they cannot send ones via pm either. KirbyDE: Thanks for the suggestions Kirby, I certainly plan to do just that once I've had some more A. Ok's for everything working as is.. I didn't want to make it too complex too soon and not be able to fix any little bugs that may come up. TTG: Good stuff, glad it's working for you. |
Fantastic. My members really loved this hack and missed it one I upgraded to 3.5.0.
Although I have clicked install I haven't installed so I can't give you an a ok. I just want to get the e-mail letting me know the system has been updated to be a product. |
Quote:
|
Quote:
|
All times are GMT. The time now is 06:59 AM. |
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:
|