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 Sun 26 Jan 2014 - 3:41

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 Sun 26 Jan 2014 - 22:05

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 Mon 27 Jan 2014 - 0:03

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 : 51576
Reputation : 3525
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 Mon 27 Jan 2014 - 9:30

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 : 13207
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 Mon 27 Jan 2014 - 11:56

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 Mon 27 Jan 2014 - 12:08

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 : 13207
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 Mon 27 Jan 2014 - 12:14

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 Mon 27 Jan 2014 - 12:17

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 : 13207
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 Mon 27 Jan 2014 - 14:15

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 Mon 27 Jan 2014 - 15:22

Solved => Locked
Jophy
Jophy
ForumGuru

Male Posts : 17922
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