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 |
#102
|
||||
|
||||
Quote:
Don't know what it could be.. *had to remove this as well |
#103
|
|||
|
|||
Quote:
Plugin -> private attachments - initialize pm attachments if needed (Hook global_start) Change Line 1 Code:
if (THIS_SCRIPT == 'newattachment' AND $_REQUEST['type'] == 'pm') Code:
if (THIS_SCRIPT == 'newattachment' AND $_REQUEST['type'] == 'pm' AND !$threadid) Regards, Stoebi |
#104
|
||||
|
||||
Thanx Will try it out
|
#105
|
|||
|
|||
Guys try this simple thing before you all get upset and say it doesnt work.
Go to your usergroup manager and set both options for PM attachments to no save and go back and set it to yes again and save. After that it should work. I think you only need to do it for one usergroup to update all but you might want to do all to be on the safe side. |
#106
|
||||
|
||||
Quote:
Running vB 3.6.2 |
#107
|
|||
|
|||
Just installed this and it works perfectly in 3.6.2 exactly as described. However, the last few sentences of the instructions were a bit cryptic, but I was able to get to the right place after thinking about it for a minute or so.
Thanks for this fantastic bit of programming wizardy. We have a small private forum where sometimes it is advantageous to have this capability and now we got it. Do you have a PayPal account I can drop a few $$ into? |
#108
|
|||
|
|||
Quote:
thank you very much for your feedback. Sorry for the cryptic part, i need more english training. PayPal? Yes, i have. Thank you very much. schulz(at)gmx(dot)com Regards, Stoebi |
#109
|
||||
|
||||
Thanks! Very good!
|
#110
|
|||
|
|||
I just installed this, and for what it's worth, I was having the same problem initially -- no box to add attachments, even after double- and triple-checking the installation.
I then posted a new thread with an attachment, just to make sure the basic functionality was still intact, and after seeing that work, the box suddenly appeared when sending a PM. So it's working fine now. I don't know enough about coding php to say there's a cause-and-effect relationship between posting the thread attachment and the subsequent appearance of the PM hack, but I'm just sayin'.... This is in 3.6.4, btw. |
#111
|
|||
|
|||
i just installed this on 3.6.0 and no problems so far.
i've been waiting for this hack FOR YEARS. thank you very much! first post here at vbulletin.org! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|