Advertisement:

Author Topic: PM Attachments  (Read 117380 times)

Offline stylusss

  • Jr. Member
  • **
  • Posts: 350
Re: PM Attachments
« Reply #220 on: April 18, 2014, 04:43:35 PM »
Is it possible to keep the file when it's uploaded?
For top-notch server quality and expertise, visit CoreISP.net

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #221 on: April 20, 2014, 04:06:52 AM »
Is it possible to keep the file when it's uploaded?

I'm not sure what you mean by that.  The file never gets deleted unless you purge them in the Attachment Settings in the SMF Admin.  Please be more specific as to what you mean when you say keep the file...

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,747
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: PM Attachments
« Reply #222 on: April 20, 2014, 01:06:22 PM »
When someone attaches a file, does it get stored on the server?

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #223 on: April 22, 2014, 02:52:32 AM »
Ofcourse... how else would it be able to be downloaded?

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,747
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: PM Attachments
« Reply #224 on: April 25, 2014, 12:41:56 PM »
Ofcourse... how else would it be able to be downloaded?

Makes sense... Thanks.

Offline kamili34

  • Jr. Member
  • **
  • Posts: 232
  • Gender: Male
  • noob
    • pilarki.org
Re: PM Attachments
« Reply #225 on: May 03, 2014, 01:44:03 PM »
Will it works on smf 2.0.7? I have some errors during the installing it.

w5hro

  • Guest
Re: PM Attachments
« Reply #226 on: May 13, 2014, 12:29:51 PM »
Will it works on smf 2.0.7? I have some errors during the installing it.

Yes, can we get an update for SMF v2.0.7? This is a necessary mod.

Thanks...

Offline tieskedh

  • Newbie
  • *
  • Posts: 1
Re: PM Attachments
« Reply #227 on: May 28, 2014, 05:48:46 PM »
That would indeed be very nice!!!

Offline live627

  • Development Contributor
  • SMF Hero
  • *
  • Posts: 5,620
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: PM Attachments
« Reply #228 on: May 29, 2014, 12:21:55 AM »
Try to emulate 2.0 RC4..
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein

Offline kamili34

  • Jr. Member
  • **
  • Posts: 232
  • Gender: Male
  • noob
    • pilarki.org
Re: PM Attachments
« Reply #229 on: June 22, 2014, 10:49:06 AM »
It emulate but when installing this mod many errors occurred. :/

Offline RSI

  • Jr. Member
  • **
  • Posts: 123
Re: PM Attachments
« Reply #230 on: June 22, 2014, 11:15:18 AM »
You can install the mod, but you have to do parts of it manually.

1. Run the install to where it comes up and shows the errors, but don't execute it yet.

2. Make a back up of each of the files that show the install errors.

3. Manually edit those files (not the backed up ones).

4. Execute the install with the errors.

5. Upload the manually edited files to overwrite the ones the install tried to update.

6. If it doesn't work then just auto uninstall it.

That's basically it and what you have to do when many of these mods are not yet updated. Usually it's just something simple which requires editing some of the files manually.

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #231 on: June 26, 2014, 10:17:03 PM »
This mod has been updated to support SMF 2.0.7 and 2.0.8 as well.  ENJOY!  Thanks to GL700Wing for this update.

Offline Itchigotim

  • Semi-Newbie
  • *
  • Posts: 90
  • Gender: Male
    • Roguepinball: ¡¡ɟooɹ ǝɥʇ uo ǝʇıs ןןɐquıd ʇsǝq ǝɥʇ
Re: PM Attachments
« Reply #232 on: June 27, 2014, 02:39:57 AM »
Question: I'm running 1.6 under emulate an older version (I don't remember which one, RC4?). I have no issues at all. Should I upgrade? Does this add more options, or is it just compatible with the latest SMF? I have SMF 2.08 now on my site.

It's an excellent mod either way and I'm thankful to have it. I just don't want to break anything if I don't have to.
Roguepinball: ¡¡ɟooɹ ǝɥʇ uo ǝʇıs ןןɐquıd ʇsǝq ǝɥʇ


Offline GL700Wing

  • Full Member
  • ***
  • Posts: 460
  • Gender: Female
Re: PM Attachments
« Reply #233 on: June 27, 2014, 05:14:44 AM »
Question: I'm running 1.6 under emulate an older version (I don't remember which one, RC4?). I have no issues at all. Should I upgrade? Does this add more options, or is it just compatible with the latest SMF? I have SMF 2.08 now on my site.

It's an excellent mod either way and I'm thankful to have it. I just don't want to break anything if I don't have to.
This update only adds installer/uninstaller support for SMF versions 2.0.4 and later without the need to use emulation mode - it does not change the mod functionality in any way.

