Actually, Sans Groupe (Ungrouped) is a term I used in some places in the French version to represent Regular Members.
Here's why I'm talking about this. In my current code, thought privacy is set to '-1,0' (guests + regular members). So, what if your primary group is not 0? Well, you can't see the thought... :-/
It's pretty much the same problem as with board access, *except* that it has to be set on every single thought you send.
Funny...
Posted: March 15th, 2012, 03:55 PM
(For instance, you wouldn't be able to view these thoughts, since you're in the Wedgeward primary group...)
I thought about it again, and it just struck me that in AeMe, I did it very simply: I took all groups that were being used as a primary group, and added them to my '-1,0' string... It requires an extra query, though. Or storing that list in a setting, maybe.
Posted: March 15th, 2012, 04:34 PM
Hmm...
This is bordering into hack-land, right? ;)
That doesn't say what 'un' is for ;)
Anyway... Is it enough to justify not using -2? I mean, it's apparently only used in the id_parent owner of membergroups.
I'll stick with -3 for now.
Posted: March 15th, 2012, 06:23 PM
Oh, bummer... I just thought about the extra possibility I forgot -- private thoughts that should only be between the user and the person they replied to. I suspect that just filling in a blank value would be okay, though... (The default for the privacy field is -3.)
Posted: March 15th, 2012, 06:42 PM
Hmm, it's getting interesting...
If I implement 'me and recipient', this means I have to add a test for the parent's member ID before showing the thought. Which is okay. But what if you don't want said person to read your post...? Well, will I have to test for the parent only if the field is empty...? And what if you just want the thought to be read by you, the recipient and your friends (a custom ID), *but* the recipient isn't your friend...?! Then I suspect I'll have to add another virtual membergroup, e.g. '-5' would mean 'me and said member...'
Heck, thinking about it, it'd even be simpler to have something like: 'mem-1, mem-5, 12', meaning 'only member 1, member 5 and group 12'... Since we only have to search for mem- + my own user ID for the privacy test, that'd be doable... Meh ;)