• Welcome to ForumKorner!
    Join today and become a part of the community.

[Tutorial] Forum's Description on Mouse Hover

Simple

Active Member
Reputation
0
Go to: ACP > templates > Forumbit Templates > forumbit_depth2_forum > find the following:

PHP:
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>

and change it to:

PHP:
<strong><a href="{$forum_url}" class="tooltip">{$forum['name']}<span class="classic">{$forum['description']}</span></a></strong>{$forum_viewers_text}{$modlist}{$subforums}</div>

Now Open ACP > Themes > Your theme > Edit > and Add a New Stylesheet, name it tooltip.css and add the following content:

PHP:
        .tooltip {
            border-bottom: 1px dotted #000000; color: #FFFFFF; outline: none;
            cursor: hand; text-decoration: none;
            position: relative;
        }
        .tooltip span {
            margin-left: -999em;
            position: absolute;
        }
        .tooltip:hover span {
            border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; 
            box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1); -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
            font-family: Calibri, Tahoma, Geneva, sans-serif;
font-size: 11px;
            position: absolute; left: 1em; top: 2em; z-index: 99;
            margin-left: 0; width: 250px;
        }
        .tooltip:hover img {
            border: 0; margin: -10px 0 0 -55px;
            float: left; position: absolute;
        }
        .tooltip:hover em {
            font-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1px;
            display: block; padding: 0.2em 0 0.6em 0;
        }
        .classic { padding: 0.8em 1em; }
        .custom { padding: 0.5em 0.8em 0.8em 2em; }
        * html a:hover { background: transparent; }
        .classic {background: #FFFFCC; border: 1px solid #FFAD33; }
 
Top