MyBB Community Forums

Full Version: First/ Last Post Avatar not working at all
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to use this plugin to generate avatars.

It says on the Github

Quote:Once uploaded, visit the Plugins page in your ACP and install the plugin. This plugin adds a cache record and a setting. To enable the avatar information to be generated, visit the Configuration tab in the ACP and then General Configuration settings. There is a new setting here with four checkboxes; choose which areas you would like to display avatars in. Finally, follow the instructions below to modify your theme templates to insert the avatars.

I've installed the plugin and added the correct code to the forumbit_depth2_forum_lastpost template but nothing is showing up. The settings also haven't been added to the ACP. Is this plugin working for anyone else?

I'm using this plugin instead of https://github.com/WhiteNeo/lastposter-a...18x-series because that one doesn't provide a direct link to the image.
(2016-08-21, 07:39 PM)Tactrus Wrote: [ -> ]I'm trying to use this plugin to generate avatars.

It says on the Github

Quote:Once uploaded, visit the Plugins page in your ACP and install the plugin. This plugin adds a cache record and a setting. To enable the avatar information to be generated, visit the Configuration tab in the ACP and then General Configuration settings. There is a new setting here with four checkboxes; choose which areas you would like to display avatars in. Finally, follow the instructions below to modify your theme templates to insert the avatars.

I've installed the plugin and added the correct code to the forumbit_depth2_forum_lastpost template but nothing is showing up. The settings also haven't been added to the ACP. Is this plugin working for anyone else?

I'm using this plugin instead of https://github.com/WhiteNeo/lastposter-a...18x-series because that one doesn't provide a direct link to the image.

How do you mean ?

The first plugin has not been updated for 4 years, that's probably reason alone not to use it.
I need a direct link

If I use $forum['avatarep']}
It throws out <a href="----" id ="----"><img src='https://community.mybb.com/uploads/avatars/avatar_104543.png?dateline=1462581526' class='avatarep_img' alt='----' /></a>

I'm just looking for the source: https://community.mybb.com/uploads/avata...1462581526

Which First/ Last Post Avatar provides
The dateline parameter is part of an array, in avatarep.php

'sid' => '-1',
'version' => '1803',
'dateline' => TIME_NOW
);

Not sure about how to remove it though, without breaking the script.
@Tanctrus

Firts at all you have to use single var to use it.

$forum['avatarep'] was used to show image preformated and you can configure to not use modals and all have to work fine.

Avatar shows on forumslist, threadlist, portal, private messages, etc.

So if you want to customize it you can do it, but i prefer to use the entire code because is protected at the calls of every avatar, and in some parts would not work.

But you can use single var on forumlist and threadlist for sure.

Only remove the end ep and done !!!
Use $forum['avatar'] instead i let that var to use it only the image, but take in mind that you have to use the code provided