vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Private Messages Enhancements - Private Messages Attachments (https://vborg.vbsupport.ru/showthread.php?t=127113)

Stoebi 09-19-2006 10:00 PM

Private Messages Attachments
 
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

Spiceworld 09-20-2006 03:33 PM

Cheers for this - installed

Richard

Lionel 09-20-2006 03:57 PM

will this work for 3.60?

lmurawski 09-20-2006 04:08 PM

This is the update for v3.6

bashy 09-20-2006 04:24 PM

Hi m8, dont work for me, I see no options to add attachment, permissions were already set to yet as default, Also i have rebuilt the bitfields in case, I have done the dits, although this 1

Code:

<span style="float:$stylevar[right]" class="smallfont">$pm[senddate]</span>
was not in there i could only find this
Code:

<span style="float:$stylevar[right]" class="time" style="font-size:9px;">$pm[senddate] @ $pm[sendtime]</span>
it also says when creating a new pm "Send New Private Message" twice now, see image please

So i added the code after that.... any ideas what might be wrong?

Stoebi 09-20-2006 04:36 PM

Hi bashy,

the style you use, is it for free? Can i download this? Will install and look into it.


Regards, Stoebi

Quote:

Originally Posted by bashy
Hi m8, dont work for me, I see no options to add attachment, permissions were already set to yet as default, Also i have rebuilt the bitfields in case, I have done the dits, although this 1

Code:

<span style="float:$stylevar[right]" class="smallfont">$pm[senddate]</span>
was not in there i could only find this
Code:

<span style="float:$stylevar[right]" class="time" style="font-size:9px;">$pm[senddate] @ $pm[sendtime]</span>
it also says when creating a new pm "Send New Private Message" twice now, see image please

So i added the code after that.... any ideas what might be wrong?


bashy 09-20-2006 05:03 PM

Hi m8, yeah its in the styles section here m8 its the MNS 7 :)

Stoebi 09-20-2006 05:23 PM

Quote:

Originally Posted by bashy
Hi m8, yeah its in the styles section here m8 its the MNS 7 :)

For 3.5.4 only. Hm, okay, will see what i can do for you.


Regards, Stoebi

bashy 09-20-2006 05:41 PM

Ok Stoebi, thanks a lot m8

Gripemaster 09-20-2006 07:20 PM

Installed, followed instructions to the letter, no errors or problems. Tested by sending a PM with attachment to a regular user account from my admin account. Attachment does not show, only placeholder box with red X.

Tried to send a PM from a regular user account to my admin account and got the same results. (See Screenshot)

HOWEVER...the attachments show up in the Sent Items box PM's as having been sent. They just don't show on the received PM

Suggestions?

KevNJ 09-20-2006 08:00 PM

* 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

dknelson 09-20-2006 08:24 PM

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

oberheimhaven 09-20-2006 09:40 PM

I installed 3.6 to the tee i see no opition to add file in the PM any s uggestions?
Thxs

Kuimera 09-20-2006 09:43 PM

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

dknelson 09-20-2006 09:43 PM

Yea...it has really frustrated me. I've checked the template edits 4 times, re-uploaded the files.....beats me.

oberheimhaven 09-20-2006 09:46 PM

same here mates??? 4 times andstill no add attachments???Any clue Im going back in!

Kuimera 09-20-2006 09:50 PM

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

oberheimhaven 09-20-2006 09:54 PM

Any support for this hack or are we on our own?

dknelson 09-20-2006 09:56 PM

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. :)

oberheimhaven 09-20-2006 10:03 PM

Well she dont work mate?

dknelson 09-20-2006 10:04 PM

Yea...I've pretty much given up on it. Haven't uninstalled but probably will.

oberheimhaven 09-20-2006 10:10 PM

Quote:

Originally Posted by dknelson
Yea...I've pretty much given up on it. Haven't uninstalled but probably will.

Well this stinks why would you post a hack that doesnt work is this a german hack
click Uninstalled!!!

Kuimera 09-20-2006 11:59 PM

Same... /me clicks uninstall....

hotwheels 09-21-2006 12:13 AM

you are awesome Stoebi, worked like a charm............woohoo...........yippie

I have attached to screen image's showing that it work's just the way he explained it in his instructions.

webwench 09-21-2006 01:25 AM

Quote:

Originally Posted by hotwheels
you are awesome Stoebi, worked like a charm............woohoo...........yippie









I have attached to screen image's showing that it work's just the way he explained it in his instructions.

Nice you got it working, but could you post a screenshot of what to click to add an attachment? I've done it several times, and can't make it appear.

Paul M 09-21-2006 03:05 AM

Quote:

Originally Posted by oberheimhaven
Any support for this hack or are we on our own?

Quote:

Originally Posted by oberheimhaven
Well this stinks why would you post a hack that doesnt work is this a german hack
click Uninstalled!!!

I think some people need to learn a little patience and be a little less rude. :)

Modification Authors do not spend 24 hours a day online, you might want to remember that Eurpoe is in a different timezone to the USA as well. Your early evening posts are almost midnight and beyond.

