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.
The forum of the forums
4 posters

    Making Profile field icons clickable

    Manameh
    Manameh
    Forumember


    Posts : 31
    Reputation : 2
    Language : English

    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

    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....
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    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.
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    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>');
     Â   });
    });
    Manameh
    Manameh
    Forumember


    Posts : 31
    Reputation : 2
    Language : English

    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
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    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
    Manameh
    Manameh
    Forumember


    Posts : 31
    Reputation : 2
    Language : English

    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
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    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; }
    Manameh
    Manameh
    Forumember


    Posts : 31
    Reputation : 2
    Language : English

    Solved Re: Making Profile field icons clickable

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

    Solved, thanks very much for your help. Smile
    Jophy
    Jophy
    ForumGuru


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

    Solved Re: Making Profile field icons clickable

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

    Solved => Locked

      Current date/time is November 13th 2024, 7:02 pm