The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[VB3 RC3] Attachments in private messages Details »» | |||||||||||||||||||||||||||
[VB3 RC3] Attachments in private messages
Developer Last Online: Jul 2014
Unsupported. VB3.5 version is here:
https://vborg.vbsupport.ru/showthread.php?t=91220 Tested on 3.0.3 This hack enables you to send attachments in a private message. This feature was really useful to me in vb2 and I kind of missed it on vb3 so I rehacked it myself. When a user writes a private message they will be given the option to add an attachment, the same as when writing a post. It uses the same rules you have defined for a convencional attachment including file types, quotas, etc. It is only an extension for attachments to be used in private messages. As always it is advised to backup your files before hacking in case you want to go back, this is some big hack including modification of multiple files, some templates and adding two extra columns in the database tables. Instructions are provided in the txt, and some screenshots on where the attachment option appears. Info for hackers: You may modify, improve, upgrade, redistribute this hack, include it in another hack or yours or translate it provided you do it free of charge and you distribute it in www.vbulletin.org at least, there is no need to pm me asking for permission Some portions of the code are (c) Jelsoft Enterprises Ltd. Edit by MarcoH64: Because of multiple requests to make this hack work on vB3.0.7 i created upgrade instructions. These upgrade instructions can be followed after the original instructions (the 3.0.3 version). The original coder can not be held responsible for my modification. Show Your Support
|
Comments |
#302
|
||||
|
||||
error occurs when running the instal queries says table db.attachment does not exist.
any help do i need to prefix if so how |
#303
|
||||
|
||||
you might not be logged into the correct db
make sure you've connected to the correct database connect vbulletin ; if vbulletin is the name of your database then run the queries...bottom line make sure your on the right db! |
#304
|
||||
|
||||
ok further update to my issue I was having...Turns out i already had a private field in the database for attachments that was a tinyint i removed it and added the one required here and everything appears correctly in the post but now nothing will download.
in attachment.php i believe the postid is coming out as zero which in indicates that the user who uploaded the file isn't the person who is trying to view the file and therefore we have an error. im wondering if its a newattachment issue or something? anyone have a solution? |
#305
|
||||
|
||||
ok queries issue resolved, and everything appears in place following carrying out the upgrade instructions, however when a user attempts to attach a file and uplaod
the response 'This forum is not accepting new attachments' any ideas? |
#306
|
||||
|
||||
Ok I can attach file but as per xfaethorx post I just get a red cross box when the PM with attachment is viewed any help thanks
|
#307
|
||||
|
||||
icehawk002 - i've an idea what the problem is but its going to involve some recoding of the hack itself. I don't have the time to do it due to work commitments the best thing to do is unwind the hack as the author no longer seems to support it nor does the guy who made the alterations to this hack.
It needs someone else to pick up the development. |
#308
|
||||
|
||||
I note that many have the almost identical problem in the "unsupported" hack version for 3.5 LOL https://vborg.vbsupport.ru/showthread.php?t=91220 but unfortunately the author does not appear to have resolved the issue there either.
Its a real shame if it cannot be corrected another add on that I would have like to have seen would be to specify user groups which can or cannot use PM attachments set in admin cp. If someone can resolve the issue I would be willing to make a donation |
#309
|
||||
|
||||
basically an assosiation needs to be created between the user who uploaded the image and the user who is to browse said image. However its not made in newattachment.php.
Thats why you get the error, if you send the message to yourself you'll see that it works fine. One solution would be to alter the database AFTER the image has been uploaded so that when you submit the the PM it alters the database to change ownership of the attachment to the user it is being submitted to.. that would be a dirty fix but would also mean that the sender could no longer see said attachment in their attachment list or in the sent messages so should you want to get the message attachment back you couldn't. Now if theres a way to have multiple owners of an attachment in this case then we've got the solution as all we need to do is add the destination user as the attachment owner and we'll have fixed this problem. If I get any spare time I'll try my best to look at this but Its doubtful with my work load tbh. |
#310
|
||||
|
||||
Yes, I agree sending a PM with attachment to oneself works fine.
As to the dirty fix or any other I am afraid its likely to be out of my league so I am hoping you or someone can resolve the matter. I will however play and you never know and I take on board your thoughts. I currently have the attachments stored in the database if these were transfered to be stored in a folder with relevant permissions might that help? thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|