Click anywhere to close this dialog

Farewell

Great is the art of beginning, but greater is the art of ending
Henry Wadsworth Longfellow

I announce that I cease all development and activity in the programming universe indefinitely. My career has reached the turning point I was not expecting for at least another year, leaving me highly off guard and without laid-out plans for this hobby's continuity. I have begun a 5-year residency program in Neurosurgery which is clearly not compatible, time-wise, with programming.

I gave in all my passion for developing, and you gave me back your loyalty and trust, even when I did not deserve that much. Now it is the time for payback. I release all my present and past work as Open Source software, in the hope some talented developer will continue maintaining and expanding my vision of a modern, sleek forum software. The intrinsic flexibility of MyBB is the true hidden gem of an otherwise outdated codebase; I do hope the project can continue and be updated complying to the latest coding standards.

I hereby thank Euan, kawaii, andrewjs18, Ben, Matt, Omar G., effone, Eric J., Devilshakerz, Wildcard, JordanMussi and all the other team members I have had the opportunity to work with when I was a MyBB team member. I thank Tomm M, my mentor, who inspired me to pick up coding with his piece-of-art plugins. And finally, I thank all of you MyBBoost subscribers who have helped me getting through my toughest university years economically.

Yours sincerely, Filippo

Show hovercard with "last poster avatar" plugin

2 Jan 2019
#1
This issue is marked as solved
Hi,
First of all a big thank you for this fantastic plugin. I should have it tried earlier!

It works very well on my installation. Just one thing I would like to get done.
I am using the plugin last poster avatar from whiteneo.
It would be great if the card appears when hovering over the plugins avatar.

I am not sure how to achieve this. The variable for the avatar with this plugin is:
{$thread['avatarep']}

The default variable is:
{$thread['profilelink']}

Currently the hovercard only shows with the default variable.
Is there a way to modify hovercard so that it is triggered as well with the other variable?

Thanks for any pointer!

Best answer

Shade 24 Jan 2019
Here are the culprits:
1) disable "Modal box Popup" settings from Avatarep settings;

2) inc/plugins/avatarep.php, line 726, find:
$user['avatar'] = '<div class="avatarep_fd">' $user['avatar'] . '</div>'
Replace with:
$user['avatar'] = "<a data-uid='{$user['uid']}' href='{$avatar['profilelink']}'>" $user['avatar'] . '</a>'
3) inc/plugins/avatarep.php, lines 704-706, find:
}else{
    
$user['avatar'] = "<a href=\""$avatar['profilelink'] . "\" title=\"".$user['avatarep_title']."\">".$user['avatar']."</a>";

Replace with:

Basically the last step is just a removal of everything after "else".
Kieria likes this post

All replies

Shade 6 Jan 2019
#11
Yes, you can't duplicate a plugin, you'll have to edit the original version. I still haven't had a look at the plugin though, sorry.
Shade 24 Jan 2019
#12
Hi, I’ll install the plugin this evening now that I’ve got some free time.
Shade 24 Jan 2019
#13
Here are the culprits:
1) disable "Modal box Popup" settings from Avatarep settings;

2) inc/plugins/avatarep.php, line 726, find:
$user['avatar'] = '<div class="avatarep_fd">' $user['avatar'] . '</div>'
Replace with:
$user['avatar'] = "<a data-uid='{$user['uid']}' href='{$avatar['profilelink']}'>" $user['avatar'] . '</a>'
3) inc/plugins/avatarep.php, lines 704-706, find:
}else{
    
$user['avatar'] = "<a href=\""$avatar['profilelink'] . "\" title=\"".$user['avatarep_title']."\">".$user['avatar']."</a>";

Replace with:

Basically the last step is just a removal of everything after "else".
Kieria likes this post