![]() |
Does the regular attachments work the same way, or are they doing an unset?
|
Quote:
In private messages it is a little more tricky because the same private message can be reused between multiple recipients, so we need to make sure that nobody needs the pmtext. Vbulletin does it by using an hourly cleanup to delete all orphan pmtext, I made it delete the attachments there also. ################################################## ################# # Code modifications in file "includes/cron/cleanup2.php" ################################################## ################# ------------------------------------------------------------------- at line 81, search for this code: ------------------------------------------------------------------- Code:
change it to: ------------------------------------------------------------------- Code:
Code:
ALTER TABLE attachment add index (private); The .txt is also updated with this changes. You only need to apply them if you downloaded the txt before this post was made. |
Quote:
Well, maybe someone else would hack it, I don't think I will be doing this one as I like how it works right now. |
Thank you, sir. ;)
|
I am having problems with this...
I am sure i have followed all instructions... I am able to send the attachments, but the recipient does not receive them... And when I view trhe attachments i have posted in the user cp, it shows, In Progress... Have i dont something wrong? |
Quote:
Is there a way to limit this to like the admin and/or mods or userid 1 and 2 or something like that then? Maybe a template condition? |
You're using detailed time on your board, right? That is what it means by in progress. Have you tried to click on any of the attachments in the usercp? I have and they are there and show up fine. ;)
|
Quote:
In the user cp they do show up fine, but the problem is that the recipient of the PM does not receive the attachment... I can send it find with no errors, but the user doesn't receive it... |
Quote:
However, I don't have any problem with viewing my attached file in the private message, are you sure you have this code around line ~1371? That's the one responsible for fetching the attachments. Code:
if ($pm['attach']) |
Quote:
Attachments in normal post do show fine... |
All times are GMT. The time now is 08:12 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:
|