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
  #12  
Old 09-20-2006, 08:00 PM
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

* clicks install *

awesome!! now if someone can get the super pm feature to work. maybe you can take a look at it since you know how the PM system works?
https://vborg.vbsupport.ru/showthread.php?t=100314
Reply With Quote
  #13  
Old 09-20-2006, 08:24 PM
dknelson dknelson is offline
 
Join Date: Oct 2004
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK....I've installed this and did all the template edits. I'm running 3.6.1.

I got no errors on the install but I cannot see any place to add an attachment in the PM.

Usergroup settings are set to "YES". I'm not sure where you are talking about "user manager".

Don
Reply With Quote
  #14  
Old 09-20-2006, 09:40 PM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed 3.6 to the tee i see no opition to add file in the PM any s uggestions?
Thxs
Reply With Quote
  #15  
Old 09-20-2006, 09:43 PM
Kuimera Kuimera is offline
 
Join Date: Aug 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dknelson
OK....I've installed this and did all the template edits. I'm running 3.6.1.

I got now errors on the install but I cannot see any place to add an attachment in the PM.

Usergroup settings are set to "YES". I'm not sure where you are talking about "user manager".

Don
Same thing here, no errorsand the premisions are on but no menu to add the attachments :S im also running 3.6.1
Reply With Quote
  #16  
Old 09-20-2006, 09:43 PM
dknelson dknelson is offline
 
Join Date: Oct 2004
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea...it has really frustrated me. I've checked the template edits 4 times, re-uploaded the files.....beats me.
Reply With Quote
  #17  
Old 09-20-2006, 09:46 PM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same here mates??? 4 times andstill no add attachments???Any clue Im going back in!
Reply With Quote
  #18  
Old 09-20-2006, 09:50 PM
Kuimera Kuimera is offline
 
Join Date: Aug 2005
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dknelson
I'm not sure where you are talking about "user manager".
This means that you have usergroup and individual user premissions, you will find them when editing a user @ the bottom.

I check them too and they are on... but it still dosent show the menu to add the attachments in the PM :S
Reply With Quote
  #19  
Old 09-20-2006, 09:54 PM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any support for this hack or are we on our own?
Reply With Quote
  #20  
Old 09-20-2006, 09:56 PM
dknelson dknelson is offline
 
Join Date: Oct 2004
Posts: 412
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kuimera
This means that you have usergroup and individual user premissions, you will find them when editing a user @ the bottom.

I check them too and they are on... but it still dosent show the menu to add the attachments in the PM :S

OK...I found where you mean. That doesn't make sense I don't think...well...since they are all "yes" at default, I guess it does. If somebody abuses it I guess you can turn it off for that individual.

So....still doesn't solve this problem huh.
Reply With Quote
  #21  
Old 09-20-2006, 10:03 PM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well she dont work mate?
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 09:36 AM.


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.04540 seconds
  • Memory Usage 2,324KB
  • 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
  • (8)bbcode_code
  • (3)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
  • (3)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