Advertisement:

Author Topic: PM Attachments  (Read 101950 times)

Offline samurai-lupin

  • Full Member
  • ***
  • Posts: 521
Re: PM Attachments
« Reply #20 on: October 22, 2009, 11:24:03 AM »
Yes, I definately would buy it!

Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: PM Attachments
« Reply #21 on: November 09, 2009, 06:04:21 PM »
What is the reason for the scroll bar when there is no information that is shown in the post when adding an attachment?

I'm using this on a test site of RC2 and only have like 5 mods installed right now on the default (Curve) theme.

diceroller
member color link
google analytics
dynamic memberlist
pm attachements


Pic shown below...
-img removed-

Offline drhamza

  • Jr. Member
  • **
  • Posts: 358
Re: PM Attachments
« Reply #22 on: November 09, 2009, 10:33:36 PM »
hello there, i'm trying to re-install the mod after updating to rc2, and this is what i get:
Duplicate entry 'pmAttachmentSizeLimit' for key 1
File: /home2/jumssnet/public_html/forum/Packages/temp/pmAttachmentsInstallRC2.php
Line: 211

help me please, thanks in advance

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #23 on: November 10, 2009, 08:25:38 AM »
hello there, i'm trying to re-install the mod after updating to rc2, and this is what i get:
Duplicate entry 'pmAttachmentSizeLimit' for key 1
File: /home2/jumssnet/public_html/forum/Packages/temp/pmAttachmentsInstallRC2.php
Line: 211

help me please, thanks in advance

OK, this means that this row is already in your settings table pmAttachmentSizeLimit.  Did you uninstall PM Attachments before updating to RC2?  If not, you can just open up pmAttachmentsInstallRC2.php and remove the following:
Code: [Select]
// Insert the settings
$smcFunc['db_insert']('insert',
            '{db_prefix}settings',
            array(
'variable' => 'string', 'value' => 'string',
),
            array(
                   array('pmAttachmentSizeLimit', '150'),
                   array('attachmentPMLimit', '200'),
                   array('attachmentNumPerPMLimit', '2'),
                   array('pmAttachmentDirSizeLimit', '10240'),
   array('pmAttachmentUploadDir', $boarddir . '/pm_attachments'),
                   array('pmAttachmentExtensions', 'doc,gif,jpg,mpg,pdf,png,txt,zip'),
   array('pmAttachmentCheckExtensions', '0'),
                   array('pmAttachmentShowImages', '1'),
   array('pmAttachmentEnable', '1'),
                   array('pmAttachmentEncryptFilenames', '1'),
   array('pmAttachmentThumbnails', '1'),
                   array('pmAttachmentThumbWidth', '150'),
   array('pmAttachmentThumbHeight', '150'),
            ),
array('variable')
        );
SAVE and rezip it up and try again.

Offline drhamza

  • Jr. Member
  • **
  • Posts: 358
Re: PM Attachments
« Reply #24 on: November 10, 2009, 09:49:44 AM »
aha, it's working now :D
thanks a lot man

Offline drhamza

  • Jr. Member
  • **
  • Posts: 358
Re: PM Attachments
« Reply #25 on: November 10, 2009, 10:06:33 AM »
i'm getting this when i open the messages
Unknown column 'pa.pm_report' in 'field list'
File: /home2/jumssnet/public_html/forum/Sources/PersonalMessage.php
Line: 847

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #26 on: November 10, 2009, 11:07:24 AM »
Ok, quick fix.  And make sure you use the original pmAttachmentsUninstallRC2.php and pmAttachmentsInstallRC2.php files from the actual download on SMF.

Upload pmAttachmentsUninstallRC2.php to your Root SMF Folder where SSI.php is, run it in your browser once.  Than upload pmAttachmentsInstallRC2.php to the same folder where SSI.php is, run it in your browser once.  Remove both files from your root, also, open up pm_attachments folder from your root, and remove any files in there EXCEPT:  .htaccess and index.php, and it should now work perfect.

Cheers :)
« Last Edit: November 10, 2009, 11:12:01 AM by SoLoGHoST »

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #27 on: November 10, 2009, 05:45:30 PM »
What is the reason for the scroll bar when there is no information that is shown in the post when adding an attachment?

I'm using this on a test site of RC2 and only have like 5 mods installed right now on the default (Curve) theme.

diceroller
member color link
google analytics
dynamic memberlist
pm attachements


Pic shown below...
Ok, I have tested this and seems to do the same for me.  So I'll have a deeper look into this when I get a chance.

Thanks for pointing this out,
Cheer :)

Offline drhamza

  • Jr. Member
  • **
  • Posts: 358
