The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Private Messages Attachments Details »» | |||||||||||||||||||||||||
Attachments in private messages ################################################## ################# # Original by Rigel Kentaurus (http://www.cemzoo.com) # Fixed by BluPhoenix for vb3.5.0 RC 2 # # Fixed and port to vBulletin 3.6.1 by Stoebi # # For distribution in vbhacks-germany and vbulletin.org at least # # # Thank you very much to Rigel and BluePhoenix # # Lot of thanks to KirbyDE for his help, hints and tips. ################################################## ################# With this hack you can send attachments inside private messages. Sometimes you may want to send an image or file to another user, but you just don't want to disclose your email or make the file public, with this hack you can attach it to the private message. 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.vbhacks-germany.com and www.vbulletin.org at least, please don't pm me asking for permission. Some portions of the code are (c) Jelsoft Enterprises Ltd. ################################################## ################# Note! For users they have an earlier version of private attachment installed. Before import, delete the following plugins and cron entries: AdminCP -> Plugins & Produkte -> Plugin Manager
AdminCP -> Scheduled Tasks -> Scheduled Task Manager: Search for Private Attachments Cleanup Delete Private Attachments Cleanup Installation instructions: Extract the archive you've downloaded. (FTP) Copy file privateattachments.php from includes/cron to your forum -> /includes/cron folder (FTP) Copy file bitfield_pma.xml from includes/xml to your forum -> /includes/xml folder 1. AdminCP -> Plugins & Products Click on Manage Products and on the right the [Add/Import Product] link. We are now here: Import Product -> EITHER upload the XML file from your computer. Search your file product_pma_160906.xml and click the Import button. Ready. 2. Import english phrases AdminCP -> Languages & Phrases Click on Download / Upload Languages and on the right check: Import Language XML File -> EITHER upload the XML file from your computer. Set option Overwrite Language to English (US) Serch your file phrases_en_pma_160906.xml and click the Import button. Ready. 3. 3 template edits: AdminCP -> Styles & Templates Click on Style Manager and on the right the "Expand Templates" button. Next screen on the right click the "All Template Groups" button. !Edits necessary for all installed Styles! Open the template newattachment: Search for Code:
<input type="hidden" name="posthash" value="$posthash" /> Code:
<input type="hidden" name="type" value="pm" /> Open the template pm_messagelistbit: Search for Code:
<span style="float:$stylevar[right]" class="smallfont">$pm[senddate]</span> Code:
<if condition="$pm['attach']"><img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$pm[attach]">$vbphrase[x_attachments]</phrase>" /></if> Open the template pm_newpm: Search for Code:
<input type="hidden" name="s" value="$session[sessionhash]" /> Code:
<input type="hidden" name="posthash" value="$posthash" /> <input type="hidden" name="poststarttime" value="$poststarttime" /> Code:
<fieldset class="fieldset"> <legend>$vbphrase[miscellaneous_options]</legend> Code:
$attachmentoption <fieldset class="fieldset"> <legend>$vbphrase[miscellaneous_options]</legend> !Edits necessary for all installed Styles! Nothing more to do. You'll find 2 options in Usergroup Manager and User Manager: Check heading PM Attachments Permissions Can Download PM Attachments -> Yes/No Can Upload PM Attachments -> Yes/No Update - 23-09-2006 * Fix with new registered user and welcome pm (Thx to Redlabour) * Attachment (AJAX) now included in newpost_attachment template, see image, no edits necessary. Import and overwrite the new 1.53 file if you 1.52 installed before Regards, Stoebi Show Your Support
|
Comments |
#252
|
|||
|
|||
Hi , I need some help.
I have install and done everything for the Private Messages Attachments but its not working.change all codes but nothing. Iam using 3.7.3 Please someone help me |
#253
|
|||
|
|||
Just exactly what I was looking for, works perfectly on 3.8.1, thank you for this.
Nom for MOTM |
#254
|
|||
|
|||
Has anybody tried this with 3.8.2?
|
#255
|
||||
|
||||
Installed and working fine on 3.8.2.
|
#256
|
|||
|
|||
I'd be grateful if anyone can help me get this working with the Popup Private Messaging mod. I've managed to use the $attachmentoption variable to show the 'Manage Attachments' button in the popup-window, but the attached files don't show up in the sent PMs (nor does the paperclip show up next to the message in the PM inbox). Everything else works fine when sending attachmentsin PMs through the standard method, they only don't work when using the Popup PM window. If anyone has managed to get this working, please let us know.
|
#257
|
||||
|
||||
Have found an issue with this mod...
I'm running vb 3.8.3. It would seem, with this mod enabled, it causes an issue for those who want to edit their post at a later time and add an attachment...if this usergroup has this permission. I tested it on a live board as a registered user. I posted in a thread...immediately after posting, I went to that post to edit it and add an attachment. I browsed for the attachment, then clicked the Upload button and immediately got a permissions error. Disabling this mod corrected the issue. Uninstalled...unless someone has a fix for this for those who run vbulletin 3.8.3. I'd also suggest, to those who are running this mod with a forum other than the version it was intended for, make sure they are not experiencing the same issue I was. If there's a fix for this...I haven't seen it. Just giving you my experience wit this mod. Update... Sorry...missed this post: https://vborg.vbsupport.ru/showpost....&postcount=102 Fixed! Woo-hoo! |
#258
|
|||
|
|||
I don't know about most of you but I couldn't figure out how to make this fix. Here's what you do.
From the admincp go to Plugins & Products, open up the Plugin Manager. Scroll down and find the Product PM Attachments Click on: private attachments - get posthash and allow attachments do what it says to do in line 1 Quote:
|
#259
|
|||
|
|||
Installed this mod n VB 3.8.3 and its working fine.
Thanks for this mod. |
#260
|
||||
|
||||
I just installed this on my 3.8.4 but it won't show up at all. I did all the template edits, i double checked. The Product is installed and so, just like the instruction say. But it just doesn't show up when I want to write someone a PM. Nothing with Attachments at all. What can that be ?
|
#261
|
|||
|
|||
The same problem. I can upload attach and I can see it in outgoing messages:
The link for attach downloading is broken but attach player is working fine. User can receive nothing: |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|