Hello,

Is it possible to include a short message with a relationship request? For example, if I am asking to add you as a friend, I might say "Didn't we meet at that concert last night?" or "Hey, remember me from high school?".

If not, would there be any interest in this functionality if I wrote some code?

Thanks!

----Scott.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DesignWork’s picture

HI Scott,

i would test your code and support you writing this.

Dirk

scottgifford’s picture

Hi Dirk,

I haven't actually written any code yet, this task got bumped down my todo list by some other higher-priority items. When it works its way back to the top I'll post some code here, but it's likely to be awhile.

DesignWork’s picture

Hi Scottgifford,

take your time. I switched to budylist 2 because of the API and made my own module for all the stuff i nedded.

Thanks

Dirk

alex.k’s picture

Version: 5.x-2.8 » 6.x-1.x-dev
Assigned: Unassigned » alex.k
Category: support » feature
Status: Active » Fixed
FileSize
25.89 KB

Switching to the 6.x branch. If anyone wishes to implement this for 5.x, please submit a patch.

Committed an implementation by @darren.ferguson. The message is sent to the requestee, and when they approve they have a chance to edit or erase the message before approving (editing the same field as in the existing elaborations module). At that point the message becomes viewable by both requester and requestee just as before.

scottrigby’s picture

Status: Fixed » Active

hi alex.k, I'm not able to get this to work as explained above... am I missing something?

User A is able to create a relationship, but not elaborate on the request.

User B is able to elaborate when approving the request - but this doesn't sound like the way it's designed to work. There should be an initial elaboration, which the approving user can edit or approve as-is, right?

I've looked over all the configurations at /admin/user/relationships/ (* List * Add type * Settings * Edit), and added all permissions (except 'administer user relationships'), and I see the option to turn off the UI, but I can't see any way to adjust this otherwise.

Thanks in advance for your help :)
Scott

scottrigby’s picture

Status: Active » Fixed

oops - had the stable release running (heh) - tested the dev release & all works well :)

zilla’s picture

this would be an outstanding addition to this module - was mulling over switching to that friends module thing for d6 because it has this particular feature - people don't want to randomly friended in all community sites, so something easy like 'include a note (optional)' is very useful!

will this be rolled into a next release? or is it already in dev for d6 branch?

alex.k’s picture

This is already in today's dev release - be sure to use that, not beta8 :) Today there was another commit that makes this an ajaxy popup form, try it out.

@scottrigby what you are describing is the old way it used to work - the new version should show you a form like in the screenshot. Let me know if you are not seeing it with the current dev release.
Edit: doh, need to read the whole thread... looks like you got it sorted.

Note that in order to get ajax behavior, you need to use stock links in the user profile, or make sure that any custom links you have have a class="user_relationships_popup_link", as that is needed to activate it. Otherwise you will be taken to a separate page to enter the message and send your request.

zilla’s picture

@alex.k - per this:

"Note that in order to get ajax behavior, you need to use stock links in the user profile, or make sure that any custom links you have have a class="user_relationships_popup_link", as that is needed to activate it. Otherwise you will be taken to a separate page to enter the message and send your request."

...and maybe this is a distinct feature request (if you think it's valid) - any chance this could be summoned as a CCK for insertion using Content Profile module (it's becoming very popular on d6)? basically insert the 'add as friend' in desired position on profile and wrap with this class?

...or maybe this is a broader request like 'expose UR function globally alongside username whereever it appears" (meaning i'm browsing the site and see you commented on anything, or wrote something, or whatever, and because we are or are not friends via UR, whenever i see your name i also see a little link like "add to friends" or "remove from friends" or "your friend" - each link calling a simple function and could use one or two or all...

alex.k’s picture

...and maybe this is a distinct feature request (if you think it's valid) - any chance this could be summoned as a CCK for insertion using Content Profile module (it's becoming very popular on d6)? basically insert the 'add as friend' in desired position on profile and wrap with this class?

Not sure how CCK is playing in here... One way to do this is a custom template for the profile node, or contemplate can do the job, too... We do use content_profile, so we have many of the same issues, solved with a custom template for the content type.

...or maybe this is a broader request like 'expose UR function globally alongside username whereever it appears" (meaning i'm browsing the site and see you commented on anything, or wrote something, or whatever, and because we are or are not friends via UR, whenever i see your name i also see a little link like "add to friends" or "remove from friends" or "your friend" - each link calling a simple function and could use one or two or all...

Agreed, this is a nice way to promote the feature throughout a site - any help from themers out there will be really great.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

andypost’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

I'm using 6-dev version and can't find short message neither in request nor in pending queue.

Is there plans to make this feature?

alex.k’s picture

@andypost are you using beta9 or the current -dev release? Make sure UR-Elaborations module is enabled. And if it is but you still don't see it, check that in /admin/user/relationships/settings " Do not use the elaborations UI" is _not_ checked.

andypost’s picture

@alex.k Thanks a lot, I'm using beta9 - but module elaboration was not enabled

Now everything works fine

alex.k’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rameshbabu.g’s picture

@alex.k: Thank you very much for your suggestion.I really struggled to get this comment box.