Advertisement:

Author Topic: [2.1?] "User xx has blocked your personal message."  (Read 42038 times)

kat

  • Guest
[2.1?] "User xx has blocked your personal message."
« on: June 11, 2012, 04:18:06 PM »
Bloody silly that you're told that AFTER you've typed it and not before, doncha think?
« Last Edit: December 19, 2012, 04:50:39 AM by emanuele »

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
    • IchBin.us
Re: "User xx has blocked your personal message."
« Reply #1 on: June 11, 2012, 05:33:04 PM »
How does it know who you're sending it to until you hit send?
Brad "IchBin™" Grow        TinyPortal        Themes
Coding Guidelines       

Offline CoreISP

  • Server Admin
  • Server Team
  • SMF Super Hero
  • *
  • Posts: 16,990
  • Gender: Male
  • CoreISP.net
    • liroyvh on LinkedIn
    • @liroyvh on Twitter
    • CoreISP Corporation :: WebHosting, Dedicated Servers, and more!
Re: "User xx has blocked your personal message."
« Reply #2 on: June 11, 2012, 06:01:09 PM »
It could perhaps use something ajax'ey to check if the username you have in the receivers list has ****** blocked.
Probably a bad idea though.... speaking of overhead.
- CoreISP.net Corporation -
  WebHosting, Colocation, Domain Registration & Network Services
- DedicatedBox.us Servers -
  Low priced Servers in a high-quality Network, the place for all your (advanced) server needs.
  We specialize in hosting big boards. Contact us!

