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

    Online icon for Invision

    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Online icon for Invision

    Post by runawayhorses Sat 18 Aug - 13:42

    As you can see from this screenshot the online icon is to the left of my name "runawayhorses' the first name on top of this screenshot, its the little round blue icon. I would like to put a wider online icon above the names so the width of the online icon doesn't push the names farther to the right. So my question is how do you make it so the users online status icon appears above there name and avatar? I'm using Invision. thanks

    Online icon for Invision Avataronline


    Last edited by runawayhorses on Mon 20 Aug - 8:13; edited 1 time in total
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Re: Online icon for Invision

    Post by runawayhorses Sun 19 Aug - 17:10

    Bump

    Anyway to put the online icon above the avatar and name for Invision?
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Online icon for Invision

    Post by LGforum Sun 19 Aug - 21:09

    Yes, posts are given the classname 'online' when the user is online.

    Code:

    .post.online .postprofile .popmenubutton a:before {
      content: 'Online';
    }
    Add colors, and such things to your liking.
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Re: Online icon for Invision

    Post by runawayhorses Sun 19 Aug - 22:51

    Here is what it looks like when I added that code. It doesn't break into a second line above the users name, and it positions itself to the left side of the online icon. I like this code for the text "online" and will use it as opposed to a icon if I can get it to position above the users name in the center. So how can I position this code above the users name, centered?

    Online icon for Invision Onliness
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Online icon for Invision

    Post by LGforum Mon 20 Aug - 2:59

    Just give it a display property of 'block'
    Code:
    .post.online .postprofile .popmenubutton a:before {
      content: 'Online';
      display: block;
    }

    As long as you've got the actual text within that box centered it should give you what you want.

    If the text in that box isn't centered then this will center it:
    Code:
    .post .postprofile .popmenubutton {
      text-align: center;
    }
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Solved Re: Online icon for Invision

    Post by runawayhorses Mon 20 Aug - 8:08

    Ok thanks LG. When I added the "block" it pushed the user name down too far and as a result the name ran into the avatar. Also you can see there is a little arrow to the right of the user name that when clicked displays profile options (i.e. send PM, view profile, etc) and that could not be closed again because the box it displays when opened covers the arrow to close it. So I decided to put the online "inline" like you see in this screenshot below. What I did was created a transparent 10x10 icon to give a space between the online text and the user name which goes in AP>>Display>>Pic Management. Since the icon in pic management is already coded to be placed next to the user name it was the obvious place to add a spacer between the text "0nline" and the user name.

    Thanks again, this is solved.

    Online icon for Invision Profileblock
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Online icon for Invision

    Post by Sanket Mon 20 Aug - 8:42

    Topic Solved & Locked

      Current date/time is Sun 22 Sep - 18:37