User icon shows wrong and How do i change the Profile background Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    User icon shows wrong and How do i change the Profile background

    avatar
    CallMeMatt
    New Member


    Posts : 8
    Reputation : 1
    Language : Swedish

    In progress User icon shows wrong and How do i change the Profile background

    Post by CallMeMatt February 25th 2013, 5:28 pm

    I've used the "Icon before username" code for Invision,
    And it shows right on the home page and chatbox,
    but in the post, it just shows the same for everyone i added one to.
    And no icon shows on Portal.
    User icon shows wrong and How do i change the Profile background 210

    Also, how would i do to add a background on the Profile information in posts like this
    User icon shows wrong and How do i change the Profile background 110
    But the background is only going to be for me, and threw the whole post (wide)

    Glad for every answer, thanks.
    avatar
    CallMeMatt
    New Member


    Posts : 8
    Reputation : 1
    Language : Swedish

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by CallMeMatt February 25th 2013, 7:54 pm

    Could i please get some help?
    SLGray
    SLGray
    Administrator
    Administrator


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

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by SLGray February 25th 2013, 7:58 pm

    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!



    User icon shows wrong and How do i change the Profile background Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    CallMeMatt
    New Member


    Posts : 8
    Reputation : 1
    Language : Swedish

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by CallMeMatt February 26th 2013, 10:19 pm

    Bump.
    Nobody knows this..?
    Cassius Dio
    Cassius Dio
    Forumember


    Male Posts : 581
    Reputation : 79
    Language : Romanian &English
    Location : Yellow Submarine

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by Cassius Dio February 27th 2013, 6:04 am

    Hi! Very Happy

    For first problem, did you selected "All pages" to field "Placement"?

    For second one, add to JavaScript codes management:
    Code:
    $(document).ready(function(){
    $('.post .postprofile').has('a[href="/u1"]').addClass('adminpost');
    });

    And then to CSS Stylesheet:
    Code:
    .adminpost .postprofile{
    background: #00CCEE !important;
    }
    You can replace #00CCEE by another color. Wink
    avatar
    CallMeMatt
    New Member


    Posts : 8
    Reputation : 1
    Language : Swedish

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by CallMeMatt February 27th 2013, 2:57 pm

    Yes, i've ticked All pages.
    And the profile background you put, did not work at all.

    Any other ways?
    avatar
    CallMeMatt
    New Member


    Posts : 8
    Reputation : 1
    Language : Swedish

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by CallMeMatt March 1st 2013, 2:37 pm

    Bump.
    Cassius Dio
    Cassius Dio
    Forumember


    Male Posts : 581
    Reputation : 79
    Language : Romanian &English
    Location : Yellow Submarine

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by Cassius Dio March 1st 2013, 2:40 pm

    Sorry, replace the CSS code with:
    Code:
    .adminpost{
    background: #00CCEE !important;
    }

    The JavaScript code is the same.
    avatar
    CallMeMatt
    New Member


    Posts : 8
    Reputation : 1
    Language : Swedish

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by CallMeMatt March 1st 2013, 3:21 pm

    Thanks, now i just need help with the Icons before the username.
    Cassius Dio
    Cassius Dio
    Forumember


    Male Posts : 581
    Reputation : 79
    Language : Romanian &English
    Location : Yellow Submarine

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by Cassius Dio March 1st 2013, 3:24 pm

    Can you post here all the codes you've used for adding an icon before username? Thanks. Very Happy
    avatar
    CallMeMatt
    New Member


    Posts : 8
    Reputation : 1
    Language : Swedish

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by CallMeMatt March 1st 2013, 7:00 pm

    I actually got it to work (kind of),
    but there's a couple issues with it.

    Instead of the CSS i first used i switched to JS instead,
    Code:
    $(function() {
    if($('a[href="/u1"] span strong')){
                $('a[href="/u1"] span strong').before('<img src="https://dl.dropbox.com/u/35320740/20091122095739%21Jmod_crown.png" border="0" />');
        }
    });

    But the issue with that is,
    1. The icon does not show before the username (above the avatar) as it did before.
    User icon shows wrong and How do i change the Profile background Icon10

    2. The icons doesn't show at all for offline users?

    3. The icons doesn't show in the chatbox?
    Cassius Dio
    Cassius Dio
    Forumember


    Male Posts : 581
    Reputation : 79
    Language : Romanian &English
    Location : Yellow Submarine

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by Cassius Dio March 1st 2013, 8:45 pm

    Try replacing it by:
    Code:
    $(function() {
    if($('a[href="/u1"]')){
                $('a[href="/u1"]').before('<img src="https://dl.dropbox.com/u/35320740/20091122095739%21Jmod_crown.png" border="0" />');
        }
    });
    avatar
    CallMeMatt
    New Member


    Posts : 8
    Reputation : 1
    Language : Swedish

    In progress Re: User icon shows wrong and How do i change the Profile background

    Post by CallMeMatt March 1st 2013, 10:28 pm

    It did not work, it's still the same.