Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: LemnisCate8 on December 26, 2016, 02:15:15 PM

Title: How do I change the "prune personal messages" setting?
Post by: LemnisCate8 on December 26, 2016, 02:15:15 PM
I added an attachment so that my question is ultra clear. On my template the setting is there and is apparently changeable, but there is no way to save it once changed. Is there a way to change it?
Title: Re: How do I change the "prune personal messages" setting?
Post by: Illori on December 26, 2016, 02:27:07 PM
it does not save the option, unless you do a source change that would change it for everyone.
Title: Re: How do I change the "prune personal messages" setting?
Post by: LemnisCate8 on December 26, 2016, 02:56:16 PM
How do I do that, change it for everyone?
Title: Re: How do I change the "prune personal messages" setting?
Post by: Kindred on December 26, 2016, 03:06:14 PM
you would have to edit the code, I believe
Title: Re: How do I change the "prune personal messages" setting?
Post by: LemnisCate8 on December 26, 2016, 03:10:54 PM
Quote from: Kindred on December 26, 2016, 03:06:14 PM
you would have to edit the code, I believe

Can you tell me how I'd do that?
Title: Re: How do I change the "prune personal messages" setting?
Post by: Illori on December 26, 2016, 03:32:35 PM
<p>', $txt['pm_prune_desc1'], ' <input type="text" name="age" size="3" value="14" class="input_text" /> ', $txt['pm_prune_desc2'], '</p>

find that line in PersonalMessage.template.php. modify the value="14" as you see fit.
Title: Re: How do I change the "prune personal messages" setting?
Post by: LemnisCate8 on December 26, 2016, 03:46:45 PM
Okay thanks, I'll do that then.   :)
Title: Re: How do I change the "prune personal messages" setting?
Post by: LemnisCate8 on December 26, 2016, 03:48:15 PM
Is there a way to set them so they never prune?
Title: Re: How do I change the "prune personal messages" setting?
Post by: Kindred on December 26, 2016, 05:45:22 PM
Seeing as how the "prune" is a user triggered event, not soemthing that happens automatically,I fail to see why you would need to do that...
Title: Re: How do I change the "prune personal messages" setting?
Post by: LemnisCate8 on December 26, 2016, 06:33:18 PM
 :o

Hah, okay, so I'm not understanding how it works then. I thought that as there was a timespan entered, that it would auto-prune items that old. But now I get that you say a prune must be requested for that to happen then. Hmm. So somewhere within the admin panel I'd find a way to trigger it, and have to be aware that if I do and do not change that setting I'll end up pruning emails that I do not want pruned. Where is the "trigger" for that prune to happen?

Basically I want it so that no emails are pruned, ever. I want users to determine what's important to them and what they want to delete.
Title: Re: How do I change the "prune personal messages" setting?
Post by: Illori on December 26, 2016, 06:40:12 PM
they are not pruned at any interval, unless the user clicks that button. it is not an automatic process.
Title: Re: How do I change the "prune personal messages" setting?
Post by: LemnisCate8 on December 26, 2016, 06:54:11 PM
Quote from: Illori on December 26, 2016, 06:40:12 PM
they are not pruned at any interval, unless the user clicks that button. it is not an automatic process.
That's what I'm asking - which button?
Title: Re: How do I change the "prune personal messages" setting?
Post by: Kindred on December 26, 2016, 07:01:31 PM
You are not understanding..  it is a per user choice. There is no admin interface to delete PMs
Title: Re: How do I change the "prune personal messages" setting?
Post by: LemnisCate8 on December 26, 2016, 07:09:27 PM
Quote from: Kindred on December 26, 2016, 07:01:31 PM
You are not understanding..  it is a per user choice. There is no admin interface to delete PMs

Okay, now I get what you're trying to say. I suppose it's that I can't imagine why someone would use that function, but surely there must be someone that would or it wouldn't be there.

Thanks.