![]() |
Private Attachments! (Attachments in Private Messages)
*drums* :D
This hack is now out of beta! Safe to use. :) My latest and one of the more extensive hacks -- Private Attachments! This huge (I ain't kidding, it's pretty big) hack will allow your members to send private messages with attachments in them, so they don't need to use e-mail for that. Since this hack requires a large number of edits, this is how I recommend installing it: (a) Run the queries. (b) Edit all the files, offline. (c) When you are done with (b) upload all the files at once. (d) Perform the template edits. If you do all actions in this order your users shouldn't notice you are installing the hack. All feature requests (except for limiting this for usergroups -- if you want that do it yourself it's not hard but I'm tired of adding permissions to the dreaded usergroup.php) are welcome before this goes out of beta. :) As always, have fun. |
GEEZE!! its 3am..
when I saw all that code, i passed out for 4 mins. LOL!! btw.. this is great chen.. I'll install tomorrow.. |
WOW! Awsome job! thank you
|
I'm going to install it now! :D
|
I just finished installing it.... heres the first problem for the hack... Ok I can send the file perfectly, but when the user that recieves the pm, he can do everything except open the file. here what happens.....
|
Xelation, I forgot to add something. Do this change:
Code:
+-------------------------------------------------------------------------------------------------+ |
Works like a charm! Great Hack! :D :up: ...... do you plan to add this to vb.org? because this would be a real time saver.
|
I see you already did, Great!
|
It's running here for almost a day... ;)
|
thanks firefly.. i guess my start idea on the requests helped you ;) good job, as usual.
|
firefly, edit your .txt file and replace this code:
PHP Code:
PHP Code:
|
and i want to see also that is comming from me the idea!!!!.. hehe
|
The idea didn't come from you, people have been screaming for this forever.
|
true.... :p
|
will this work in 2.21?
|
Yes but you might have a problem with attachment.php as it changed since then.
|
Will this work with PPN's attachments as files hack?
|
great hack w00ting out loud
|
lol
Can anyone please test the hack a bit more and make sure attachment.php is ok, so I can release this as a full hack? Thanks. :) |
I've done about 10 tests with mine, works like a charm!
|
I know it shouldn't the right most path, but do you think it'll aware of the PPN's Attachment as files WONDERFUL hack ?
;) I didn't try to install this yet, but the other is too important to my board... so ... Thanks forever, Chen |
Great idea.. I'll install it later tonight.
|
Thanks Xelation -- will release it tonight. :)
Jawelin, it should work except for probably some problems with attachment.php. You'll need to do changes there on your own to make sure you don't ruin anything. |
Quote:
I'll pay attention when installing and let you know. A question: these attachments are normally stored into DB (or outside, on the server dir with the above hack) and made available the same way those in post are, aren't they ? This way, putting on the url row the exact attachment id I could download it even outside the PM, is it right ? Thanks a lot for your hardest hack, as you said... :supwink: Bye |
No, attachment.php is edited so you can't access private attachments by just specifying their attachmentid.
|
Firefly, heavily edited attachment.php here, I had to be careful - I was, and this works perfectly on my test board (which is exactly the same as my main board). :up:
|
The opposite question: if I wouldn't edit attachment.php almost at all, the same file could be accessible via a direct written url, but should your hack get working the same ?
;) Note: I have a lot of hacks installed on my attachment.php, so I'm considering would install this one getting some compromise ... :p |
Jawelin -- if you don't edit attachment.php your users will just get an invalid attachment error.
|
Ok. I'll try to make a mixup... ;)
Thnx |
Great hack.
I was one of the people many months ago reguesting this hack as well. hehehe :) I would like to know how to limit usergroups so only users in the group can attach files, if anyone knows how please post as I could really use this. I am wondering if anyone knows how to make this hack so that it shows up like firefly's attachment viewer. Also, I am wondering about PPN's read others PM. Just wondering if the admin would be able to view these attachments. Thanks. |
If I installed the hack from pnp, which makes all the attachment as files, will the private attachments be files too, or they will be in the database?
|
See Jawelin's posts, kidney.
|
I guess I should read more before posting questions, sorry.
|
Hope this makes up for the stupid question I asked a couple of post earlier....
This modification will allow to have private attachment to work with file attachment hack by PNP. PS you must have PNPs' hack before doing this. https://vborg.vbsupport.ru/showthrea...threadid=35193 Follow the instruction as provided by the master hacker Firefly ;) But instead in attachment.php look for: Quote:
Quote:
Quote:
Quote:
Now if someone can help me figure out how to have the file removed with the deletion on the private message that be nice... Keep in mind that I'm only beginner so there might be oversight, just let me know! :nervous: |
bah, n/m...fixed it....
|
Awesome hack! Installed this for 2.2.5 had to improvise a template for it to work but other than that it went smoothly.
|
Hmm. I get errors when I try to run the mySQL queries.
Quote:
|
You only ran part of the query, the full query is:
[codel]ALTER TABLE attachment ADD private TINYINT(1) UNSIGNED DEFAULT "0" NOT NULL AFTER visible;[/code] |
Okay got it. I was trying to run both queries as one. :/
|
Anyone know how to get this to work with attachment viewer?
|
All times are GMT. The time now is 04:47 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:
|