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
1. private attachments - can view the attachment attachment_start
2. private attachments - get & show attachments postbit_display_start
3. private attachments - get posthash and allow attachments private_newpm_start
4. private attachments - update attachment info private_insertpm_complete
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" />
Afterwards, add
Code:
<input type="hidden" name="type" value="pm" />
Save
Open the template pm_messagelistbit:
Search for
Code:
<span style="float:$stylevar[align=right]" class="smallfont">$pm[senddate]</span>
Afterwards, add
Code:
<if condition="$pm['attach']"><img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$pm[attach]">$vbphrase[x_attachments]</phrase>" /></if>
Save
Open the template pm_newpm:
Search for
Code:
<input type="hidden" name="s" value="$session[sessionhash]" />
Afterwards, add
Code:
<input type="hidden" name="posthash" value="$posthash" />
<input type="hidden" name="poststarttime" value="$poststarttime" />
Search for
Code:
<fieldset class="fieldset">
<legend>$vbphrase[miscellaneous_options]</legend>
Replace with
Code:
$attachmentoption
<fieldset class="fieldset">
<legend>$vbphrase[miscellaneous_options]</legend>
Save
!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
NOTE: This is for 3.6.1. Reports vary as to how well it works for 3.7.x, most say yes, some say no.