Re: PM Attachments
« Reply #28 on: November 10, 2009, 08:49:47 PM »
it works!
but, i'm having it like this now (attachment)
edit: and the send, spelling check, preview, Save a copy in my outbox, shortcuts: hit shift+alt+s to submit/post or shift+alt+p to preview
are all up, below the forum tree

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #29 on: November 10, 2009, 10:33:41 PM »
Can you attach you PersonalMessage.template.php file and I'll have a look at it for you and edit it so it displays properly.

Cheers :)

Offline drhamza

  • Jr. Member
  • **
  • Posts: 358
Re: PM Attachments
« Reply #30 on: November 10, 2009, 10:53:20 PM »
:)

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #31 on: November 10, 2009, 10:55:33 PM »
What is the reason for the scroll bar when there is no information that is shown in the post when adding an attachment?

I'm using this on a test site of RC2 and only have like 5 mods installed right now on the default (Curve) theme.

diceroller
member color link
google analytics
dynamic memberlist
pm attachements


Pic shown below...

Ok, here are the edits you can do to ./Themes/default/PersonalMessage.template.php yourself to fix this (Note:  will be updating very soon with this fix and another display fix):

FIND:
Code: [Select]
<div id="post_', $message['id'], '_footer" class="attachments">';
REPLACE WITH:
Code: [Select]
<div id="msg_', $message['id'], '_footer" class="attachments smalltext">';
FIND:
Code: [Select]
<div style="overflow: ', $context['browser']['is_firefox'] ? 'visible' : 'auto', '; width: 100%;">';
REPLACE WITH:
Code: [Select]
<div style="overflow: ', $context['browser']['is_firefox'] ? 'visible' : 'auto', ';">';
There, that should do it now.  Also, going to fix the display of how it looks when adding attachments to New Personal Messages, as it's a little off IMO.  So will be updating very soon.

Cheers :)

Offline C4G-TK

  • Sr. Member
  • ****
  • Posts: 961
  • SHOW others respect & you GET respect in return.
Re: PM Attachments
« Reply #32 on: November 10, 2009, 11:42:20 PM »
Cool deal, I'll install the new one when you get it done and try it out again.
-img removed-

Offline drhamza

  • Jr. Member
  • **
  • Posts: 358
Re: PM Attachments
« Reply #33 on: November 10, 2009, 11:51:48 PM »
sologohost, i attached the file my previous post :D

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #34 on: November 10, 2009, 11:54:55 PM »
sologohost, i attached the file my previous post :D

Ok, have edited it some, try the 1 attached.  Let me know how this works for you.  Includes all of the display fixes that will be included in the next revision bout to be updated in a few...

EDIT:  Ofcourse I only edited the code that pertains to PM Attachments, all other code was untouched.  So if there is a deeper problem that's on you to fix.
« Last Edit: November 11, 2009, 12:02:36 AM by SoLoGHoST »

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,795
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #35 on: November 11, 2009, 12:13:29 AM »
Ok, have just updated it on the MOD Site with all of the Display issues you all mentioned FIXED!

Cheers and ENJOY! :)
« Last Edit: November 11, 2009, 12:40:57 AM by SoLoGHoST »

Offline drhamza

  • Jr. Member
  • **
  • Posts: 358
Re: PM Attachments
« Reply #36 on: November 11, 2009, 02:19:06 AM »
thank you very much man, as usual; great work :D

Offline JustOneOldMan

  • Semi-Newbie
  • *
  • Posts: 78
  • It was a dark and stormy night...
    • Two Track Music
Re: PM Attachments
« Reply #37 on: November 11, 2009, 05:03:33 PM »
SoLoGHoST, have you gotten enough people interested in a version for 1.1.10 yet?  I'd also be willing to pay for this.  Otherwise, I'm thinking seriously about moving up to v2, but would rather not quite yet just for this feature...
A computer once beat me at chess, but as it turns out it was no match for me at kickboxing...

Offline JustOneOldMan

  • Semi-Newbie
  • *
  • Posts: 78
  • It was a dark and stormy night...
    • Two Track Music
Re: PM Attachments
« Reply #38 on: November 11, 2009, 10:59:14 PM »
Thanks.  I don't always get a chance to check in here, so if I miss it feel free to email me...
A computer once beat me at chess, but as it turns out it was no match for me at kickboxing...

Offline recived

  • Semi-Newbie
  • *
  • Posts: 46
Re: PM Attachments
« Reply #39 on: November 12, 2009, 05:08:56 PM »
Hello, tell me where the delete message with an attachment then it is deleted from the server?