Risa
New Member
Posts: 31
inherit
191532
0
Sept 17, 2021 13:00:44 GMT -8
Risa
31
March 2013
eriza
|
Post by Risa on Dec 13, 2013 6:41:54 GMT -8
Made this adjustment for my site, CLOSE TO HOME, about a month ago. So, I thought I'd share since it's trending on some other sites I've seen. I don't exactly know how they did it but, this is how I did it.
REPLACE THIS ( LINES 79 - 81 of the HOME layout template )
{foreach $[online_user]} $[online_user]{if $[online_user.invisible]} <span class="small">(invisible)</span>{/if}$[online_user.comma] {/foreach} WITH THIS
{foreach $[online_user]} <a href="$[online_user.link.href]" class="tip">$[online_user.avatar_small] <span>$[online_user.name]</span></a>{if $[online_user.invisible]} <span class="small">(invisible)</span>{/if} {/foreach} Now, I have a specific tool tip that I created to show the username when you hover over the avatar.
ADD TO THE BOTTOM OF YOUR STYLESHEET
a.tip { position: relative; }
a.tip span { display: none; position: absolute; top: -35px; left: 25px; width: 75px; padding: 5px; z-index: 100; font-size: 8px; font-family: 'arial'; background: #00BCFC; color: #fff; -webkit-border-radius: 5px; border-radius: 5px; }
a:hover.tip { font-size: 99%; /* IE */ }
a:hover.tip span { display: block; }
This particular tooltip is a bright light blue and hovers just above the avatar to the top-right area. You can literally change it to any position or color you want in the a.tip span part of the css. Edit to your heart's content.
|
|
inherit
210882
0
Dec 8, 2014 13:50:08 GMT -8
Eileen
86
June 2014
eileenharlow
|
Post by Eileen on Jul 12, 2014 19:17:57 GMT -8
Hello. How can I make them all in one horizontal line? Right now, they are all vertical. thgtrilogy.boards.net/Thank you!
|
|
Risa
New Member
Posts: 31
inherit
191532
0
Sept 17, 2021 13:00:44 GMT -8
Risa
31
March 2013
eriza
|
Post by Risa on Jul 16, 2014 23:05:00 GMT -8
|
|
soup
New Member
Posts: 123
inherit
soup.alvarado@gmail.com
194992
0
Nov 19, 2015 12:06:06 GMT -8
soup
123
June 2013
soup
|
Post by soup on Jul 29, 2014 8:20:34 GMT -8
this is greatness
|
|