Postponed
Project:
User Relationships
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Jan 2010 at 15:44 UTC
Updated:
30 Apr 2020 at 08:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alex.k commentedThere is no way without a confirmation dialog. You need to implement form_alter to take out the confirmation.
Comment #2
henrijs.seso commentedThis could be added to module as fix.
I dived into module and saw few things that could be improved, this being one. Relationship object could benefit from few more settings, like Link text, which could be different for each RTID, also skip confirmation form could be cool checkbox. I am building a rather large project and could contribute patches along the way, but Ill open new issue for that.
Comment #3
toemaz commented@LavaMeTender
Have you gotten around this? Did you implement hook_form_alter to avoid the confirmation dialog?
Comment #4
henrijs.seso commentedyes, I did.
following went to custom module (sorry for debug lines)
and following into themes template.php
Again sorry for code quality and commented lines, but its just what I had to get functionality for my particular case. Havnt looked at this for a while, but it worked. To rest is to add this line in template .tpl or block
print MODULENAME_return_ur($uid);where $uid is user ID of other user, not active user and links and statuses will be printed. Please see if any of this helps and if you do manage to improve code, at least paste it here, maybe we can figure out something togather. BTW there are 2 relationships - Friend and Follower in my setup.Comment #5
toemaz commentedThanks a lot for this fast reply and sharing the code LavaMeTender. It seems we need a similar 'solution' since I wanted followers to start with and perhaps friends later on. I'll share back my code once I'm finished.
Comment #6
mrf commentedI am postponing any 6.x feature requests that don't have a current applicable patch to help sort the large list of open features.
Please feel free to set to 'needs review' once a patch is included.
Comment #7
lildragon commentedHi, is there any development for this? a simple follow without confirmation is pretty standard these days, i wonder if there is an easy way around it. thanks!
Comment #8
toemaz commented@lildragon no development from my side. I decided to go with the flag module instead. To much overhead with the UR module.
Comment #9
mrf commentedThis wouldn't be that difficult to implement, but I'd rather this be a admin setting than the default. The most difficult part is separating this from the other concept of approval in the UI.
I'm tagging this as a novice issue, for anyone looking to jump into contributing to UR this would be a good place to start.
Comment #10
lildragon commentedthanks for the reply. Yes, I switched to flag as well..
Comment #11
anybodyAs stated out in #7 this feature is still relevant, +1 for that!
Comment #12
liquidcms commentedBeen poking around with this for a while and a few comments:
1. seems like a pretty obvious addition to this module; unfortunate that it hasn't been added
2. solution posted in #4 does work but a couple issues with it:
a. theme function no longer takes a sequence of passed vars; it requires an associated array, so this:
becomes this:
b. ideally this would still be ajax driven link; having it do a page load sort of defeats the point of this of trying to make this process more streamlined
3. better solution is still to include this in the module itself as an admin configurable option; but project maintainer suggesting this was Novice must have been joking.. lol
Need to discuss with client how committed they are with this module and whether they want me to add this function or possibly do like most here and switch to the Flags module.
Comment #13
liquidcms commentedi continued with work from #4 and created a module for this.
- self contained module so no need for template.php code
- ajaxified links
- this module is not complete and has a few places which are still specific to my use case; but general concepts are there and work (for RTID =2 (Follow), in my case)
There are a lot of options/changes which could be added to this to make it a generic module:
1. link text needs to be pulled from relationship
2. what are ajax links replaced with? i think the generic case is likely to replace with the opposite link, i.e. replace "follow" with "unfollow"; but in my case, and therefore this module, i simply wanted the "Follow" link to be removed and not replaced with anything. Our users would go to their manage relationships page to unfollow.
Comment #14
liquidcms commentedhere is a better version of my module. It is mostly generic now although there is a little code to rename the link's instead of what is configurable by the UR module.
this version includes replacing friend link with unfriend link and vise versa. It also does an entire row removal from the manage friends page.
since this is ajax the messages spit out by the UR module are "late"; this could pretty easily be fixed and i may get to that later.
Comment #15
liquidcms commentedoops.. and the ZIP
Comment #16
hockey2112 commentedThanks for this! Can you please explain how I your custom module would work if you have more than one type of User Relationship, and need to display both types on the page?
Comment #17
garchris commentedThanks for this code. It worked in preventing confirmation dialog when sending a request. Now I'd like to prevent confirmation dialog when accepting/rejecting a relationship request. I know very little php. Any help appreciated
Comment #18
cassien commentedHello!
I'm using this little module and I have a little problem.
I have multiple "subscribe to user" buttons on a same page.
When you press a button, all the buttons are turning to "subscribed".
And I strictly don't know how to solve that ...
Thanks in advance.