((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: "User xx has blocked your personal message."
« Reply #3 on: June 11, 2012, 06:05:28 PM »
Why this is in site stuff and not feature requests? :P


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Oldiesmann

  • Developer
  • SMF Super Hero
  • *
  • Posts: 24,814
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: "User xx has blocked your personal message."
« Reply #4 on: June 12, 2012, 02:40:04 AM »
At least it tells you... It could always just silently drop the message altogether while still acting like it was sent...
Michael Eshom
Webmaster / SMF Lead Developer
oldiesmann@simplemachines.org

kat

  • Guest
Re: "User xx has blocked your personal message."
« Reply #5 on: June 12, 2012, 04:53:32 AM »
How does it know who you're sending it to until you hit send?

If you click "Send a message" from their profile, it could check, no?

If you click "Reply", it could check, no?

If you type the name in, it might be a tad more difficult, I guess.

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
    • IchBin.us
Re: "User xx has blocked your personal message."
« Reply #6 on: June 12, 2012, 02:39:17 PM »
How does it know who you're sending it to until you hit send?

If you click "Send a message" from their profile, it could check, no?

If you click "Reply", it could check, no?

If you type the name in, it might be a tad more difficult, I guess.

Better yet don't even show a send message link if someone has blocked you. :)
Brad "IchBin™" Grow        TinyPortal        Themes
Coding Guidelines       

kat

  • Guest
Re: "User xx has blocked your personal message."
« Reply #7 on: June 12, 2012, 02:56:21 PM »
That'd work! :)

Offline Angelina Belle

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,586
Re: "User xx has blocked your personal message."
« Reply #8 on: June 12, 2012, 04:16:07 PM »
That would be confusing, though, wouldn't it?
"Where'd the Personal Message icon go?".

Perhaps better to show an icon with a circle/slash through it and an alt text of"User XX has blocked your personal Message".
Same sort of thing when viewing a profile -- "Send personal message" could not be allowed to disappear, but would be greyed out and have the comment "User has blocked your personal message" appended.
There would be some additional overhead associated with that, as this is currently not checked on every single Display.php and every single profile.php

Then, in the suggestions (for To and BCC alike), you'd need a way to "gray out" names that have blocked you, rather than making them disappear completely.

If you make things disappear completely, you will confuse the users.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Offline CoreISP

  • Server Admin
  • Server Team
  • SMF Super Hero
  • *
  • Posts: 16,990
  • Gender: Male
  • CoreISP.net
    • liroyvh on LinkedIn
    • @liroyvh on Twitter
    • CoreISP Corporation :: WebHosting, Dedicated Servers, and more!
Re: "User xx has blocked your personal message."
« Reply #9 on: June 12, 2012, 04:29:09 PM »
Perhaps better that if you click it it runs a quick check.
That will save running queries each time a profile is loaded as well, no? Only runs a extra query when you click the button.
- CoreISP.net Corporation -
  WebHosting, Colocation, Domain Registration & Network Services
- DedicatedBox.us Servers -
  Low priced Servers in a high-quality Network, the place for all your (advanced) server needs.
  We specialize in hosting big boards. Contact us!

((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Offline Angelina Belle

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,586
Re: "User xx has blocked your personal message."
« Reply #10 on: June 12, 2012, 04:33:17 PM »
Perhaps better that if you click it it runs a quick check.
That will save running queries each time a profile is loaded as well, no? Only runs a extra query when you click the button.
Probably.
As for the suggest list -- probably the same.  Adding a field (which would require 2 extra joins, I think) to the big query, vs. doing a quick check each time a name is clicked.

The question is -- which is more important.  The server's time and effort or the users' time and effort. Strangely, the answer might depend on how close the forum owner is to monthly limits...

Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Offline Suki

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 15,088
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: "User xx has blocked your personal message."
« Reply #11 on: June 12, 2012, 04:37:28 PM »
You still need to check on the actual page since the button isn't the only way to send a pm.

Loading the extra info on every users (Load.php) and do a quick check should be fine.
Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

kat

  • Guest
Re: "User xx has blocked your personal message."
« Reply #12 on: June 12, 2012, 04:49:39 PM »
which is more important.  The server's time and effort or the users' time and effort. Strangely, the answer might depend on how close the forum owner is to monthly limits...

If you type a long message, it kinda makes you want to kick something, with things the way they are. ;)

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: "User xx has blocked your personal message."
« Reply #13 on: June 12, 2012, 05:29:57 PM »
The icon would solve just part of the issue.

Apart from the fact I don't remember how blocking PMs works, the original idea could be good: since we are already querying the database for the autosuggest function, it wouldn't be too difficult to find out if the user is ignoring you or not at that step and then show a warning.

May I move this to feature requests?


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

kat

  • Guest
Re: "User xx has blocked your personal message."
« Reply #14 on: June 13, 2012, 05:43:38 AM »
Yeah, 'course!

I was only thinking of having it here, really. But, thinking about it, it ought to be a standard thing.

Offline Angelina Belle

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,586
Re: "User xx has blocked your personal message."
« Reply #15 on: June 14, 2012, 08:37:34 AM »
Agree.  Because the site team very rarely approves mods and other customizations not available in standard SMF.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Offline ApplianceJunk

  • SMF Hero
  • ******
  • Posts: 3,474
    • ApplianceJunk.com
Re: "User xx has blocked your personal message."
« Reply #16 on: June 14, 2012, 08:56:34 AM »
which is more important.  The server's time and effort or the users' time and effort. Strangely, the answer might depend on how close the forum owner is to monthly limits...

If you type a long message, it kinda makes you want to kick something, with things the way they are. ;)

Keep your PM's short and to the point.
Maybe people won't want to block them then. :P

j/k

Offline Suki

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 15,088
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: "User xx has blocked your personal message."
« Reply #17 on: June 14, 2012, 09:25:11 AM »
Is not only for private messages, that is just a side effect of ignoring the user or one of the consequences of setting your pm settings to admin's pms only.
Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

kat

  • Guest
Re: "User xx has blocked your personal message."
« Reply #18 on: June 14, 2012, 11:50:31 AM »
Keep your PM's short and to the point.

I'm English.

We waffle a lot. :P

Offline Akyhne

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,331
Re: "User xx has blocked your personal message."
« Reply #19 on: November 15, 2012, 06:30:58 PM »
Bloody silly that you're told that AFTER you've typed it and not before, doncha think?
I know that member XX, he has blocked my PM's too :P

Offline live627

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,265
  • Gender: Male
  • Cat: Destroy!
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: "User xx has blocked your personal message."
« Reply #20 on: November 15, 2012, 07:33:03 PM »
How does it know who you're sending it to until you hit send?
autosuggest
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein

Offline IchBin™

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,115
  • Gender: Male
  • I don't speak German.
    • IchBin.us
Re: "User xx has blocked your personal message."
« Reply #21 on: November 16, 2012, 10:14:36 AM »
Yeah but that doesn't keep you from manually typing in the name.
Brad "IchBin™" Grow        TinyPortal        Themes
Coding Guidelines       

Offline Suki

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 15,088
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: "User xx has blocked your personal message."
« Reply #22 on: November 16, 2012, 11:11:47 AM »
Theres gotta be a check right after you click send and before the pm is actually stored on the DB (in theory, right after you got the actual ID or IDs), its not that difficult to apply as there are a lot of checks before the actual pm goes green.

This thing and also adding a check to avoid sending pms yo you (only a warning, because many people do actually send pms to themselves)  are things I want to implement.


Oh, I just realized the whole point is to let the user know before actually write the pm... in that case there are some possibilities to know the actual ID before start writing, the most obvious one is the direct pm this user link, another one is the autosuggest and some JavaScript trickery to intercept the resulting values, as for manually inserting the name, theres no much we can do on it as if the user is manually inserting the name it means that for some reason this user cannot or don't want to run JavaScript on her/his computer.
« Last Edit: November 16, 2012, 11:51:23 AM by Suki »
Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,101
  • Gender: Male
  • Running 2.0.xx on Apache.
    • Chas.Large on Facebook
    • https://www.linkedin.com/in/charles-large-568ba213 on LinkedIn
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Re: [2.1?] "User xx has blocked your personal message."
« Reply #23 on: February 26, 2013, 02:37:25 PM »
This subject has just cropped up on my site, since we've grown a lot lately due to another site's closure. Quite a few folk are blocking each other then others complain they send a PM only to be told the recipient has blocked everyone.

Can I suggest the feature simply removes any method to send a PM to a user who has chosen to block PMs.

Remove all icons, remove their name from the message recipient check list.

If they want to block everyone then every method to send to them should be removed.

If someone would care to do a quick and dirty mod for me to employ temporarily that would be great ;)
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,051
    • Arantor on GitHub
Re: [2.1?] "User xx has blocked your personal message."
« Reply #24 on: February 26, 2013, 04:12:22 PM »
Yay for hurting performance!
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

kat

  • Guest
Re: [2.1?] "User xx has blocked your personal message."
« Reply #25 on: February 26, 2013, 05:03:41 PM »
Sometimes, though, you have to get a balance, Arantor.

Try sending Arantor a message, here. ;)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,051
    • Arantor on GitHub
Re: [2.1?] "User xx has blocked your personal message."
« Reply #26 on: February 26, 2013, 05:09:11 PM »
*shrug* I make full use of the options I have at my disposal. The fact I prefer to do as much in public as possible should not be a problem, especially for an organisation that claims to be open and transparent ;)
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline dimspace

  • Jr. Member
  • **
  • Posts: 343
    • @dimspace on Twitter
    • Velorooms.com
Re: [2.1?] "User xx has blocked your personal message."
« Reply #27 on: February 26, 2013, 06:52:07 PM »
im all for it not saying anything at all, just pretending to send it and leaving you none the wiser.

An icon I woiuldnt want because it just draws attention to the fact that someone has blocked you. If two members have a dispute and one blocks the other, drawing attention to it is the last thing you need.

if SMF ever implement an icon that shows who has blocked you can someone write a mod that gets rid of it please? (or should i put a request for a modification that undoes a modification that doesnt yet exist in the random modifications request section)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,051
    • Arantor on GitHub
Re: [2.1?] "User xx has blocked your personal message."
« Reply #28 on: February 26, 2013, 06:57:41 PM »
It isn't just a case of 'user xx has blocked your personal message'. There are other circumstances that prompt this message, e.g. the user is banned or the user has requested account deletion. Admins will still  be able to send in spite of these restrictions, however.

The problem with this, though, is that if the message is sent, there is a chance the recipient will never see it. If they are banned/account pending deletion, no notification will be sent of the message. Not even from the admin, in fact.

All these circumstances go through one code path, and two of the three were reported by me as a bug. Long story as to how I discovered this. K@ and some of the others might remember, though.

Changing the behaviour of one implies changing the paths to the others too.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,119
  • Gender: Male
    • Kindred-999 on GitHub
Re: [2.1?] "User xx has blocked your personal message."
« Reply #29 on: February 27, 2013, 09:32:35 AM »
I was wondering about performance hits on for this request...  decided to leave it to someone who knew the system a little better.

the first thing that occrued to me was that - if each recipient has to be checked when the author is selecting them, that will actually a a LOT of hits directly into the database. - whereas, if (as now) the check is done when the system is alreayd writing the message to the target user's record in the database, it effect is minimal, because it's alreayd performing several db queries.

I *THINK* this is what Arantor is referring to...   and, honestly, as neat as it might be to do what Chas suggests, I can not see the performance hit (which would have to be done on EVERY PM attempt, whether the user is blocked or not) being worth the minor convenience.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,051
    • Arantor on GitHub
Re: [2.1?] "User xx has blocked your personal message."
« Reply #30 on: February 27, 2013, 09:42:19 AM »
Actually, not so much. Tying it into the auto suggest is reasonably easy, though not as light as it could be (will require a separate handler in the suggester to specifically check the buddies list for each member that does match, amongst other things)

The real issue I was getting at is the more rigorous checking Chas was suggesting, which means checking every user's buddy list every post as well as checking their PM preferences every post.

EDIT: And their ignore list too.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,101
  • Gender: Male
  • Running 2.0.xx on Apache.
    • Chas.Large on Facebook
    • https://www.linkedin.com/in/charles-large-568ba213 on LinkedIn
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Re: [2.1?] "User xx has blocked your personal message."
« Reply #31 on: February 27, 2013, 11:12:39 AM »
I see the points and I don't know the full functionality so please forgive my lack of knowledge but I see it like this.

If someone starts to send a PM, the system has to check the recipients username does it not? I assume this is the suggester Arantor mentions, how else how would a deleted member be checked?

So for each topic list of posts the system has to check the user exists anyway and populates the post icons, could a check not be built in there to see if PM is blocked? Surely a call to the current PM checking function that tests for who to receive PMs from is needed which in turn could switch off the icons dependent on that result. Would that hit of 20 to 30 extra calls be so large?

I don't know what function is called to say, place the AIM/ICQ/YIM icons against a post but it must be done for each member for any topic page of posts, maybe adding into that function, the check for recipient of PM could be added? which would lessen the queries used?

My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,051
    • Arantor on GitHub
Re: [2.1?] "User xx has blocked your personal message."
« Reply #32 on: February 27, 2013, 11:22:14 AM »
Quote
If someone starts to send a PM, the system has to check the recipients username does it not? I assume this is the suggester Arantor mentions, how else how would a deleted member be checked?

That isn't what I said. There is a world of difference between a deleted member and a member whose account is *pending* deletion. The difference being that in the first case there's no account, and in the second, there *is*. But that also overlooks banned status.

Quote
So for each topic list of posts the system has to check the user exists anyway and populates the post icons, could a check not be built in there to see if PM is blocked?

You mean the bit I specifically said hurts performance because there's no need to pull any of that normally in the list of posts?

Quote
Surely a call to the current PM checking function that tests for who to receive PMs from is needed which in turn could switch off the icons dependent on that result. Would that hit of 20 to 30 extra calls be so large?

20 calls every topic? Um, yes, it probably would, that's the point.

Quote
I don't know what function is called to say, place the AIM/ICQ/YIM icons against a post but it must be done for each member for any topic page of posts, maybe adding into that function, the check for recipient of PM could be added? which would lessen the queries used?

Um, how does 'no, because I already explained this would be a non trivial performance hit' sound?

Fetching the icon list is easy, it requires almost zero work if you're already fetching the member entry which is already two queries in its own right in a topic view.

Fetching both the ignore list and the buddy list for each person in the topic view, plus the PM preferences is not the same, however. The only question is whether it requires an extra query or two extra queries, plus the attendant processing for EVERY PAGE OF EVERY TOPIC, unless everyone is a guest.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: [2.1?] "User xx has blocked your personal message."
« Reply #33 on: February 27, 2013, 11:23:49 AM »
All of the things you mention are already known the moment SMF gets the info about a user because they are stored in the members table.

Enable or disable the PM icon on each member in "display" (i.e. topic view) is a pita because:
1) it depends on the settings of the "other" user,
2) it depends on "another table",
3) it may be different for each and every user.

