What it does:
This script will display profile info when you mouseover their username on the forumhome page, the javascript (ajax) is from http://www.dhtmlgoodies.com/index.html?whichScript=ajax-tooltip See screenshot or test drive it here by waving your mouse over usernames in the What's Going On box http://www.guitarblast.com/ (currently off for guests, see screenshot below)
Notes&Updates:- By default this uses it's own CSS located in the CSS folder. To change the background color, edit ajax-tooltip.css and find /* Background color */ and change to your background color.
- There is a space after each username, between the comma's. Currently working on fixing this.
- If the name wraps to the next line, it will not display on mouseover.
- The javascript box will run off the end if the forum width is at 100% for usernames on the edge. (currently working on this)
- [8/13] Added the option to turn off for guests. This is ideal both to save server load and if you have the member list turned off for guess through the admin CP.
- [10/28] Fixed broken page (css display) and included a Product installer.
- [10/28] Now also shows "mousing over members" in the Who's Online page.
- [11/1] Added a delay so it has to be moused over for a small amount of time before it will show. Removed caching and put a timer on it so there will no longer be a need to refresh the page to get the latest on where a user is, it will do it automatically.
- [11/8]
Added option to make the window stay open so you can click within it or scroll (if scrollbars appear) clicking anywhere outside of it will close it. To do this:
In the forumhome_loggedinuser find:
Code:
$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]"onmouseover="ajax_showTooltip('member_ajax.php?$session[sessionurl]u=$loggedin[userid]',this,true);return false" onmouseout="ajax_hideTooltip()"> $loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
Replace with:
Code:
$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]"onmouseover="ajax_showTooltip('member_ajax.php?$session[sessionurl]u=$loggedin[userid]',this,true);return false"> $loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
Open the header template and add this to the very bottom:
Code:
<script type="text/javascript">
document.body.onclick = ajax_hideTooltip;
</script>
Keep in mind that if you leave this on for guests, you must also allow guests to view member info. Admin CP > Usergroups > Usergroup Manager > Unregistered / Not Logged In [edit] > Can View Member Info (Yes).
Upgrade and fresh install instructions are included in the zip file.
That's it!
Pleas click if you use this