Closed (fixed)
Project:
User Relationships
Version:
6.x-1.0-beta9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Anonymous (not verified)
Created:
28 Apr 2009 at 16:41 UTC
Updated:
12 Feb 2025 at 18:18 UTC
Jump to comment: Most recent file
Comments
Comment #1
MisterSpeed commentedComment #2
MisterSpeed commentedPlease find patch file for the css changes, The image path you can change, currently the patch using the default background image.
Comment #3
jaydub commentedWhat you need to do is override the default theme function that generates the Add/Remove relationships links.
These default theme functions are all defined in user_relationships/user_relationships_ui/user_relationships_ui.theme.inc
In case you don't know the drupal theming layer:
http://drupal.org/node/341628
If we take one example theme function:
If you wanted to override this and change the text link to an image you could do something like:
Comment #4
MisterSpeed commentedwe change the css file for this, we put the background image for the link which are default created by theme function, the pach file have little css change to make Become a Friend link to image buttom. --- A.s.
Comment #5
alex.k commentedThank you both. The point of @jaydub is we should not advocate changes to the core module files, because if the person follows instructions and patches, they will lose the changes when they update the module. Hence overriding the template file, or putting CSS changes into the site's custom theme if there is one.
That said I believe there is enough information here for the original poster to work with. Please reopen if additional support is needed. Thanks.
Comment #6
63reasons-AS commented