So, to be sure, you have to:
1) check the settings of each user that posted in a topic,
1a) if that user has "allow PM from everybody" you are lucky,
1b) if the user has "no PMs" that's easy too,
1c) if the has "allow PMs only from buddies" SMF has to query *his* buddy list and see if *you* are there
1d) if the user has "don't allow from deny" SMF has to query *his* deny list to see if *you* are these
2) repeat 1 (including either 1a or b or c or d) for each poster in a topic on each and every page load.

Arantor was faster, but I already wrote it, so I posted... :P


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,101
  • Gender: Male
  • Running 2.0.xx on Apache.
    • Chas.Large on Facebook
    • https://www.linkedin.com/in/charles-large-568ba213 on LinkedIn
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Re: [2.1?] "User xx has blocked your personal message."
« Reply #34 on: February 27, 2013, 11:38:17 AM »
Obviously "Please please my lack of knowledge" means little and my post was not a criticism but you've obviously taken it that way. I'll bow out now.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: [2.1?] "User xx has blocked your personal message."
« Reply #35 on: February 27, 2013, 11:39:39 AM »
You asked for clarifications. :P


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,051
    • Arantor on GitHub
Re: [2.1?] "User xx has blocked your personal message."
« Reply #36 on: February 27, 2013, 12:02:43 PM »
Quote
Obviously "Please please my lack of knowledge" means little and my post was not a criticism but you've obviously taken it that way. I'll bow out now.

What I object to is the fact that I'd already implied all this anyway and you're essentially saying 'I don't know much but you might be wrong because <some other stuff>'
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Angelina Belle

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,586
Re: [2.1?] "User xx has blocked your personal message."
« Reply #37 on: February 27, 2013, 12:19:28 PM »
Arantor, many rather helpful support specialists really don't understand what you imply when you say "Yay for hurting performance!".  The more in-depth explanations you and emanuele gave was really helpful in providing some relative idea of how many additional queries a feature like that would add.

It would take at least 100 hours of study for any one of us to follow the code well enough to begin to ferret out for ourselves what you and emanuele explained.

Speaking for myself, I really appreciate the explanations you two offered.  You two have made it clear that
* "Don't even offer to let me PM someone who has blocked all or blocked me" is NEVER going to be an SMF feature
* There are some other, more reasonable possibilities for checking whether the other member can receive my PM BEFORE I write it, which could be implemented as mods before being considered, in the usual way, for inclusion in some future SMF version.

Thanks
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

kat

  • Guest
Re: [2.1?] "User xx has blocked your personal message."
« Reply #38 on: February 27, 2013, 12:25:34 PM »
When I made my original post, I assumed, somewhat naively, that the same stuff would have to be queried, whether the thing did it before, or after the message was typed. Using that line of thinking, any performance hit would've occurred, whichever way it's done.

I won't pretend to understand more than a couple of words of what Arantor and Mannykins have said, by way of explanation, though. :)

I might just send a pre-emptive message, in future, simply saying "Testing to see if this is gonna get blocked", before typing a whole message out in another one. ;)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,051
    • Arantor on GitHub
Re: [2.1?] "User xx has blocked your personal message."
« Reply #39 on: February 27, 2013, 12:29:05 PM »
Quote
Arantor, many rather helpful support specialists really don't understand what you imply when you say "Yay for hurting performance!".  The more in-depth explanations you and emanuele gave was really helpful in providing some relative idea of how many additional queries a feature like that would add.

And more detailed information was provided in a follow-up to that, before we get to it being questioned.

Quote
It would take at least 100 hours of study for any one of us to follow the code well enough to begin to ferret out for ourselves what you and emanuele explained.

And that's cool. We enjoy this stuff, which is why we do what we do. We do not enjoy having to explain why something is so in minute detail. I had hoped that reply #30 would have sufficed as to the problems inherent in doing this, followed up with "I admit I don't know much but I think you might be wrong because <some other stuff>"

I mean, I could waste even more of my time finding exactly where this stuff is stored (because none of it's documented anywhere, yup, that's right, there is precisely zero documentation on what the database does), to prove my point, but that just wastes even more of my time.

The thing is, pretty much everything that's been said today about how complicated this is was already covered in the page-and-a-half that was already here. All the salient points had already been made already.

Though, let's round it off. Oh, and admins shouldn't be able to be blocked but admins can block in return as far as I remember.

Oh and all this is before you realise that the entire PM code is a complex rat's nest and that changing it is fundamentally nasty.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.