Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: MonoTiz on January 20, 2008, 11:06:54 PM

Title: RemovePM
Post by: MonoTiz on January 20, 2008, 11:06:54 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1058)

This MOD allow to remove all private messages (to all members) sent by X days.

Languages:

For italian, visit this (http://mono.ilbello.com/smf/index.php?topic=21.0) link.

Powered by MonoTiz: http://www.drz-italia.com (http://www.drz-italia.com)
Title: Re: RemovePM
Post by: goldenboy48 on January 26, 2008, 04:37:01 PM
So it basically deletes all old private messages?
Title: Re: RemovePM
Post by: nick09 on January 26, 2008, 08:31:41 PM
Quote from: PanesarV on January 26, 2008, 04:37:01 PM
So it basically deletes all old private messages?

In the set amount of days you want pretty much.
Title: Re: RemovePM
Post by: anakmacan on February 06, 2008, 09:21:29 PM
-ediet- Nevermind, ive looked it up myself. It's form Admin > Forum Maintenance.

Great mod btw, thanks for the mod :)
Title: Re: RemovePM
Post by: vagrant on February 09, 2008, 11:42:01 PM
does this mod also deal with removing saved outgoing messages over "X" days as well ?


~~~~~~~
Now installed on active forum, and the answer to my question is YES it does remove them :)
Title: Re: RemovePM
Post by: pinkfreak on February 17, 2008, 09:54:51 PM
Has anyone created a 1.1.4 version of this yet?
Title: Re: RemovePM
Post by: Sabre™ on February 18, 2008, 04:06:46 AM
From mod link.

Last Modified:
    January 16, 2008, 02:49:18 AM
Latest Version:
Compatible With:
    1.1.4
Title: Re: RemovePM
Post by: Arveles on February 18, 2008, 12:01:04 PM
Turkish Language:

$txt['remove_pm_days1'] = "Eski mesajları silme sınırı: ";
$txt['remove_pm_days2'] = "günden daha eski özel mesajları sil.";
$txt['remove_old_pm'] = "Eski Özel Mesajları Sil";
$txt['maintain_pm_old_remove'] = "Şimdi Sil";
$txt['maintain_pm_old_confirm'] = "Eski Mesajları Silmeyi Gerçekten İstiyor musun?";
Title: Re: RemovePM
Post by: xyxis_fahim on March 12, 2008, 01:25:07 AM
Hello,
This is a great mod. But is there anyway I can choose a Member group to delete from , rather than "ALL" members?
Thanks.
Title: Re: RemovePM
Post by: ivo2296 on March 12, 2008, 02:24:13 PM
Nice mod thanks,

the only thing is that it doesn't delete saved PMs in Outbox.
Title: Re: RemovePM
Post by: MonoTiz on March 14, 2008, 07:32:03 AM
Quote from: ivo2296 on March 12, 2008, 02:24:13 PM
Nice mod thanks,

the only thing is that it doesn't delete saved PMs in Outbox.
Thanks, when I have free time, check to fix this.
Title: Re: RemovePM
Post by: Marcus Forsberg on July 10, 2008, 05:00:29 AM
hi!

Would it be possible to let users save their important messages, so that they won't be deleted?
Title: Re: RemovePM
Post by: IngeJones on December 12, 2008, 08:40:02 AM
Any plans to update this for version 2.0?
Title: Re: RemovePM
Post by: Wolfie1 on December 13, 2008, 12:16:06 PM
Sorry if this is a dumb question but I installed this mod but can't find where it is to use it. Can anyone help?
Title: Re: RemovePM
Post by: Sabre™ on December 19, 2008, 08:35:05 PM
Look in your  admin panel,  under  Forum Maintenance.
It should be located toward the bottom of your page :)
Title: Re: RemovePM
Post by: Filipina on January 24, 2009, 04:55:12 PM
This may sound dumb but it says "Remove all private messages sent by 30 days."  This leads me to believe it means remove IM's within the last 30 days?  Am I reading this right or does it mean over 30 days ago?
Title: Re: RemovePM
Post by: villasg on February 07, 2009, 05:36:27 AM
Hello work this in the new 1.1.8 ?

Thanks
Title: Re: RemovePM
Post by: chrishicks on March 18, 2009, 07:32:27 PM
Would also like to know if this works fine with 1.1.8...
Title: Re: RemovePM
Post by: Crissm on March 27, 2009, 03:50:01 AM
Quote from: chrishicks on March 18, 2009, 07:32:27 PM
Would also like to know if this works fine with 1.1.8...

Yes, it worked for me in 1.1.8
Title: Re: RemovePM
Post by: Joe N on April 04, 2009, 12:32:18 PM
Hi

Just installed the mod. One quick question, where do you change the settings for it?

