![]() |
Well,
I did some checking and looking. I also tried to find the location that Rolodex mentionned here: Quote:
Please give a hand if anyone can..... Cheers, GM |
i cant view it.
the code is all over the place anyway you can post a more friendly version? |
Just upgraded to 2.2.9 on my test board, and this works flawlessly with one tiny exception...
I still cannot get paperclip.gif to appear next to the message title. Quote:
|
Quote:
open- attachment.php REPLACE PHP Code:
PHP Code:
|
I installed it and as far as I can tell I did everything properly...but when the person who recieves the pm tries to open it...it says it cannot find the attachment specified...any ideas why?
|
When the member on the receiving end deletes the PM, is the attachment deleted from the database?
|
Nice hack but theres a small problem, If some one deletes the private message that has an attachment, it does not delete the attachment itself, I made a fix for this, Ill post a text below with the fix.
|
With the fix, It only deletes the attachment when the last private message that contains the attachment is deleted, so it doesnt accidentaly delete the attachment on the sender or receiver when one deletes the private message and the other doesnt.
Enjoy |
Hi, very neat hack but can any 1 help me, I want only selected members to be able to send attachments.....
|
Hey,
Ive installed this hack and gone over it twice.. For some reason it wont work.. When i send an attachment in a pm and read it.. it dosent show the attachment.. it shows nothing.. Ive check the mysql tables and it dosent seem to be adding anything to the attachment and privatemessage sql tables.. using vb 2.2.6.. any ideas?? /Steve |
*bump*
|
Fixed by turning Reg_Globals On
in php.. Is there any way around this? |
seems to be working fine on Vbulletin 2.30 release candidate 3
|
Quote:
|
Can anyone confirm that this hack is working 100% correctly for vb 2.3.0 with reg_glbals OFF ?
|
Running vBulletin (2.3.0)
I have install the hack Scott MacVicar's Attachments as files. [vB v2.2.3] Attachments as files (post #1) I have installed Private Attachments! (Attachments in Private Messages) Let me say the Attachments as files has been working with no issues for a few months. After installing Private Attachments, it appears that every thing works, (no errors) except the attacment never appears on the pm to the user. Now there is a earler post about This modification will allow you to have private attachment working with file attachment hack by PNP. It looks to me that PA has been updated and the added notes in that post (post #33) are included in the current hack. I Complete restore of test site to before install and re-installed the hack again............with the same results. Everything looks great............ allows me attach the file to the PM but when the PM is received there is no attachment. ( No error messages). What do I need to do? Help please......... I really need this to work on our system. Thanks ahead of time for your help. Guess this Thred is DEAD post this 06-23-03 02:52 AM and not a post....................hmmmmmmmmm |
I too have had this hack installed for quite some time now. Our server upgraded the php and turned off reg globals and now we can not receive our attachement in our PM's.
Is there a fix for this yet? Thanks ASD |
Have installed it, thank you for doing it. So i could get to bed some hours earlier now (it´s 7 in morning ;-(
But as i see the code there is no delete for the attachment, if the message is deleted, isn´t it so? Will see if i can fix this ... |
Improvements:
1) If you want to see the pic instead download it, try this for the new template privmsg_attachment <p><normalfont><img src="{imagesfolder}/attach/$message[attachmentextension].gif" width="16" height="16" border="0" alt=""> Attachment:<br> <img src="attachment.php?s=$session[sessionhash]&privatemessageid=$message[privatemessageid]" border="0" alt="" vspace="8" hspace="4"> </normalfont><br> <smallfont>Downloads: $message[counter]</smallfont></p> |
Ok. The better one:
make another template called privmsg_attachmentimage with this code: Code:
<p><normalfont><img src="{imagesfolder}/attach/$message[attachmentextension].gif" width="16" height="16" border="0" alt=""> Then found the place with: Code:
if ($message['attachmentid'] != 0) { Code:
if ($message['attachmentid'] != 0) { |
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* |
But I KNOW where the problem resides; WHY does it happen and HOW can i fix it? I can't figure it out... and the default is set to "0"
|
*bump*
|
I have been seeing some funny. Not sure if anyone has seen it or if there is just a simple solution,
We have been noticing that any files over 150kb do not get processed. Any thoughts? Thanks, G |
Will this work ok with version 2.3.2?
Thanks! |
In case anyone is curious, this works great on 2.3.3. The only issue I'm having is the same I mentioned before... the friggn' paperclip.gif image won't show up. Grrr. It's a minor issue, though.
|
Very nice hack, and very easy to install! thanks! :)
|
Chen, would any of the code in your hack (including the table setup queries) affect the logic used to kick off a new PM popup notification? I'm trying to troubleshoot why users aren't getting a PM notification popup anymore. We are getting email notification.
So far I've checked code in global.php, and forums/admin/functions.php and it all looks right. So does the headinclude file with the $headnewpm Loading up private.php also shows an unterminated string constant as well, but I don't believe that to be related. Thanks in advance for any ideas. |
Great hack,
But if I install it and we then decide to upgrade to v.3 - will all the members then lose their attachments? |
All times are GMT. The time now is 04:21 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:
|