The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
PM Attachments 3.5 Details »» | |||||||||||||||||||||||||
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 Supporters / CoAuthors Show Your Support
|
Comments |
#72
|
||||
|
||||
Any idea if this is working with 3.5.0 Gold?
|
#73
|
||||
|
||||
|
#74
|
|||
|
|||
Almost did not get it to work but I did.. Great tool !
Anyway to make the image show up in the private message rather than being a link.. ? |
#75
|
||||
|
||||
I've not been able to get it to work yet. I've set it up 3 times already and I'm just going to wait until its "official" before I reattempt it.
|
#76
|
|||
|
|||
It work's fine. Great Work!
Here is the German Translation for German Users... I postet it here, because of Kentaurus rules... :nervous: |
#77
|
||||
|
||||
Quote:
Perfect Thanks @General_ and BluPhoenix ! But i get this at online.php if a User is attaching a File ! |
#78
|
|||
|
|||
I get this when i click "Manage Attachments"
Code:
Invalid Post specified. If you followed a valid link, please notify the administrator Code:
$extraattachmentinfo = $db->query_first(" SELECT userid,itemid,usedin FROM " . TABLE_PREFIX . "attachment AS attachment WHERE attachmentid = " . $vbulletin->GPC['attachmentid'] . "" ); if ($extraattachmentinfo['usedin'] == 'pmtextid') { $pmUsers = $db->query_first("SELECT toUserArray FROM ".TABLE_PREFIX."pmtext WHERE pmtextid='".$extraattachmentinfo['itemid']."'"); $toUserArray = unserialize($pmUsers['toUserArray']); if ($toUserArray[$vbulletin->userinfo['userid']] != $vbulletin->userinfo['username'] && $extraattachmentinfo['userid'] != $vbulletin->userinfo['userid']) { print_no_permission(); } // bad thing to do, modify the main array with an int so the & operations will be true, any suggestions to improve this? (no file mods allowed!!) $vbulletin->userinfo['permissions'] = $vbulletin->bf_ugp_forumpermissions['canview'] + $vbulletin->bf_ugp_forumpermissions['canviewthreads'] + $vbulletin->bf_ugp_forumpermissions['cangetattachment'] + $vbulletin->bf_ugp_forumpermissions['canviewothers']; $imodcache = array(); $imodcache[0] = array("".$vbulletin->userinfo['userid']."" => 1, 'permissions' => $vbulletin->bf_misc_moderatorpermissions["canmoderateposts"]); } |
#79
|
||||
|
||||
ok i fixed my issue but now i try to load a regular small image and it takes too long. it doesnt load it can you please tell me why? i followed the steps thanks
|
#80
|
|||
|
|||
*bump*
|
#81
|
||||
|
||||
Quote:
about 5 or 6th line i think |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|