MyBB Community Forums

Full Version: Mouse-over Usernames
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey some people asked for this http://community.mybboard.net/thread-48680-page-2.html so i intend to make my first plugin! yay! it seems easy right all it is is a mouse over pop up right? my only issue will be intergration it to be installed.... i have no knowledge of php.
Got some basic Javascript going now here the code, now just trying to find the hooks that are right Wink

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Opening a New Window</title>

<script type="text/javascript">

function showinfo()
{
   document.getElementById('showme').style.visibility = 'visible';
}

function hideinfo()
{
   document.getElementById('showme').style.visibility = 'hidden';
}

</script>

<style type="text/css">

#links a {
   font-size: small;
   color: #999;
   text-decoration:none;
}

#showme {
   font-size: small;
   background-color: #ccc;
   width: 300px;
   visibility: hidden;
}

</style>

</head>

<body>

<div id="links">
<a href="javascript:;" onmouseover="showinfo();" 
onmouseout="hideinfo();">Info</a>
</div>

<div id="showme"> User Profile <br> Pm User <br> Email User <br> View All Posts
</div>

</body>
</html>

Anyone know how to change the word info to the Userid?
Are you still working on this by any chance?
No although it'd be easily done i've learned how. What exactly was this supposed to do again?