Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
profile info on hover
Avatar
Carlos
Spain
Member
Free Members
sp_UserOfflineSmall Offline
Feb 18, 2014 - 7:26 pm

Hi! I´m trying to reduce the user info on the post section...  I think that could be a good idea to put aditional info just in hover.... 

So will be basically the same function that appears now when mouse is over the avatar, but instead of showing the word "profil" I will show some info:

Date registered, number of post, forum range... etc

Is easy to do this?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 19, 2014 - 4:57 am

Collecting the information is not that hard at all. All of those display functions have a 'get' argument as opposed to an 'echo' default argument which means the data can be returned rather than immediately displayed. So collecting it up is the easy and simple part.

The main problem with your scheme is using this data as a tooltip on the avatar. That is one of the few items where a tooltip can not be passed in and because the avatar can be set to different urls in the profile options and the tooltip reflects that option choice. The same goes for the users display name as well.

We could perhaps look into changing that and adding a fourth option of 'user/custom' but that would need to be investigated properly.

One other point to remember as well. Don't forget that tooltips do not work on mobile phones or tablets where there is no 'hover' functionality available.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Carlos
Spain
Member
Free Members
sp_UserOfflineSmall Offline
Feb 19, 2014 - 7:27 am

thanks for answering... 

Would be easier if instead of "link the hover" function to the avatar to "tell" to show the hover mini profile on "link to profile" ? Dont know if i explained welll....

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 19, 2014 - 8:53 am

Do you mean replace the current popup profile with an alternative popup of information?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Carlos
Spain
Member
Free Members
sp_UserOfflineSmall Offline
Feb 19, 2014 - 9:25 am

Yellow Swordfish said
Do you mean replace the current popup profile with an alternative popup of information?Y

Yep. that would be the idea, i think is easier...  so instead coding a new popup just write a new part of code to show info on hover... ( number of posts, range... something else)

I´m not sure if this is interesting for others... just is an idea... 

 

Avatar
Carlos
Spain
Member
Free Members
sp_UserOfflineSmall Offline
Feb 19, 2014 - 9:26 am

http://www.hispasonic.com/foro.....nol/388850

you can try it there... put the mouse over the avatar... 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 19, 2014 - 9:39 am

Well yes - i quite like it actually but you still have the same problem you had originally although I do note from the code that you can actually pass a user/custom name to the avatar so it might be possible to use that. I would need to investigate deeper. But still not with a tooltip type control.... And currently neither SP or WP come bundled with a 'popup' control  triggered on hover.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625