Thanks
Joe
Title: Re: RemovePM
Post by: perplexed on May 18, 2009, 07:32:53 AM
Remember to run "Recount all forum totals and statistics." after running this mod otherwise your number PMs showing at the top of the forum will be wrong :)
Title: Re: RemovePM
Post by: perplexed on May 29, 2009, 07:55:20 AM
any news about an update for 2.0?  this is very useful mod :)
Title: Re: RemovePM
Post by: vertese on June 17, 2009, 04:50:17 PM
ive installed the mod using the site rather than ftp , im running 1.1.9 smf and all i get is a small box showing the number 30 and a box on the right that can click and a message from webpage box pops up thats all i can do
Any help appreciated
thanks
Title: Re: RemovePM
Post by: villasg on June 18, 2009, 04:22:18 AM
Ok i install in my 119 and all work OK .
Thanks

Greek utf-8
<file name="$themedir/languages/Modifications.greek-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[//removepm
$txt['remove_pm_days1'] = "Σβησε ολα τα PM που εχουν σταλει πριν απο";
$txt['remove_pm_days2'] = "Ημερες.";
$txt['remove_old_pm'] = "Σβησε τα παλια μηνυματα";
$txt['maintain_pm_old_remove'] = "Διαγραφη τωρα";
$txt['maintain_pm_old_confirm'] = "Εισαι απολυτα σιγουρος για την διαγραφη των μυνηματων ?";

]]></add>
</operation>
</file>
Title: Re: RemovePM
Post by: vertese on June 18, 2009, 07:15:17 AM
Thank you villasg
I think this is in Greek so could I have some instructions in English and where to put it.
Thanks.
Title: Re: RemovePM
Post by: Sabre™ on June 18, 2009, 07:31:53 AM
Look in your languages folder in your default theme,  and add this code to the bottom of your Modifications.english.php  before this  ?>

//removepm
$txt['remove_pm_days1'] = "Remove all private messages sent by";
$txt['remove_pm_days2'] = "days.";
$txt['remove_old_pm'] = "Remove Old Private Message";
$txt['maintain_pm_old_remove'] = "Remove PM now";
$txt['maintain_pm_old_confirm'] = "Are you really sure you want to delete old private message now?";


If you are using UTF8 then add it to your  Modifications.english-utf8.php
Title: Re: RemovePM
Post by: vertese on June 18, 2009, 11:58:42 AM
Thanks Sabre but we have done that and it remains the same.
Title: Re: RemovePM
Post by: villasg on June 18, 2009, 12:01:27 PM
@vertese :
What is the language of your foroum ?
And the theme plz
Title: Re: RemovePM
Post by: vertese on June 18, 2009, 01:17:23 PM
Dilber MC Theme by HarzeM
Thanks for your quick reply.
Title: Re: RemovePM
Post by: villasg on June 18, 2009, 01:37:56 PM
Quote from: vertese on June 18, 2009, 01:17:23 PM
Dilber MC Theme by HarzeM
Thanks for your quick reply.

You need manual edit in
YOUR THEME/Admin.template.php
YOUR THEME/languages/Modifications.english.php
Title: Re: RemovePM
Post by: vertese on June 18, 2009, 02:30:39 PM
Could you please tell me what I have to edit in YOUR THEME/Admin.template.php
I presume I edit YOUR THEME/languages/Modifications.english.php 
as above ?
thanks
Title: Re: RemovePM
Post by: villasg on June 18, 2009, 02:46:56 PM
more infos in
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1058;attach=46447;smf_version=1.1.9
Title: Re: RemovePM
Post by: venex on June 18, 2009, 07:04:32 PM
I have 1.1.9.

Dilber as theme...

Spanish the language...

and... I'm getting this error when I try to remove all the PMs..:

Not unique table/alias: 't1'
Archivo: /homepages/18/d247482419/htdocs/foro/Sources/PersonalMessage.php
Línea: 1892

Nota: Parece que tu base de datos puede necesitar una actualización. La versión de los archivos de tu foro están en la versión SMF 1.1.9, mientras que tu base de datos está en la versión de SMF 1.1.5. Te recomendamos que ejecutes la última versión de upgrade.php.

Translation of the last part:
Note: You database may need an upgrade. Your forum files are in 1.1.9, and the database files are in 1.1.5. We recommend you to run the last version of upgrade.php

BUT... Im afraid that when I run this file it will change some settings from others MODs.
Title: Re: RemovePM
Post by: vertese on June 20, 2009, 01:23:51 PM
Hi its me again
Ive manually installed the mod and done a normal install and still i only get the picture as attached
I do have the arcade mode installed which i think is messing with it
Any help really appreciated
Thanks
Title: Re: RemovePM
Post by: venex on June 21, 2009, 03:45:11 AM
Quote from: vertese on June 20, 2009, 01:23:51 PM
Hi its me again
Ive manually installed the mod and done a normal install and still i only get the picture as attached
I do have the arcade mode installed which i think is messing with it
Any help really appreciated
Thanks

Check the language file and check that there is every line that the MOD needs. I think that's the problem...

PS: I still have my problem (2 replies away ^^).
Title: Re: RemovePM
Post by: vertese on June 22, 2009, 08:07:31 AM
Checked everything but it still remains the same.
Any ideas please.
Title: Re: RemovePM
Post by: vertese on June 23, 2009, 12:22:02 PM
Could someone please help, we would really like to have this facility.
Title: Re: RemovePM
Post by: vertese on June 27, 2009, 09:32:39 AM
Does this mod not work on our theme??
Please let me know.
Thanks
Title: Re: RemovePM
Post by: Sabre™ on June 27, 2009, 06:51:33 PM
Does your theme have its own Language folder, or is it calling from the default themes folder?

Could you attach all the templates this mod edits, and I will have a look for you.

EDIT
Ive just tested it on the Dilber MultiColor theme, and it works perfect.
If you have a language file named Modifications.english-utf8.php or similar, attach that also please :)
Title: Re: RemovePM
Post by: vertese on July 02, 2009, 02:18:45 PM
Im pretty sure its getting it from the default theme as the themes modification folder only has info on the arcade mod thats installed and nothing else
Title: Re: RemovePM
Post by: vertese on July 05, 2009, 05:51:40 AM
any ideas please.

also what number pm's do you allow a user to have.  Our forum has been going for four years so members will have lots of pm's.

I really would like to clear some out.
thanks
Title: Re: RemovePM
Post by: Sabre™ on July 05, 2009, 06:16:06 AM
Sorry mate, I haven't looked in this thread for a while.
Your language file is ok.
If you don't mind, may I have temp access to your c/panel, and a temp admin account to your site.
It may only take 5 mins to resolve your problem with a hands on attempt.
Then you could experience this mod without further problem.

PM me with the details if this is appropriate for you :)
Title: Re: RemovePM
Post by: vertese on July 07, 2009, 11:33:06 AM
Hi Sabre,
Have pm'd you.
Title: Re: RemovePM
Post by: Sabre™ on July 08, 2009, 06:24:54 AM
Sorry for the wait, I've received no email alerts from this forum since the 5th, so didnt know until I logged in tonight.
See ya at your site :)
Title: Re: RemovePM
Post by: vertese on July 09, 2009, 05:55:52 AM
Sabre,
You have done a great job for us.  Thank you very much.
Works perfect.
Title: Re: RemovePM
Post by: Sabre™ on July 09, 2009, 06:40:39 AM
You are more than welcome :)

Enjoy
Title: Re: RemovePM
Post by: Jeep29 on September 28, 2009, 08:50:51 AM
Hello,

Great Mod

But is it possible to assigne this mod for not all members (ex not for admin and modo)


PS: sorry for my bad english
Title: Re: RemovePM
Post by: nassatellite on December 11, 2009, 04:39:20 AM
SMF 2.0.RC2 için ne zaman günelleyeceksiniz acaba?
Title: Re: RemovePM
Post by: ACAMS on January 08, 2010, 05:40:25 PM
I have SMF 2.0 RC2 and it didn't convert from Vbulletin very well, I have members complaining they can't delete PM's so I thought I would run this every so often.
I found everything except the first thing....in Admin.template.php the parcer said find..

Find:
</tr>
  </table>';
// Pop up a box to say function completed if the user has been redirected back here from a function they ran.



Replace With:
</tr>';
     
      // Remove PM
      echo '
                  <tr class="titlebg">
                        <td>', $txt['maintain_title'], ' - ', $txt['remove_old_pm'], '</td>
                  </tr>
                  <tr>
                        <td class="windowbg2">
                  <form action="', $scripturl, '?action=removepm" method="post" accept-charset="', $context['character_set'], '" name="rempm" id="rempm">
                                    ', $txt['remove_pm_days1'], ' <input type="text" name="maxpmdays" value="30" size="3" />', $txt['remove_pm_days2'], '<br />
                                    </div>
                  <div align="right" style="margin: 1ex;"><input type="submit" value="', $txt['maintain_pm_old_remove'], '" onclick="return confirm(\'', $txt['maintain_pm_old_confirm'], '\');" /></div>
                                    <input type="hidden" name="sc" value="', $context['session_id'], '" />
                              </form>
                        </td>
                  </tr>
            </table>';

      // Pop up a box to say function completed if the user has been redirected back here from a function they ran.


I have tried putting it in a couple different places with no luck.

Any help would be much appreciated
Title: Re: RemovePM
Post by: ACAMS on January 09, 2010, 03:26:54 PM
Is this mod not for SMF 2.0 RC2 even tho the parcer has instructions for 2.0 RC2?
Title: Re: RemovePM
Post by: Liam. on January 09, 2010, 04:11:14 PM
:/ ¬_¬
The parser parses it for all versions of SMF AFAIK
Title: Re: RemovePM
Post by: ACAMS on January 09, 2010, 04:43:21 PM
I tried some mods that said it was not for my version......so this should say that too if it was not for 2.0 RC2