![]() |
Wow. Now i got a problem. Want to kill the attachment when the pm is killed. Problem:
If someone sends a multiple message to more than one users. While the first kills his pm, the attachment is killed, too. Seems another query is needed: count pms with attachmentid = x, if > 0, dont kill the file: (Query after killing the first pm, while query before must be >1) and so on. Will do it in a minute ... |
Seems something forgotten:
In template privfolder_bit, you have to insert $attach bevore Code:
<normalfont><a href="private.php?s=$session[sessionhash]&action=show&privatemessageid=$privatemessage[privatemessageid]">$privatemessage[title]</a></normalfont> |
ok. Here we go:
find in private.php this line: Code:
if ($what=="delete") { with this code. Code:
if ($what=="delete") { |
Hmm. Is there any query to ask:
How many attachmentids in table with attachmentid like the one where x=y and t=o ? I really hate it to make more than one query if not needed ;-) Maybe it´s really time to go to bed, 8:30 now at morning ;-( |
Hehe. Last words for this day. Im really happy that the upload runs with the same function from functions.php, so my mogrify resizes pics greater than the allowed value and no +++++ of user could destroy the tables with to heavy stuff uploaded ;-)
Maybe in two or three days i could show my HotOrNot-Hack with all the same functions from the original and some more. If someone is interested pm me, think i will not have the time to make clear instructions on this. |
The edit button is your friend.. ;)
Thanks for your contribution towards making the mod work how others have requested though! |
I already fixed the problem where the private attachment stayed on the server even when the private messsage is deleted. It also checks to see if theres more them one private message that has it.
See the following post: https://vborg.vbsupport.ru/showthrea...835#post360835 |
I seem to have a small problem with this...
I installed this great hack about 6 months ago and it ran fine. Until 4 days ago. It just seemed to stop. I never installed the delete attachment fix, so could there be an issue with there being too many files hanging around? If so, how can I change this? If that is not the case then, how can I go about correcting this problem. Any suggestions would be great. Cheers. |
Quote:
How was this fixed? |
Sorry, dont know your code and be very in hassle with some other stuff, the error comes from the last value not set
see: ... 0,0,1,) It seems there is no attachmentid passed, try to set the variable in '', so if nothing is here, it will be a 0 because of the default in mysql. *removed links as they contained adult pics* |
All times are GMT. The time now is 02:50 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:
|