The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Private Attachments! (Attachments in Private Messages) Details »» | |||||||||||||||||||||||||||
Private Attachments! (Attachments in Private Messages)
Developer Last Online: Nov 2024
*drums*
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. Show Your Support
|
Comments |
#92
|
|||
|
|||
*bump*
|
#93
|
|||
|
|||
Fixed by turning Reg_Globals On
in php.. Is there any way around this? |
#94
|
||||
|
||||
seems to be working fine on Vbulletin 2.30 release candidate 3
|
#95
|
|||
|
|||
Quote:
|
#96
|
|||
|
|||
Can anyone confirm that this hack is working 100% correctly for vb 2.3.0 with reg_glbals OFF ?
|
#97
|
|||
|
|||
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 |
#98
|
|||
|
|||
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 |
#99
|
|||
|
|||
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 ... |
#100
|
|||
|
|||
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> |
#101
|
|||
|
|||
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=""> 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> Then found the place with: Code:
if ($message['attachmentid'] != 0) { $message['attachmentextension'] = strtolower(getextension($message['filename'])); eval("\$message[attachment] = \"".gettemplate('privmsg_attachment')."\";"); } else { $message['attachment'] = ''; } Code:
if ($message['attachmentid'] != 0) { $message['attachmentextension'] = strtolower(getextension($message['filename'])); if (($viewattachedimages) and ($bbuserinfo[showimages]) ) { eval("\$message[attachment] = \"".gettemplate('privmsg_attachmentimage')."\";"); } else { eval("\$message[attachment] = \"".gettemplate('privmsg_attachment')."\";"); } } else { $message['attachment'] = ''; } |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|