Stoebi 09-21-2006 03:16 AM

Hi,

i forgot to include the variable $attachmentoption in the template new_pm.

Sorry :(

Documentation in the first post (archive also) updated.


Regards, Stoebi


Edit:
Thank you Paul M :)

Kuimera 09-21-2006 03:28 AM

lol Stoebi, np, for the past 3 hours I was calling me a dumb ass trying to figure out what I was doing wrong never in my life I edited the same hack over and over ! :P

Thanks for your hack, is working fine now.

[high] * Kuimera clicks install again :)[/high]

Absolution 09-21-2006 03:40 AM

Thanks, Stoebi, just noticed that you posted (was inbetween since the last edit and I was like 'did i do something wrong!?).

This ends the confusion!!

Thanks again

Gripemaster 09-21-2006 04:13 AM

Quote:

Originally Posted by Gripemaster
Installed, followed instructions to the letter, no errors or problems. Tested by sending a PM with attachment to a regular user account from my admin account. Attachment does not show, only placeholder box with red X.

Tried to send a PM from a regular user account to my admin account and got the same results. (See Screenshot)

HOWEVER...the attachments show up in the Sent Items box PM's as having been sent. They just don't show on the received PM

Suggestions?


Still not working. :)

Stoebi 09-21-2006 04:19 AM

Quote:

Originally Posted by Gripemaster
Still not working. :)

Hi,

you need to edit all your installed and used styles.
What style do you use? Is it for free? If yes, where can i dl your style for testing purpose. Which vBulletin version?

I've not tested this version with 3.5.4. No warranty, sorry.


Regards, Stoebi

redlabour 09-21-2006 06:02 AM

Quote:

Originally Posted by Gripemaster
Installed, followed instructions to the letter, no errors or problems. Tested by sending a PM with attachment to a regular user account from my admin account. Attachment does not show, only placeholder box with red X.

Tried to send a PM from a regular user account to my admin account and got the same results. (See Screenshot)

HOWEVER...the attachments show up in the Sent Items box PM's as having been sent. They just don't show on the received PM

Suggestions?

Same here ! Does not work !

Stoebi 09-21-2006 06:15 AM

Quote:

Originally Posted by redlabour
Same here ! Does not work !

https://vborg.vbsupport.ru/showpost....1&postcount=31



In german (deutsch):
Mit solchen Aussagen kann ich absolut nichts anfangen.
Auf vbhacks-germany gibt es einen entsprechenden Thread, dann k?nnten wir dort das Problem besser angehen. Mein Englisch ist leider schlecht bis grottenhaft. Vielleicht hilfts dann ja auch den anderen.


Regards, Stoebi

redlabour 09-21-2006 06:20 AM

German Short Description:

PM wird mit Anhang versandt. In der angekommenen PM ist dennoch kein Anhang. Ansonsten keine Fehlermeldung. Das Problem scheinen alle zu haben. Ich nutze den DefaultStyle von vBulletin.

Stoebi 09-21-2006 07:27 AM

Quote:

Originally Posted by redlabour
German Short Description:

PM wird mit Anhang versandt. In der angekommenen PM ist dennoch kein Anhang. Ansonsten keine Fehlermeldung. Das Problem scheinen alle zu haben. Ich nutze den DefaultStyle von vBulletin.

Sorry,

i can't reproduce this -> http://spec-f.de/pma/pma.html (Note! I'll delete the contents from this link in 3 days).


Regards, Stoebi

TTG 09-21-2006 08:01 AM

Worked straight out of the box with no problems .. thanks Stoebi

Clicked install

bashy 09-21-2006 08:29 AM

I have now added the edit, I now see the manage attachments, it lets me add 1, yet when message sent there is no attachment :(

I have the Super PM installed yet i have disabled the pligun at present for that hack!!!

Quote:

Originally Posted by Stoebi
Hi,

i forgot to include the variable $attachmentoption in the template new_pm.

Sorry :(

Documentation in the first post (archive also) updated.


Regards, Stoebi


Edit:
Thank you Paul M :)


Snake 09-21-2006 08:34 AM

Lovely! I was looking for this and now here it is. Thanks! :D

Stoebi 09-21-2006 09:41 AM

Quote:

Originally Posted by bashy
I have now added the edit, I now see the manage attachments, it lets me add 1, yet when message sent there is no attachment :(

I have the Super PM installed yet i have disabled the pligun at present for that hack!!!

It works fantastic with your style.

@all
Take a look at this demonstration -> http://spec-f.de/pma2/pma2.html <- please.
(Note! I'll delete the contents from this link in 3 days).


Regards, Stoebi

bashy 09-21-2006 10:14 AM

Yep seen it all, I dont know what can be stopping it from working at my end, I have disabled to Super PM hack.......Oh well, there must be sommat else conflicting.....I got too many hacks to try to figure this 1 out lol

Thanks anyway!!


All times are GMT. The time now is 04:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02050 seconds
  • Memory Usage 1,851KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_code_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete