Hovercards is a plugin which shows a delightful preview of your users when they hover on usernames around your board.
Version: 1.3
Autor: Ben
Deutsche Übersetzung: noch nicht übersetzt
Hochgeladen: 18.02.2021
Letzte Aktualisierung: 18.02.2021
Support: https://www.mybb.de/forum/thread-37701.html (0 Beiträge)
Kompatibilität: MyBB 1.8.x
Bisherige Downloads: 16
Hovercards is a plugin which shows a delightful preview of your users when they hover on usernames around your board. You can customize Hovercards as you wish, fine-tuning what users data to show inside cards and their visual aspect as well.

Minimum requirements
PHP 5.4
MyBB 1.8.0
664 chmod permissions on inc/functions.php

Main features
Hovercards is not a complicated plugin. As such, it does not come with many hardcoded options, but it does what it's supposed to do: display cards on hover.

You decide what data to include in a card: once a data point becomes available, you can reference it in Hovercards' unique template, which is then packed and built upon every single hover on an username. Hovercards adds 1 stylesheet you can play around with to customize the visual aspect of the card. A minimal style is included by default.

You can also use JavaScript conditionals to adapt each data point's display. For example, you might want to display a different label when an user hasn't posted yet. You can use the buildTemplateCallback(html, user) function to manipulate the template accounting for each user's values every time it is displayed. The base example is included in the hovercards_script template.

Adaptive colors
Every card can hold an unique background color which is chosen upon the dominant one from the user's avatar. Text color is adjusted to be readable accounting for the background contrast. This is available as an option. Adaptive colors uses a nasty technique which absolutely demands the image data; cross-site scripting blocks is circumvented by using Google's public image proxy, which helps gathering the image data.

All-in-one query
Hovercards queries the database just the first time you hover on a username, gathering all the users available in the page with one query. This adds an extra layer of trust when it comes to properly assign an user's data to the respective target on screen, and it also saves resources by avoiding too many queries over time.

Upload the files maintaining the same folder structure as they come in the package and click the button Install & activate within your board's plugin list.

Hovercards adds 4 settings.

Adaptive colors has already been explained above. If you disable it, you can manually choose and add a default background color for all cards in HEX format.

Fields to use lets you select the available data points. The more data points you will select, the more intense and slow the query will be (although you shouldn't notice the difference most of the times). A FIELD is then available within Hovercards' template with the following, simple syntax: {FIELD}. For example, if you activate the field "username", you will be able to use {username} into Hovercards' template and it will be replaced with the user's formatted username when watching his card.

Card positioning lets you decide the orientation of cards relative to their attached object out of 9 possible vertical/horizontal placements. The default orientation is "bottom left".

Templates and stylesheets
Hovercards adds a CSS file named hovercards.css to every theme of your board. You can customize the card's appearance by editing the stylesheet's CSS rules. It also adds 2 templates which you can customize to change both the appearance and data points to show in a single card, as explained above.

Quelle: Hovercards bei MyBB.com

Ähnliche Erweiterungen

Group Rank 1.3
Group Rank 1.3 1.3 von Sukanjan.K für MyBB 1.6.x
High quality Non-animated & Animated Rank Images by yuvapix.com

WelcomeBye 1.3 von Edson Ordaz für MyBB 1.6.x
Greeting and dismissal of members

MyDiscord 1.3 von KuJoe für MyBB 1.8.x
Adds a Discord invite link along with server stats to the board index page.

WhoRefer? 1.3 von Leefish für MyBB 1.8.x
Shows who referred a user on that user's profile

Farbige Benutzernamen
Farbige Benutzernamen 1.3 von juventiner für MyBB 1.6.x & MyBB 1.8.x
Zeigt Benutzernamen in der forumdisplay.php farbig an.