Also, and by default, uninstalling earlier releases will delete the existing 'pm_attachments' directory (and all the PM Attachments in it) and it may also delete all existing associated database data (don't ask me how I know this - thank goodness I make regular data and database backups).*

My recommendation is that you do not uninstall earlier releases unless you know how to backup and restore the existing directory (ie, the 'pm_attachments' directory in the default path of the forum) and the associated database data (ie, the 'pm_attachments' and 'pm_recipients' tables).

However, if you don't mind deleting the current PM Attachments directory and database data you could try removing the earlier release (you will more than likely have to manually edit some files to fully uninstall earlier releases - I also know this from experience!).

-----------------------------------------------------------------------
* I have changed the way the installer/uninstaller works so that this version will not automatically delete the attachments directory or database data.

Offline T3CHN0

  • Full Member
  • ***
  • Posts: 630
  • Gender: Male
  • knowledge is power
    • Tarago Pravia Estima
Re: PM Attachments
« Reply #234 on: June 27, 2014, 09:25:10 AM »
My recommendation is that you do not uninstall earlier releases unless you know how to backup and restore the existing directory

Can I suggest you add this quote to the MODS Description:

Not everyone will read the posts to know this and might accidentally uninstall the old one
thinking the new one is better and end up loosing all the old Attachment Files.

This is a very handy mode.
Cheers

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #235 on: June 27, 2014, 01:51:37 PM »
The versions of the mod did not change, so people should not expect anything different from this mod, but will do this later just to be politically correct I guess.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: PM Attachments
« Reply #236 on: July 10, 2014, 08:52:11 AM »
I've got a bug report for ya....  I've got a clean, fresh copy of SMF v2.0.8, and I've even redownloaded v2.0.8 again to make sure.  Version 1.6 of the PM Attachments mod won't install on this without throwing an error.  The 3rd operation on ./Themes/core/PersonalMessage.template.php is the problem....  Thought you might wanna know.

EDIT: Here is the operation that throws an error:
Code: (search) [Select]
<form action="', $scripturl, '?action=pm;sa=send2" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" class="flow_hidden" onsubmit="submitonce(this);smc_saveEntities(\'postmodify\', [\'subject\', \'message\']);">
<div>
Where is what it should be (at least in v2.0.8 ):
Code: [Select]
<form action="', $scripturl, '?action=pm;sa=send2" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);smc_saveEntities(\'postmodify\', [\'subject\', \'message\']);">
<div>
Thought this might help.....

EDIT2: I really don't know what the class="flow_hidden" does, but if you replace that in that file, it installs properly....
« Last Edit: July 10, 2014, 09:05:56 AM by dougiefresh »

Offline Itchigotim

  • Semi-Newbie
  • *
  • Posts: 90
  • Gender: Male
    • Roguepinball: ¡¡ɟooɹ ǝɥʇ uo ǝʇıs ןןɐquıd ʇsǝq ǝɥʇ
Re: PM Attachments
« Reply #237 on: July 11, 2014, 04:35:34 AM »
Thanks guys, I'll leave it as is. :)
Roguepinball: ¡¡ɟooɹ ǝɥʇ uo ǝʇıs ןןɐquıd ʇsǝq ǝɥʇ


Offline KungFuJoe

  • Semi-Newbie
  • *
  • Posts: 58
Re: PM Attachments
« Reply #238 on: September 23, 2014, 04:48:43 PM »
I have a mod that auto resizes images sent as attachments.  This helps immensely to keep file usage on my server low.  Do you know if such a mod will work with this mod or is there a way to integrate such a feature into it?

I like the idea of allowing users to send attachments, but as large as pics are these days, it will quickly fill up the storage quota and setting a low file size limit will just mean more questions/complaints for my userbase who are mostly non technical.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,859
  • Mod King
    • XPtsp.com Community
Re: PM Attachments
« Reply #239 on: September 24, 2014, 05:09:00 PM »
I have a mod that auto resizes images sent as attachments.  This helps immensely to keep file usage on my server low.  Do you know if such a mod will work with this mod or is there a way to integrate such a feature into it?
Well, considering the PM attachments code is implemented completely separate from the core attachments code, you would have to alter your mod to make those changes to the PM attachments code, which is found in Sources/PersonalMessage.php.  Naturally, if the code doesn't exist, you'll want the installer to ignore the changes.... like this:
Code: [Select]
<operation error="ignore">

As for whether it could be integrated, sure, anything can be integrated, given enough time and patience.....  Does the author want to?  That's a whole different question....

Frankly, the mod you mentioned sounds like a good idea!  Is it your mod?  If so, are you going to publish it?  If it isn't your mod, can you point me to the mod you mentioned?  Cause I'm interested....  Thanks!