MyBB Community Forums

Full Version: Lastposter avatar 3.0.x
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Use the latest version it have to show username and avatar text due code optimizations.

Avatars are loaded in all the sites you wish so i have changed in latest version with only that text.

And yes that is the way on how it works but it have to show in portal, user cp thread list, into forum display, forum index, showthread, etc. So the best way is changing to a generalized var like 3.0 version Smile

This way if you wanna use into quotes, online, etc. Only have to add the script into the hook and it have to show the users avatar in all instances required by you Smile
Thanks, i am going to check it out.
(2018-08-23, 01:04 PM)Whiteneo Wrote: [ -> ]@mrdeltoid that shoul not be happen.

The right values are last poster for index because it shows las poster avatar inside a thread.

And into thread list must shown.

First port by and last post by and username for thread owner and las poster, maybe there can be a bug inside the current version, i will review it into my site due it has tiny messages into titles Smile so it is easy to see it.

woops yeah you're right i will fix it Smile

I think i have used the same var besides the right one due some typo errors

This is a issue that i have to fix asap Smile

Thanks for your feedback now 3.0 is coming out soon Wink

Thanks for looking into this!

Another question: is there an easy way to specify the size of the avatars?
No, there is not an easy way at all.

But it is difficult to write a single code todo.

That reason is why i've been added into styleshet avatarep.css

That way you only can change px to width and height but was the most easiest way till now.
Hi Neo

Not sure if this is a bug or not, but i install the latest version from the mods section here, and see that the default avatar does not display.

So i check the plugin file and approx line 670 see:
$user['avatar'] = "<img data-name=\"{$user['username']}\" class=\"avatarep_bg\" />";
so i add the src:
$user['avatar'] = "<img src=\"images/default_avatar.png\" data-name=\"{$user['username']}\" class=\"avatarep_bg\" />";

and it works now.
That is not the right code due you have to verify you js file was loaded. (The one you use)

The right code is the writen one :Smile have attatched the image file of the working on plugin, by the way you can see it working into my website https://soportemybb.es

That js file allows to get the right firts letter of usersname and leave it as the attatched picture.

So verify the js are uploaded fine and it is loaded success it was called avatarep.js

If you have some older version of it try to refresh cache to load the new js file who do this improvement.

If you set an image it will breaks the new avatars improvement for sure.
Sorry, my mistake then. I actually run without the javascript, and disable the template changes due to my theme.
No problem anyways i have catched an issue anyways and i will fix it into next version with lesser addittions only the fixing typos Smile

But anyways nothing usefull fo users who have already working the new patch is only for users who have experienced some issues. I am reviewing my files to update it and fix some issues so i will update all my mods when i have finished but this weekend i will update the most important things Smile
hi neo i deleted <avatarep_uid_[{$lastpost_data['lastposteruid']}]> from forumbit_depth1_forum_lastpost but i don't see any changes to my page

so i was wondering where does <avatarep_uid_[{$lastpost_data['lastposteruid']}]> show up in forumbit_depth1_forum_lastpost?
(2018-09-21, 08:11 AM)8guawong Wrote: [ -> ]hi neo  i deleted <avatarep_uid_[{$lastpost_data['lastposteruid']}]> from forumbit_depth1_forum_lastpost but i don't see any changes to my page

so i was wondering where does <avatarep_uid_[{$lastpost_data['lastposteruid']}]> show up in forumbit_depth1_forum_lastpost?

On the homepage in the lastpost datacell.
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