Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Private Messages Attachments Details »»
Private Messages Attachments
Version: 1.53, by Stoebi Stoebi is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 3.6.1 Rating:
Released: 09-19-2006 Last Update: 09-22-2006 Installs: 253
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

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
  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[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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #252  
Old 02-08-2009, 02:31 AM
goshalim goshalim is offline
 
Join Date: Oct 2007
Posts: 470
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #253  
Old 02-28-2009, 10:12 AM
Phantasmagoric Phantasmagoric is offline
 
Join Date: Feb 2009
Location: United Kingdom
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just exactly what I was looking for, works perfectly on 3.8.1, thank you for this.
Nom for MOTM
Reply With Quote
  #254  
Old 05-06-2009, 09:18 PM
ex0thermic ex0thermic is offline
 
Join Date: Jun 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anybody tried this with 3.8.2?
Reply With Quote
  #255  
Old 05-06-2009, 09:23 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working fine on 3.8.2.
Reply With Quote
  #256  
Old 06-13-2009, 03:26 AM
sparklywater sparklywater is offline
 
Join Date: Jun 2008
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #257  
Old 06-19-2009, 08:16 PM
Saviour's Avatar
Saviour Saviour is offline
 
Join Date: Apr 2007
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #258  
Old 08-17-2009, 07:18 PM
MikeTrin MikeTrin is offline
 
Join Date: Jun 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Originally Posted by Stoebi View Post
Here is the fix (official update comes later):
Plugin -> private attachments - initialize pm attachments if needed (Hook global_start)

Change Line 1
Code:
if (THIS_SCRIPT == 'newattachment' AND $_REQUEST['type'] == 'pm')
to
Code:
if (THIS_SCRIPT == 'newattachment' AND $_REQUEST['type'] == 'pm' AND !$threadid)

Regards, Stoebi
Reply With Quote
  #259  
Old 08-22-2009, 12:50 PM
the_ace the_ace is offline
 
Join Date: Jul 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed this mod n VB 3.8.3 and its working fine.

Thanks for this mod.
Reply With Quote
  #260  
Old 09-13-2009, 06:23 PM
tlwwolfseye's Avatar
tlwwolfseye tlwwolfseye is offline
 
Join Date: Dec 2008
Location: Germany
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ?
Reply With Quote
  #261  
Old 09-25-2009, 11:52 AM
Gostemilov Gostemilov is offline
 
Join Date: Feb 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06630 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete