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
  #172  
Old 12-19-2007, 10:53 PM
echo2kk5 echo2kk5 is offline
 
Join Date: Dec 2004
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 3.6.8 PL2 without a hitch! very nice and just what I needed. :up:
Reply With Quote
  #173  
Old 12-21-2007, 01:14 AM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post
As soon as I installed this mod, my users complained that they were no longer able to edit their attachments in threads. They were presented with a no permissions page.
Confirmed this bug on 3.6.8 PL2.
Reply With Quote
  #174  
Old 12-21-2007, 01:33 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post
As soon as I installed this mod, my users complained that they were no longer able to edit their attachments in threads. They were presented with a no permissions page.
I had a similar problem caused by vbcredits. Could it be that you also have that installed?
Reply With Quote
  #175  
Old 01-01-2008, 09:08 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will it work with 3.7 or this Feature included?
Reply With Quote
  #176  
Old 01-15-2008, 06:50 PM
ScottMcPollux ScottMcPollux is offline
 
Join Date: Oct 2005
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedGTiVR6 View Post
I just noticed a bug with this mod....granted I didn't get it working 100% but I don't think it matters.

As soon as I installed this mod, my users complained that they were no longer able to edit their attachments in threads. They were presented with a no permissions page.

I uninstalled the mod and now the users can edit their attachments.

fyi.
Quote:
Originally Posted by zetetic View Post
Confirmed this bug on 3.6.8 PL2.
+1

same here. editing or deleting regular attachments is not working for unprivileged users on 3.6.8pl2.

Is there a fix?
Reply With Quote
  #177  
Old 01-19-2008, 04:21 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The reason is is that when installed, for some reason it maximizes the attachment storage capacity.

I have tried to figure this one out and have yet to find the solution but I keep trying. In the meantime, any other of you programmers want to give this one a go. It has and will continue to be a very good MOD when it is working properly.
Reply With Quote
  #178  
Old 01-29-2008, 05:03 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will it work with 3.7 ? Hardly need this ...
Reply With Quote
  #179  
Old 02-01-2008, 12:18 AM
DssCrazy DssCrazy is offline
 
Join Date: Nov 2007
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PERFECT mod, did not work of the bat for some reason i was getting, no icon to upload.

So here is what i did went to usergroups and even know it says yes off the bat i click no for both clicked update then click yes for both clicked updat went to my pm and it was their

Great hack buddy works GREAT
Reply With Quote
  #180  
Old 02-09-2008, 04:57 PM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour View Post
Will it work with 3.7 ? Hardly need this ...
Andr?,
Peter's (Stoebi) Hacks works (for me) since his release for vB Versions as below...
  • 3.6.1
  • 3.6.5
  • 3.6.8
  • 3.6.8 PL1
  • 3.6.8 PL2
  • 3.7 Beta 1 - Beta 4
without any problems!!! I really have never had a problem. That Hack runs damn strong :up:
So I decided to nominate it for MOTM! Definately well deserved!!!
Reply With Quote
  #181  
Old 02-09-2008, 05:18 PM
zendiver zendiver is offline
 
Join Date: Sep 2004
Location: Houston, TX
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are saying that you DO NOT have any conflicts with uploading attachments? Seems everyone else is having the same issue: Attachments are maxed out....you disable this hack, and everything works again....this happens a fresh install as well as with other hacks.
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:41 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.12307 seconds
  • Memory Usage 2,329KB
  • 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
  • (5)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
  • (2)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