Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
AJAX - Mouseover Profile Preview Details »»
AJAX - Mouseover Profile Preview
Version: 2.0, by ericgtr ericgtr is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.0 Rating:
Released: 08-10-2006 Last Update: 02-06-2007 Installs: 569
Uses Plugins Template Edits
Additional Files  
No support by the author.

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.ht...t=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 Install if you use this

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #232  
Old 02-15-2007, 09:42 AM
MioTraGusa's Avatar
MioTraGusa MioTraGusa is offline
 
Join Date: Oct 2005
Location: Espa?a
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ubblite View Post
And here is the error you get in Firefox when viewing the CMPS home page.

in header template, change

Code:
 <script type="text/javascript" src="js/ajax-dynamic-content.js"></script>
 <script type="text/javascript" src="js/ajax.js"></script>
 <script type="text/javascript" src="js/ajax-tooltip.js"></script>
 <link rel="stylesheet" href="css/ajax-tooltip.css" media="screen" type="text/css">
<script type="text/javascript"> 
document.body.onclick = ajax_hideTooltip; 
</script>
for this

Code:
 <script type="text/javascript" src="$vboptions[bburl]/js/ajax-dynamic-content.js"></script>
 <script type="text/javascript" src="$vboptions[bburl]/js/ajax.js"></script>
 <script type="text/javascript" src="$vboptions[bburl]/js/ajax-tooltip.js"></script>
 <link rel="stylesheet" href="$vboptions[bburl]/css/ajax-tooltip.css" media="screen" type="text/css">
<script type="text/javascript"> 
document.body.onclick = ajax_hideTooltip; 
</script>
bye
Reply With Quote
  #233  
Old 02-15-2007, 09:42 AM
ubblite ubblite is offline
 
Join Date: Jan 2006
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eric, is it possible to fix the errors we described in the above posts? If not, please let us know because I'll need to remove this hack from our site for now until the problem is fixed.

I just discovered this mod also has the same problem with Photopost Pro and have provided additional screenshots.

edit: I just noticed MiotraGusa posted a fix - I'll try it and get back to you. Thanks Miotra.
Reply With Quote
  #234  
Old 02-16-2007, 10:41 AM
ubblite ubblite is offline
 
Join Date: Jan 2006
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sduckie2k5 View Post
I'm able to see the whole feature work including avatar on the forum pages but on the index(cmps) I only see the info and not the avatar. Can you please tell me how to correct this? Thankyou ~D
Quote:
Originally Posted by JonnyC View Post
Excellent Mod - Thanks

But I have a slight problem

The Mod works great in my forum, but I also have the vBadvanced CMPS installed with a whos visited module

When I load this page, i get a line error in the bottom corner of the screen when i move my mouse over the name of a member who has visited and this script doesnt work

Does anyone know how to fix this

Thanks

my site is http://www.boogie2nite.co.uk

and a test user account

Username : test
Password : test

It works perfectly here

http://www.boogie2nite.co.uk/forum/index.php

but doesnt here

http://www.boogie2nite.co.uk/index.php
Both of these posts have been unanswered and I also have the same problem. Anyone with a CMPS fix?
Reply With Quote
  #235  
Old 02-16-2007, 12:09 PM
MioTraGusa's Avatar
MioTraGusa MioTraGusa is offline
 
Join Date: Oct 2005
Location: Espa?a
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FIX CMPS - Member ajax

Quote:
Originally Posted by ubblite View Post
Both of these posts have been unanswered and I also have the same problem. Anyone with a CMPS fix?
in header template, change :

Code:
<script type="text/javascript" src="js/ajax-dynamic-content.js"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/ajax-tooltip.js"></script>
<link rel="stylesheet" href="css/ajax-tooltip.css" media="screen" type="text/css">
<script type="text/javascript"> 
document.body.onclick = ajax_hideTooltip; 
</script>
for:

Code:
<script type="text/javascript" src="$vboptions[bburl]/js/ajax-dynamic-content.js"></script>
<script type="text/javascript" src="$vboptions[bburl]/js/ajax.js"></script>
<script type="text/javascript" src="$vboptions[bburl]/js/ajax-tooltip.js"></script>
<link rel="stylesheet" href="$vboptions[bburl]/css/ajax-tooltip.css" media="screen" type="text/css">
<script type="text/javascript"> 
document.body.onclick = ajax_hideTooltip; 
</script>
Replace the entire forumhome_loggedinuser template with this:

Code:
<if condition="$loggedin[userid]"><if condition="in_array($bbuserinfo['usergroupid'], array(1, 3))">
$stylevar[dirmark]<a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
<else />
$stylevar[dirmark]<a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$loggedin[userid]"onmouseover="ajax_showTooltip('http://www.yourdomain.org/forum/member_ajax.php?$session[sessionurl]u=$loggedin[userid]',this,true);return false" onmouseout="ajax_hideTooltip()">  $loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
</if>
<else />$loggedin[musername]</if>
!!!! -> change www.yourdomain.org/forum/ --> for your forum url

in template member_ajax search:

Code:
   <if condition="$show['avatar']">
    <td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
   <else />
change for:

Code:
   <if condition="$show['avatar']">
    <td><img src="$vboptions[bburl]/$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
   <else />
work ok.

bye
Reply With Quote
  #236  
Old 02-16-2007, 05:17 PM
MioTraGusa's Avatar
MioTraGusa MioTraGusa is offline
 
Join Date: Oct 2005
Location: Espa?a
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if your forums are located in one subdomain ex. forum.mydomain.com and don't show profile in forumhome, replace again the entire forumhome_loggedinuser template with this:

Code:
<if condition="$loggedin[userid]"><if condition="in_array($bbuserinfo['usergroupid'], array(1, 3))">
$stylevar[dirmark]<a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]
<else />
$stylevar[dirmark]<if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$loggedin[userid]"onmouseover="ajax_showTooltip('http://www.domain.org/forum/member_ajax.php?$session[sessionurl]u=$loggedin[userid]',this,true);return false" onmouseout="ajax_hideTooltip()">  $loggedin[musername]</a><else /><a href="$vboptions[bburl]/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></if>$loggedin[invisiblemark]$loggedin[buddymark]
</if>
<else />$loggedin[musername]</if>
replace www.domain.org/forum/ with your forum url

Reply With Quote
  #237  
Old 02-16-2007, 09:28 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for taking time to help out and post your fixes guys.
Reply With Quote
  #238  
Old 02-17-2007, 07:17 AM
ubblite ubblite is offline
 
Join Date: Jan 2006
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your fixes, MioTraGusa.

I have just one minor error I'm seeing in CMPS. In Internet Explorer, if you or some of your users are in invisible mode, you'll get this script error: 'Error:Permission denied' on the CMPS home page. Any fix for this?
Reply With Quote
  #239  
Old 02-17-2007, 07:53 AM
MioTraGusa's Avatar
MioTraGusa MioTraGusa is offline
 
Join Date: Oct 2005
Location: Espa?a
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ubblite View Post
Thanks for your fixes, MioTraGusa.

I have just one minor error I'm seeing in CMPS. In Internet Explorer, if you or some of your users are in invisible mode, you'll get this script error: 'Error:Permission denied' on the CMPS home page. Any fix for this?
Code:
 ajax_showTooltip('http://www.yourdomain.org/forum/member_ajax.php?$session[sessionurl]u=$loggedin[userid]'
change www.yourdomain.org/forum --> for your forum url , --> real url, not subdomain (sub.dom.com/...)

test it...
Reply With Quote
  #240  
Old 02-21-2007, 10:40 PM
sabillondesigns sabillondesigns is offline
 
Join Date: Aug 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey man, great hack i love it

sorry if you already answered this, i search and did not find it..

sometimes some users have big avatars like 130px wide, so the popup doesnt show everything is suppose to, it shows a scroll bar but u cant really scroll down

is there a way to make the pop up box bigger?

thanks in advance!
Reply With Quote
  #241  
Old 02-22-2007, 06:12 AM
MioTraGusa's Avatar
MioTraGusa MioTraGusa is offline
 
Join Date: Oct 2005
Location: Espa?a
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sabillondesigns View Post
sometimes some users have big avatars like 130px wide, so the popup doesnt show everything is suppose to, it shows a scroll bar but u cant really scroll down

is there a way to make the pop up box bigger?
In file ajax-tooltip.css your can change any values.

PHP Code:
#ajax_tooltipObj .ajax_tooltip_content{
    
border:2px solid #317082;    /* Border width */
    
left:18px;    /* Same as border thickness */
    
top:0px;
    
position:absolute;
    
width:300px;    /* Width of tooltip content */
    
height:200px;    /* Height of tooltip content */
    
background-color:#FFF;    /* Background color */
    
padding:5px;    /* Space between border and content */
    
font-size:0.8em;    /* Font size of content */
    
overflow:auto;    /* Hide overflow content */
    
z-index:1000001;

change value of width & height to make po pup more bigger

bye
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05603 seconds
  • Memory Usage 2,346KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (12)bbcode_code
  • (1)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete