Closed (fixed)
Project:
FriendList
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2008 at 08:25 UTC
Updated:
16 Oct 2008 at 07:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
mariusooms commentedDo you mean to replace the link with an image? You would do that through css, since each link as a unique class it shouldn't be to hard to achieve this.
The best and easiest, shortest explanation can be found here on Mike Rundle's Weblog: http://phark.typepad.com/phark/2003/08/accessible_imag.html
Have a go at it and let us know if you run into any trouble.
Regards,
Marius
Comment #2
gabriel.ferreira commentedDidn't work. The background image goes to left with the text, and i can't rezise the div to fit image size ( height: 25px; width: 158px;).
I try putting the html image code on the Friendlist UI Module on the field :
Description of operation on_delete, for 'link':
[ Img code]
But it didn't work, i guess it's for a security reason.
Comment #3
mariusooms commentedHi, actually it does...but you might need a bit more help ;) Your approach to paste HTML into the field will not work and you are right - for security reasons.
So you need to use css image replacement technique. Below I'm pasting the code you need to put into your theme stylesheet. It is for your specific image size (height: 25px; width: 158px;) and for this example I used the link for on_delete:
You can repeat this code for any specific link. You only need to adjust the class of the link. Alter the sizes to match your image and paths to the correct location.
I even attached two images two show you this is tested and works fool proof. You also don't need to change anything in the Friendlist UI module.
Regards,
Marius
Comment #4
gabriel.ferreira commentedThx, it worked nice.
Comment #5
mercmobily commentedHi,
Marius, I don't suppose you could add this information in a section of the User documentation?
Merc.
Comment #6
mariusooms commentedYep...no problem we can add this. We can make a section for Styling. This technique can also support replacing the frid's with icons.
Regards,
Marius
Comment #7
mercmobily commentedHi,
Yep -- thanks!
Merc.
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.