vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - AJAX - Mouseover Profile Preview (https://vborg.vbsupport.ru/showthread.php?t=123687)

ericgtr 08-10-2006 10:00 PM

AJAX - Mouseover Profile Preview
 
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 :)

Lalib 08-11-2006 05:29 PM

very nice :) thank you man;)

Feckie (Roger) 08-11-2006 06:02 PM

very nice clicks install

Mike Gaidin 08-11-2006 06:03 PM

Nice indeed. Good job!

Ntfu2 08-11-2006 06:40 PM

:yesway: Awesome modification, i love it and i'm sure my users will to

bigdog829 08-11-2006 06:49 PM

Very nice I was looking for this mod for a long time !

ericgtr 08-11-2006 07:15 PM

Thanks guys, please click install if you use it. :)

vBulletin THEN DAYLIGHT 08-11-2006 08:09 PM

Will this work with 3.5.4?

ericgtr 08-11-2006 08:16 PM

Quote:

Originally Posted by vBulletin THEN DAYLIGHT
Will this work with 3.5.4?

I can't say for sure because I don't have a 3.5.x board anymore. My first thought is that it may be buggy but you can give it a shot and just back it out if it doesn't.

firstrebel 08-11-2006 08:48 PM

I tested this on my dev site and the background colour was changed. I assume the css file in this mod takes the place of vB's css.

Bob

ericgtr 08-11-2006 08:53 PM

Quote:

Originally Posted by firstrebel
I tested this on my dev site and the background colour was changed. I assume the css file in this mod takes the place of vB's css.

Bob

Correct, I didn't attempt to utilize vB's css but you can tweak the /css/ajax-tooltip.css to your liking.

firstrebel 08-11-2006 08:58 PM

Thanks. Very nice mod.

Bob

utw-Mephisto 08-11-2006 08:59 PM

sweet, works on both, IE and FF

firstrebel 08-11-2006 09:14 PM

Quote:

Originally Posted by ericgtr
Correct, I didn't attempt to utilize vB's css but you can tweak the /css/ajax-tooltip.css to your liking.

I had to edit ajax-tooltip-demo.css, how come?

Bob

ericgtr 08-11-2006 09:18 PM

Because that's the one referenced in the header template. Sorry for pointing you to the wrong one. :)

firstrebel 08-11-2006 09:37 PM

Problem with names at end of line (not wrapped to next line). See attachment.

Bob

ericgtr 08-11-2006 09:42 PM

Yes, I stated that in the initial post. :)

apdcanari 08-11-2006 10:09 PM

Doesn't work in vb 3.5.3 :surprised:

Stromba 08-11-2006 11:06 PM

Great hack thank ericgtr

asj 08-11-2006 11:38 PM

very thank :)

Barakat 08-12-2006 02:03 AM

wont works with product-vbranking.xml hack, "Search Engine-Friendly URLs for vBulletin"

bchertov 08-12-2006 04:05 AM

How about support in for the username of the poster in the postbit???

ericgtr 08-12-2006 04:21 AM

I added that to the member_ajax template earlier. Just copy and paste it in again and it will show up.

Code Monkey 08-12-2006 04:29 AM

Interesting. However, you should really try to integrate the vbulletin AJAX code so that compatabilities fall in line with vbulletin.

Atakan KOC 08-12-2006 06:26 AM

Profile view Member List

open template "memberlist_resultsbit"

find

HTML Code:

<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>
replace

HTML Code:

<a href="member.php?$session[sessionurl]u=$userinfo[userid]" onmouseover="ajax_showTooltip('member_ajax.php?$session[sessionurl]u=$userinfo[userid]',this);return false" onmouseout="ajax_hideTooltip()">$userinfo[musername]</a>

firstrebel 08-12-2006 07:16 AM

Quote:

Originally Posted by ericgtr
Yes, I stated that in the initial post. :)

If you mean this
Quote:

It also won't display a mouseover for a members name that is wrapped from one line to another.
I read that it applies if the user name is at the end of one line and continues into the next. This is correct, as the popup does not show.

When not logged in I get as is shown in this attachement when hovering 3rd name from the right. The forum logo is also being displayed in the popup; not a 'no permissions' message.

When logged in the 2nd and 3rd names from the right still have the popus cut off.

Bob

abosaleh 08-12-2006 10:35 AM

thank a lot mr ericgtr

I have one Question

look at my attachment
The postion for Englesh language is left

how can I make the dispaly informatiom in the right side for arabic postion

abosaleh 08-12-2006 11:01 AM

I repair it for arabic postion

for arabic user thay cat use attached files off CSS

firstrebel 08-12-2006 09:11 PM

Quote:

Originally Posted by ericgtr
Because that's the one referenced in the header template. Sorry for pointing you to the wrong one. :)

Both css files have to be edited because if the background colour has been changed from default and only ajax-tooltip-demo.css is edited, when someone not logged in hovers the background setting in ajax-tooltip.css will be active instead.

This is a nice mod but the faults I have found need to be fixed, as they detract from a good forum.

Bob

ericgtr 08-12-2006 09:18 PM

Quote:

Originally Posted by firstrebel
Both css files have to be edited because if the background colour has been changed from default and only ajax-tooltip-demo.css is edited, when someone not logged in hovers the background setting in ajax-tooltip.css will be active instead.

This is a nice mod but the faults I have found need to be fixed, as they detract from a good forum.

Bob

Thanks for the input. If you don't want to manually edit to suit your design needs, then this mod probably isn't for you.

firstrebel 08-13-2006 07:45 AM

Quote:

Originally Posted by ericgtr
Thanks for the input. If you don't want to manually edit to suit your design needs, then this mod probably isn't for you.

Not at all. I mentioned this for the information of others as it was not documented anywhere. This is a nice mod but the attachments in my posts #16 and #26 make it unusable at the moment. I am hoping there is a some way to fix those issues.

Bob

ericgtr 08-13-2006 01:37 PM

Okay, I've updated the first post with the current issues. I've also added the option to turn it off for guests, this will address the issue where it shows the no permissions message.

firstrebel 08-13-2006 08:58 PM

I have reuploaded all files and done the new template edits but if not logged in I am still getting the popup as in post #26 for members listed in " Total members that have visited the forum today".

Bob

Derekclarke 08-13-2006 09:18 PM

great hack, Installed.

would it be possible to integrat with Cyb - Advanced Forumhome Statistics too?

Thanks
Derek

ericgtr 08-13-2006 09:53 PM

Quote:

Originally Posted by firstrebel
I have reuploaded all files and done the new template edits but if not logged in I am still getting the popup as in post #26 for members listed in " Total members that have visited the forum today".

Bob

I have played with this and can't seem to get a conditional wrapped around the plugin code for the visitors today mod. I will keep playing with it and let you know.

@Derekclarke, I haven't seen that mod yet but once this is installed the code will work anywhere because the includes are in the header. It's just a matter of setting up the URL to work with it.

ericgtr 08-14-2006 02:17 PM

Update sent. Added option to turn off for guests with Paul's Visitors Today modification.

y2krazy 08-14-2006 02:58 PM

Here is how to optionally add this to Paul's Members who have posted Today modification (note this is only for the 3.6 version)

In the Plugin PHP Code find:
Code:

$posttoday .= "href=\"search.php?do=finduser&amp;u=$today[userid]\" title=\"$wrdate\" >";
Replace with:
Code:

$posttoday .= "href=\"search.php?do=finduser&amp;u=$today[userid]\"onmouseover=\"ajax_showTooltip('member_ajax.php?$session[sessionurl]u=$today[userid]',this);return false\" onmouseout=\"ajax_hideTooltip()\" title=\"$wrdate\" >";
OR to turn off for guests:
Code:

$posttoday .= "href=\"search.php?do=finduser&amp;u=$today[userid]\" title=\"$wrdate\" >";
Replace with:
Code:

                                if (!is_member_of($vbulletin->userinfo, 1) AND !is_member_of($vbulletin->userinfo, 3)){
                                $posttoday .= "href=\"search.php?do=finduser&amp;u=$today[userid]\"onmouseover=\"ajax_showTooltip('member_ajax.php?$session[sessionurl]u=$today[userid]',this);return false\" onmouseout=\"ajax_hideTooltip()\" title=\"$wrdate\" >";
} else {                               
                                $posttoday .= "href=\"search.php?do=finduser&amp;u=$today[userid]\" title=\"$wrdate\" >";
}

:)

PatrickAdrichem 08-14-2006 05:24 PM

Ok well it works on www.rebscum.com but i would like to face it the other way so instead of going right next to the name i want it left of the name plus i want to adjust the size of the box a bit

firstrebel 08-14-2006 05:54 PM

Quote:

Originally Posted by ericgtr
Update sent. Added option to turn off for guests with Paul's Visitors Today modification.

Thanks for the work. I now have a different problem since the update. The popup no longer works on Currently Active Users. There must be anomoly on my site as it works OK on yours.

Bob

ericgtr 08-14-2006 05:59 PM

Quote:

Originally Posted by firstrebel
Thanks for the work. I now have a different problem since the update. The popup no longer works on Currently Active Users. There must be anomoly on my site as it works OK on yours.

Bob

Hmm.. This only happens after applying the change to Paul's Visitors Today code?


All times are GMT. The time now is 06:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01470 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (2)bbcode_html_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete