View PM or Subject List

Started by live627, February 18, 2011, 10:39:02 PM

Previous topic - Next topic

live627

Link to Mod

View PM or Subject List 1.0 by live627



Once this mod is installed, the PM subject list is separated from the actual message. This mod only works when the display mode is set to one at a time.

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Mari-chi

YAY. *Glomp*

I <3 U 4ever. :D

I love it; I've been waiting for a mod like this. *Bounce*

live627


mx03

Hey, this is a cool Mod, but there's a problem.

When you get a new message and he clicks on the overview the message status is read.

Here the solution:
Sources\PersonalMessage.php
Search:
// Otherwise do just the current one!
elseif (!empty($context['current_pm'])

Replace it with:
// Otherwise do just the current one!
elseif (!empty($context['current_pm']) && isset($_REQUEST['pmid']))

billowingwillows

Soooo happy to have found this mod as the default display for private messages is absolutely horrible. One question though: How do I set as default for all users the "display one at a time" setting? Using 2.0.2. I don't want people to have to discover for themselves how to use a normal private message box.  :P

live627

Can't. Seems SMF doesn't allow for that...

billowingwillows

Hhmm.... well there must be something in the code that determines this... an array or something with that option set as default... I'll try to root it out.  ;D

billowingwillows

Ok, I've successfully resolved this.  8)

I went into phpMyAdmin, so whatever the equivalent of that is on one's server, and I went through the list of tables there until I found smf_members. It'll show you a list of all members with all kinds of settings...
There's a setting named "pm_prefs"; that is the one we're looking for. I noticed that the two accounts that I have that I set as "display only one a time" or however it is phrased had a numerical value of "1" there, with the rest of the accounts set at "0".

So I switched from Browse view to Structure view, and there's the list of all the settings within the table. I find pm_prefs and click on Change...

And then there's a field for default that has "0" selected, I change it to "1", save, go create a new account, go to the private message settings, and, lo and behold, it's automatically set correctly.  ;D

If you wanted to change the setting for already existing members, I imagine you'd have to go through and edit them in the table and change that number to 1 as well...

Sheda

Thanks for this info! It always went on my nerves, the way pms are displayed by default. ^^
It's this kind of thing that comes into your head at all kind of times when you think about your forum, as something you definitely have to change one of these days, but got no idea what to do to it.

By the way, what does this mod do? I'd like to see a screenshot or get some more explanation. The subject list is separated from the message... so where does it go instead? ???

billowingwillows

Okay, so, without the mod, you go to your private messages, and there's a list of all of them, and, by default, all of the private messages you received, displaying right there, just as though you were reading a thread and each one was a reply. If you click one of the messages in the index, it'll bump you down to see it, but it's still on the same page, still all of the private messages displaying at once.

If you go to your preferences within the private message window, and change it to display one at a time, it's the same thing, only that it'll only display one message instead of all of them, but it's still on the same page.

Install the mod and it'll only show the index, just like it does when you log into any normal email client. Then, you can click which message you want to see, and it takes you to a new page, just with that message, no other messages, no index of all of them....

So, in other words, if you turn on that setting and install this mod (and even follow my instructions to make it the default setting for everyone on your forum), your private message box will work just like Gmail or any other email client.  ;)

I'd post a print screen but I haven't figured out how which combo key works with the print screen to actually print a screen on this laptop.  ;D

Sheda

I see. *grabs a copy of this mod*
That's just the way i like it.

Here, i made some screens to show what the pms look like with the mod active.
Nevermind the look of my forum, i'm still working on it.

billowingwillows

Did you manage to set it as the default view for all users, through using the phpadmin route that I was mentioning earlier?

Does "kein betreff" mean "no subject" by chance? I'm learning German and looked up betreff, which means something like relevance? So I figured no relevance, in parentheses, as the subject might have meant no subject.  :laugh:

Sheda

Quote from: billowingwillows on February 03, 2012, 01:12:40 PM
Did you manage to set it as the default view for all users, through using the phpadmin route that I was mentioning earlier?
Yes, no problem, as i've done this kind of thing before. And as it happens, i've got phpmyadmin too. ^^

Quote from: billowingwillows on February 03, 2012, 01:12:40 PMDoes "kein betreff" mean "no subject" by chance?
Yep. :P

Advertisement: