vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - [DBTech] Profile Hover v1 (vB4) [AJAX] (https://vborg.vbsupport.ru/showthread.php?t=257579)

DragonByte Tech 08-06-2011 02:37 AM

Quote:

Originally Posted by Seba123 (Post 2228904)
Any demo ?

It is running on our site
http://www.dragonbyte-tech.com/forum.php

Dylan

8thos 08-20-2011 11:16 PM

Quote:

Originally Posted by starman? (Post 2154643)
How about changing the code to display the profile pic instead of the avatar?

^^^Please consider adding profile pics!

This sounds pretty awesome! I'll try the light version later tonight.

fevredsuk 06-07-2012 08:43 PM

the hover box is huge. any way to resize the box and condense the info in it. far to much open space within the box and very annoying

DragonByte Tech 06-09-2012 10:49 AM

Quote:

Originally Posted by fevredsuk (Post 2337569)
the hover box is huge. any way to resize the box and condense the info in it. far to much open space within the box and very annoying

Could you take a screenshot and show me an example? The box should be sized to the info.

Dylan

fevredsuk 06-09-2012 10:55 AM

ok mate I sorted it,

it was mainly due to avatar size. Max size on my site is 150w x 250h which most members use.

The hover box showed the the full size avatar which was set to 100% in the template. so I just changed it to 50px wide and 83px high. I also removed the vbactivity info too.

one small problem though is member with no avatar or using a generic one still shows the full size avatar in the hover box

DragonByte Tech 06-09-2012 11:15 AM

Quote:

Originally Posted by fevredsuk (Post 2338057)
ok mate I sorted it,

it was mainly due to avatar size. Max size on my site is 150w x 250h which most members use.

The hover box showed the the full size avatar which was set to 100% in the template. so I just changed it to 50px wide and 83px high. I also removed the vbactivity info too.

one small problem though is member with no avatar or using a generic one still shows the full size avatar in the hover box

Give this a try
Open
dbtech/profilehover/hooks/ajax_start.php

Find
PHP Code:

$user['lastactivitydate'] = vbdate($vbulletin->options['dateformat'], $user['lastactivity'], true); 

On the line above add

PHP Code:

        if ($user['ph_pic_show'] && !$user['avatarwidth'])
        {
            
$imgsize getimagesize($user['ph_pic_show']);
            
$user['avatarwidth'] = $imgsize[0];
            
$user['avatarheight'] = $imgsize[1];
        } 

That should set the width/height on non custom images.

Dylan

fevredsuk 06-09-2012 02:05 PM

Quote:

Originally Posted by DragonByte Tech (Post 2338060)
Give this a try
Open
dbtech/profilehover/hooks/ajax_start.php

Find
PHP Code:

$user['lastactivitydate'] = vbdate($vbulletin->options['dateformat'], $user['lastactivity'], true); 

On the line above add

PHP Code:

        if ($user['ph_pic_show'] && !$user['avatarwidth'])
        {
            
$imgsize getimagesize($user['ph_pic_show']);
            
$user['avatarwidth'] = $imgsize[0];
            
$user['avatarheight'] = $imgsize[1];
        } 

That should set the width/height on non custom images.

Dylan


Perfect thankyou

Naijasite 06-11-2012 09:49 PM

This mode has damage my registartion page after uninstalling the product and all files, when a new user try to register they see this error.

A required field called Disable Profile Hover is missing or has an invalid value.
A required field called Disable Profile Hover is missing or has an invalid value.


I have uninstalled the mod and all files but dont no why its still giving me the error above. Please help

DragonByte Tech 06-12-2012 08:45 AM

Quote:

Originally Posted by felixkomo (Post 2338816)
This mode has damage my registartion page after uninstalling the product and all files, when a new user try to register they see this error.

A required field called Disable Profile Hover is missing or has an invalid value.
A required field called Disable Profile Hover is missing or has an invalid value.


I have uninstalled the mod and all files but dont no why its still giving me the error above. Please help

There is a custom user profile field that doesn't get deleted on uninstall. You need to manually delete that field.

Dylan

New Joe 06-12-2012 09:03 AM

Quote:

Originally Posted by DragonByte Tech (Post 2338919)
There is a custom user profile field that doesn't get deleted on uninstall. You need to manually delete that field.

Dylan

Maybe you should tell us a 'step' by 'step' guide how to do this, as usually with modifications we just un-install them and that's it.

Looks like there is more to be done with this one.


All times are GMT. The time now is 10:37 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.01228 seconds
  • Memory Usage 1,757KB
  • 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
  • (4)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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