Advertisement:

Author Topic: PM Attachments  (Read 117161 times)

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #60 on: March 26, 2010, 03:56:42 AM »
Sorry Eclipse,  Long story short, don't have an RC3 test site up to test my mods in and/or see what's changed in RC3 for my mods.  If someone wants to put up a test site for me to work with these mods, that would surely speed this along, otherwise, it could take awhile.

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #61 on: March 26, 2010, 09:06:06 PM »
Ok, guys, PM Attachments updated for SMF 2.0 RC3!  This was the easiest upgrade ever!!  Just a simple tab space in the replace operation in ManageAttachments.template.php.

Cheers and Enjoy! :)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,401
    • StoryBB/StoryBB on GitHub
Re: PM Attachments
« Reply #62 on: March 26, 2010, 09:06:35 PM »
Congrats and thanks :)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: PM Attachments
« Reply #63 on: March 26, 2010, 09:18:32 PM »
Thanks, been waiting for this.

Uh...oh...there's a error then you install if.
Quote
Duplicate entry 'pmAttachmentSizeLimit' for key 1
File: /home/user/public_html/forum.com/Packages/temp/pmAttachmentsInstallRC2.php
Line: 211
“There is no god, and that’s the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,401
    • StoryBB/StoryBB on GitHub
Re: PM Attachments
« Reply #64 on: March 26, 2010, 09:38:56 PM »
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: PM Attachments
« Reply #65 on: March 26, 2010, 10:08:14 PM »
What do I need to do in order to install this?

I get no tests failed, but when I click install... this comes up

Duplicate entry 'pmAttachmentSizeLimit' for key 'PRIMARY'
File: /home/xxxxxxx/public_html/Packages/temp/pmAttachmentsInstallRC2.php
Line: 211


I've gone into my database and have deleted this, but it keeps giving me the error.


Figured it out!  Woohoo!  I'm on a roll today!

Had to go into my Database (which I hate doing cause I'm not comfortable in that area) and go into settings and delete the entries that were trying to be duplicated.  Then, went back and installed fine.  Whew. O:)
It's not working for me, deleted. Can't figure this out because your comment was not clear.
“There is no god, and that’s the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #66 on: March 27, 2010, 01:31:47 AM »
Did you do upgrade option?

If so, or if you are doing a full install...

Remove this line from the respective place in the package-info.xml file and re-zip it up...
Code: [Select]
<code>pmAttachmentsInstallRC2.php</code>
Yeah, I know, I should use the <database> tag, honestly I haven't really thought about it much with this mod.  Will definitely get around to doing more with it after Dream Portal is finished, which could take awhile...

But you can do this for now, if you have all of the tables installed and don't wanna lose your current attachments in the previous version, since no db edits were required.

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: PM Attachments
« Reply #67 on: March 27, 2010, 01:55:33 AM »
I upgraded to RC3, so yeah.

It still doesn't work, guess I have to wait?
“There is no god, and that’s the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #68 on: March 27, 2010, 02:03:28 AM »
ok, what doesn't work about it?

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: PM Attachments
« Reply #69 on: March 27, 2010, 02:09:17 AM »
It's still showing the install error.
Code: [Select]
Duplicate entry 'pmAttachmentSizeLimit' for key 1
File: /home/user/public_html/forum.com/Packages/temp/pmAttachmentsInstallRC2.php
Line: 211

I assume, this only work on full install.
Even removing the line in package-info.xml didn't work. Deleting in the database didn't work either.
“There is no god, and that’s the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #70 on: March 27, 2010, 04:54:06 AM »
Open up PMAttachmentsInstallRC2.php, and change Line #190 in there

FROM THIS:
Code: [Select]
$smcFunc['db_insert']('insert',
TO THIS:
Code: [Select]
$smcFunc['db_insert']('ignore',
Forgot about this.  Now save it, package it up and tada, should install just fine now.

Or you can just Redownload it as I just updated it again with this change!
« Last Edit: March 27, 2010, 05:01:34 AM by SoLoGHoST »

Offline TomW

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
Re: PM Attachments
« Reply #71 on: April 29, 2010, 11:59:13 AM »
Great mod, thanks !  I would like for my Post template to have the same look & feel.  In other words, I prefer that the Post template is the same as this one - Could you tell me how to modify the Post template ?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,401
    • StoryBB/StoryBB on GitHub
Re: PM Attachments
« Reply #72 on: April 29, 2010, 12:12:54 PM »
TomW: What bit exactly do you want to change? The PM template is actually based off the Post template for attachments...
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline TomW

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
Re: PM Attachments
« Reply #73 on: April 29, 2010, 09:23:20 PM »
TomW: What bit exactly do you want to change? The PM template is actually based off the Post template for attachments...

The screen shots for this mod must not be from the Default (curve) theme, so they look different.  I'll install the mod 1st, then ask questions.  Sorry about that.

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #74 on: May 03, 2010, 06:06:42 AM »
The screenshots for this mod uses a Theme created by Shortie of Graphics Mayhem.  I believe the theme is also available here at SMF, though not sure.  Ofcourse, I'm almost positive it's available at Graphics Mayhem.

Offline TomW

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
Re: PM Attachments
« Reply #75 on: May 04, 2010, 07:22:39 PM »
I am manually updating my files  (SMF2.0 RC3), and hit a snag with subs.php due to the special characters.  What is the work-around ?

Offline SoLoGHoST

  • SMF Hero
  • ******
  • Posts: 1,796
  • Gender: Male
  • Real coders do not need to comment their code!
    • Dream Portal
Re: PM Attachments
« Reply #76 on: May 04, 2010, 07:52:13 PM »
Can you tell me what snag you hit?  Also, is this related to the PM Attachments mod?

If you could post up the code where you hit a snag at in Subs.php and the code where PM Attachments is supposed to do the edit to this automatically, perhaps I may be able to help you...

Offline TomW

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
Re: PM Attachments
« Reply #77 on: May 04, 2010, 08:22:11 PM »
I got it straightened out, thanks for the offer.  Works great; this is a very nice mod.

Offline Gryzor

  • Sr. Member
  • ****
  • Posts: 783
  • Gender: Male
  • CPCwiki.eu - The Amstrad CPC Encyclopaedia!
    • CPCWiki
Re: PM Attachments
« Reply #78 on: May 05, 2010, 12:07:31 PM »
This sounds awesome, so thanks so much for the mod...

However, even though it installed fine, I can see no option to enable PM attachments in the Avatars and Attachment settings. What manual changes do I need to do myself to enable it?

Thanks again... :)

TheListener

  • Guest
Re: PM Attachments
« Reply #79 on: May 05, 2010, 12:11:35 PM »
Ther permissions which you set for guests and the different membergroups.