MyBB Community Forums
[For 1.8] Lastposter avatar 3.0.x - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html)
+---- Thread: [For 1.8] Lastposter avatar 3.0.x (/thread-189492.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33


RE: Lastposter avatar 2.9 - Avex - 2017-08-13

Currently facing this issue, adds a hash at before and after the username, it also shows the user ID, this happens everywhere on the board.
[Image: TOk3tFMbTbe2Wt2KBpflww.png]


RE: Lastposter avatar 2.9 - Whiteneo - 2017-08-13

Did you have some other plugin ?

I mean last poster avatar brings to you avatars and formated names with an aio.

So if you have another plugin you have to disable to not face that issue or disable formatted names into admincp of my plugin.

I have seen this before due style usernames plugin, so you have double instances to show formatted names, due that i have added an option to disable formatted names on my plugin and use the way you want for it.

See yah !!!


RE: Lastposter avatar 2.9 - Avex - 2017-08-13

Ah that was the issue, thanks a tonne!


RE: Lastposter avatar 2.9 - AniLeo - 2017-08-19

Hello and thanks for the theme!

I'm having an issue, any idea why this is happening?
[Image: 7rTITl50SwO9aFVq3tsdUA.png]

Thread title text is overflowing, I have no idea why. And only happens with a few posts.
Using the latest version of both MyBB and the plugin.
Unfortunately the forum isn't live yet so don't have any link to provide.

Edit: Increasing column width from 200 to 225 on templates solved it. Here: https://community.mybb.com/post-702037.html


RE: Lastposter avatar 2.9 - ozanakkaya - 2017-09-30

Hi Whiteneo,

function avatarep_private_fname()

line 871 and 872:

$tofromuid = (int)$message['toid'];
$tofromusername = htmlspecialchars_uni($message['tousername']);

Could this code be inaccurate?

$tofromuid = (int)$message['fromid'];
$tofromusername = htmlspecialchars_uni($message['fromusername']);


RE: Lastposter avatar 2.9 - Whiteneo - 2017-09-30

it is the users avatar and that way you could use.

$mybb->user['avatar']

in any template due it is a globalized var for own avatar.


RE: Lastposter avatar 2.9 - bositman - 2017-10-02

Hello and thank you for your nice plugin Smile

I'm getting thousands of php warnings on my error logs: (using PHP 7.0.23)
inc/plugins/avatarep.php
Warning: line 1195 explode() expects parameter 2 to be string, array given
Warning: line 1196 in_array() expects parameter 2 to be array, null given

Any idea what's going on there?

Also, if I enable the plugin for the PM view, the sender column shows my username everywhere, while the sender avatar is correct. Check included screenshot.


RE: Lastposter avatar 2.9 - Whiteneo - 2017-10-02

(2017-09-30, 06:57 PM)ozanakkaya Wrote: Hi Whiteneo,

function avatarep_private_fname()

line 871 and 872:

$tofromuid = (int)$message['toid'];
$tofromusername = htmlspecialchars_uni($message['tousername']);

Could this code be inaccurate?

$tofromuid = (int)$message['fromid'];
$tofromusername = htmlspecialchars_uni($message['fromusername']);

Yeah that was the right change into code i have no idea that is happening :o

(2017-10-02, 11:20 AM)bositman Wrote: Hello and thank you for your nice plugin Smile

I'm getting thousands of php warnings on my error logs: (using PHP 7.0.23)
inc/plugins/avatarep.php
Warning: line 1195 explode() expects parameter 2 to be string, array given
Warning: line 1196 in_array() expects parameter 2 to be array, null given

Any idea what's going on there?

Also, if I enable the plugin for the PM view, the sender column shows my username everywhere, while the sender avatar is correct. Check included screenshot.

The first quote must serve, but warnings maybe it's caused by another plugin configuration, i dunno, what plugins do you have because i have the same version of php and some plugins installed and no errors or warnings, only the pms but it will be fixed in next version and if i can reproduce your warnings i will fix that error too.

Thanks @ozanakkaya i was thinked you want to use owns name and avatars, because i have no idea that code was wrong :o.

I have fixed into my site and the code provided by you should fix the issue.


RE: Lastposter avatar 2.9 - Livewire - 2017-10-02

How do i remove display name format colour?
I tried using the option in ACP settings but it doesn't work!


RE: Lastposter avatar 2.9 - bositman - 2017-10-02

Well here is my activated plugin list, although I highly doubt any of em can interfere with your plugin:
DVZ Secure Content
Awaiting Activation Message
HTML in Posts
My Advertisements
Signature image limit
Spamalyser
Usergroup legends