The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Making Profile field icons clickable

4 posters

Go down

Solved Making Profile field icons clickable

Post by Manameh January 26th 2014, 3:41 am

ok so i made this 'profile field' by going to users and groups, then Users > Profiles > Profile fields > Modify.
once i was done, it was successful.

Making Profile field icons clickable 68ei

now my goal is to get that icon to be clickable, so when you click it, it links you to the user's profile of whom you've clicked the icon under. 

this is the url of the icon.
https://i.imgur.com/IgUk4dh.gif

If there is any css/javascript/html, please let me know.
sorry if this is in the wrong section.

thanks.
Manameh
Manameh
Forumember

Posts : 31
Reputation : 2
Language : English

http://naruhina.lovediscussion.net/

Back to top Go down

Solved Re: Making Profile field icons clickable

Post by Manameh January 26th 2014, 10:05 pm

BUMP Sad
sorry, iv'e been waiting a long while now....
Manameh
Manameh
Forumember

Posts : 31
Reputation : 2
Language : English

http://naruhina.lovediscussion.net/

Back to top Go down

Solved Re: Making Profile field icons clickable

Post by SLGray January 27th 2014, 12:03 am

Second Reminder:

Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead!


Making Profile field icons clickable Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Making Profile field icons clickable

Post by Ange Tuteur January 27th 2014, 9:30 am

Hello,

You can try doing this :
Administration panel > modules > javascript codes management > create a new script

title : what you wish
placement : in the topics
paste the code below and save :
Code:
$(document).ready(function() {
    $('.postprofile img[src="http://i.imgur.com/IgUk4dh.gif"]').each(function() {
        var t0 = $(this).closest('dl').children('dt').children('a').attr('href');
        $(this).wrap('<a href="'+t0+'"></a>');
    });
});
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Making Profile field icons clickable

Post by Manameh January 27th 2014, 11:56 am

sorry for the trouble i have caused. Sad
thank you very much!!
it worked like a charm.

Now what im looking for is a text above it... "Awards:"
tand that's it! thanks
Manameh
Manameh
Forumember

Posts : 31
Reputation : 2
Language : English

http://naruhina.lovediscussion.net/

Back to top Go down

Solved Re: Making Profile field icons clickable

Post by Ange Tuteur January 27th 2014, 12:08 pm

Administration panel > users and groups > edit your field

For display type choose : Icon + text and save.

Making Profile field icons clickable Captu333
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Making Profile field icons clickable

Post by Manameh January 27th 2014, 12:14 pm

i know... but it always comes to the left, is there any way to make the text come above the icon? Smile
Manameh
Manameh
Forumember

Posts : 31
Reputation : 2
Language : English

http://naruhina.lovediscussion.net/

Back to top Go down

Solved Re: Making Profile field icons clickable

Post by Ange Tuteur January 27th 2014, 12:17 pm

add this to your CSS :
Display > colors > CSS stylesheet
Code:
.postprofile img[src="http://i.imgur.com/IgUk4dh.gif"] { display:block; }
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Making Profile field icons clickable

Post by Manameh January 27th 2014, 2:15 pm

Solved, thanks very much for your help. Smile
Manameh
Manameh
Forumember

Posts : 31
Reputation : 2
Language : English

http://naruhina.lovediscussion.net/

Back to top Go down

Solved Re: Making Profile field icons clickable

Post by Jophy January 27th 2014, 3:22 pm

Solved => Locked
Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum