make a monogamous relationship

sziggle - January 27, 2009 - 03:58
Project:User Relationships
Version:6.x-1.0-rc2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:by design
Description

is there any way to (or how do you) create monogamous relationships, such that user A can have this particular relationship type with one and only one user B and that automatically implies the reciprocal from B to A?

i don't want to limit the "sluttiness" of other relationship types, i want to create a specific relationship type that has to be monogamous.

can do?

thanks to anyone who can point me in the right direction.

#1

alex.k - January 27, 2009 - 07:54
Status:active» by design

lol love your wording :)

At the moment it's not possible to do that without changes to the module. You would have to have a workflow in place to divorce, establish a new relationship, etc.

#2

sziggle - January 27, 2009 - 16:18

thanks for the response. would the workflow for ending this type of relationship be any different than ending any other two-way relationship?

i think basically what would need to be added is a single checkbox to the relationship type definition form (see attached) and some kind of logic in the module that just says a user can have no more than one of this type of relationship.

am i missing anything? would that be hard? does it seem like a worthwhile addition to this module?

thanks again.

AttachmentSize
monogamy.png 37.38 KB

#3

silid - March 31, 2009 - 20:06

I would love this feature - though if i were building it I would rather make it so that you could specify the limit of this relationship. So you may want some relationships to be limited to 1 but others to 2 or more.

#4

alex.k - April 1, 2009 - 16:01

A patch implementing this would be appreciated. Per #3, an integer input for the number of relationships would be more flexible, indeed. That in itself would not be a major amount of work. If you look at #228206: Different types of relationships per role type and its commit http://drupal.org/cvs?commit=176372 (it was committed with some other fixes, so it's not so easy to tell which of the code is responsible for which issue), you can see where the checks have been added to ensure that a relationship is eligible to be added between two users. The same type of checking is what is needed here. Plus an admin option to control the number input or the checkbox.

#5

silid - April 3, 2009 - 10:01

I wish I had time right now to do this. I think it may be slightly more complicated though. For example you may have multiple relationship requests but when you select one the others should be cancelled.

#6

jalder - November 10, 2009 - 20:43
Version:6.x-1.0-beta9» 6.x-1.0-rc2

I am in dire need of this exact feature. If a couple people want to get together and talk about a game plan to accomplish this, I am game.
I am mostly concerned with stripping the option to invite more "Significant Others" if you already have a "Significant Other" so the invite a "Friend" doesn't feel so clunky. I am a bit overwhelmed at the amount of forms that will need to have this test put in place.

 
 

Drupal is a registered trademark of Dries Buytaert.