Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | Screenshot of relationship request form with the message | 25.89 KB | alex.k |
Comments
Comment #1
DesignWork CreditAttribution: DesignWork commentedHI Scott,
i would test your code and support you writing this.
Dirk
Comment #2
scottgifford CreditAttribution: scottgifford commentedHi 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.
Comment #3
DesignWork CreditAttribution: DesignWork commentedHi 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
Comment #4
alex.k CreditAttribution: alex.k commentedSwitching 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.
Comment #5
scottrigbyhi 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
Comment #6
scottrigbyoops - had the stable release running (heh) - tested the dev release & all works well :)
Comment #7
zilla CreditAttribution: zilla commentedthis 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?
Comment #8
alex.k CreditAttribution: alex.k commentedThis 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.Comment #9
zilla CreditAttribution: zilla commented@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...
Comment #10
alex.k CreditAttribution: alex.k commentedNot 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.
Agreed, this is a nice way to promote the feature throughout a site - any help from themers out there will be really great.
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #12
andypostI'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?
Comment #13
alex.k CreditAttribution: alex.k commented@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.
Comment #14
andypost@alex.k Thanks a lot, I'm using beta9 - but module elaboration was not enabled
Now everything works fine
Comment #15
alex.k CreditAttribution: alex.k commentedComment #17
rameshbabu.g CreditAttribution: rameshbabu.g commented@alex.k: Thank you very much for your suggestion.I really struggled to get this comment box.