Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Pipke on February 15, 2020, 07:43:21 PM

Title: Avatars Display Integration
Post by: Pipke on February 15, 2020, 07:43:21 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=4246)

Avatars Display Integration

For SMF 2.1.x (Hook install)
Tested only with the SMF default theme...but should work with other themes aswell!

What does this mod do...
- Poster or user avatar display integration on: (Note: This mod will display the default/initial avatar when user has posted or mentioned as guest.)

- Layout the avatar:

*Other costum places:
How to add user avatar anywhere in your template file from mods maybe, simple type:
data-adi-id="{userid}"

How to example in template file:
Code (find) Select

<div class="most_downloaded"><a href="'.$last['href'].'"><b>'.$last['name'].'</b></a></div>

Code ("replace by") Select

<div class="most_downloaded">data-adi-id="'.$last['user']['id'].'"<a href="'.$last['href'].'"><b>'.$last['name'].'</b></a></div>


How to style your costum output element:
<span class="{whatever}">data-adi-id="{userid}"</span>

License
* This SMF modification is subject to the BSD 2-Clause License

Admin settings
- Admin->Forum->Attachments and Avatars->Avatar Settings

Languages
- English
- Turkish by gevv (https://www.simplemachines.org/community/index.php?action=profile;u=155076)
- Russian by Bugo (https://www.simplemachines.org/community/index.php?action=profile;u=229017)
- Spanish_latin by Rock Lee␏ (https://www.simplemachines.org/community/index.php?action=profile;u=322597) (not complete anymore)
- Dutch by @rjen (https://www.simplemachines.org/community/index.php?action=profile;u=287786)
- Portuguese_pt by marcosbr (https://www.simplemachines.org/community/index.php?action=profile;u=391884)

Changelog
Version 1.5.7 - Mar 18, 2024
- Fixed v1.5.6 wich had different versions of files

Version 1.5.6 - Nov 22, 2023
- Fixed who's online page buffer bug

Version 1.5.5 - Nov 21, 2023
- Fixed css style rule for redirection boards and empty(no topics inside) boards on index
- Updated languages Dutch and Russian
- Added language Portuguese_pt
- Added collaboration with the 'Topic Solved' mod

Version 1.5.4 - Nov 26, 2022
- Fixed who's online page buffer bug, due Who.template update
- Added style for avatar: Curved (square shape with rounded corners)

Version 1.5.2 - Mar 1, 2022
- Fixed responsive css for boardindex

Version 1.5.1 - Feb 28, 2022
- Fixed css for @mentions avatar in posts
- Added dutch language

Version 1.5 - Feb 27, 2022
- Fixed error 500 blank page due missing global var
- Fixed Undefined index: current_action
- Added option: Display avatar poster recent posts on info center

Version 1.4.2 - Aug 4, 2021
- Fixed Trying to access array offset on value of type null

Version 1.4.1 - Aug 4, 2021
- Fixed Undefined array key "profile_of"

Version 1.4 - Aug 3, 2021
- Fixed Undefined index global $txt var "profile_of", it doesnt exist anymore in 2.1 RC4

Version 1.3 - Jul 19, 2021
- Fixed error message when uninstalling

Version 1.2 - Mar 7, 2020
- Fixed anchor bbc @mention member name 'before the @name link'
- Fixed Undefined index: alert icon

Version 1.1 - Mar 4, 2020
- Added option avatar Who's Online page
- Optimized several css rules
- Fixed css for the 'who likes posts' avatar position
- Fixed comparison operator
- Fixed initial avatar for guests when using bbc @Member in posts and at the recent post index

Version 1.0 - Jan 28, 2020
- Initial Release
Title: Re: Avatars Display Integration
Post by: Hatshepsut on February 16, 2020, 02:14:02 AM
I have istalled this mod, but user avatars in related posts in topics was resized from 100 to 65 pixels.
Is it possible to restore their usual size of 100 pixels?
Title: Re: Avatars Display Integration
Post by: Pipke on February 16, 2020, 03:56:53 PM
Quote from: Hatshepsut on February 16, 2020, 02:14:02 AM
I have istalled this mod, but user avatars in related posts in topics was resized from 100 to 65 pixels.
Is it possible to restore their usual size of 100 pixels?
Yes, you can by change the mod css file at ...Themes/{your_theme}/css/AvatarsDisplayIntergration.css
also be sure to set these settings at Admin->Forum->Attachments and Avatars->Avatar Settings:
to 100

Code (find) Select

li.avatar, .avatar, .poster .avatar[data-adi~="avatar"], #profileview .avatar[data-adi~="avatar"], #profileview .adi_item_context {
width: 65px;
height: 65px;
line-height: 60px;
font-size: 42px;
}

Code (replace by) Select

li.avatar, .avatar, .poster .avatar[data-adi~="avatar"], #profileview .avatar[data-adi~="avatar"], #profileview .adi_item_context {
width: 100px;
height: 100px;
line-height: 90px;
font-size: 70px;
}

and
Code (find) Select

#profileview [data-adi~="back"], .avatar [data-adi~="back"] { /* ok */
right: 0px;
    padding: 8px;
    bottom: 0px;
}

#profileview [data-adi~="front"], .avatar [data-adi~="front"] { /* ok */
right: 2px;
    padding: 6px;
    bottom: 2px;
}

Code (replace by) Select

#profileview [data-adi~="back"], .avatar [data-adi~="back"] { /* ok */
right: 8px;
    padding: 8px;
    bottom: 0px;
}

#profileview [data-adi~="front"], .avatar [data-adi~="front"] { /* ok */
right: 10px;
    padding: 6px;
    bottom: 2px;
}


you can adjust the pixels to your wishes, i just point out how to do it.


Title: Re: Avatars Display Integration
Post by: wylekk on February 16, 2020, 04:38:19 PM
Hi.
Conflict with the Optimus mod.

Type of error: Database
Database Error: Not unique table/alias: 'a' https://site/index.php?topic=10.0
/Sources/Display.php (Line 182)
Title: Re: Avatars Display Integration
Post by: wylekk on February 17, 2020, 01:18:54 AM
Translation into Russian language
AvatarsDisplayIntegration Files.russian.php and AvatarsDisplayIntegration.russian-utf8.php must be utf8 encoded

<?php
/*
 * @package Avatars Display Integration
 * @version 1.0
 * @author Pipke http://www.simplemachines.org/community/index.php?action=profile;u=314795
 * @copyright Copyright (C) 2020, Pipke
 * @All rights reserved. 
 * @This SMF modification is subject to the BSD 2-Clause License
 *
 * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
 * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 
 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

$txt['adi_settings_title'] = 'Интеграция аватаров';
$txt['adi_layout_title'] = 'Дизайн аватаров';
$txt['adi_boardindex'] = 'Показать аватар с последним ответом в разделах форума';
$txt['adi_message_first'] = 'Показать аватар автора темы в "Непрочитанных сообщениях" и "Темах с непрочитанными ответами"';
$txt['adi_message_last'] = 'Показать аватар с последним ответом в "Непрочитанных сообщениях" и "Темах с непрочитанными ответами"';
$txt['adi_topic_header'] = 'Показать аватар автора в заголовке темы';
$txt['adi_recent_posts'] = 'Показать аватар в "Последних сообщениях"';
$txt['adi_memberlist'] = 'Показать аватар в "Списке пользователей"';
$txt['adi_search_posts'] = 'Показать аватар в "Результате поиска"';
$txt['adi_mentions'] = 'Показать аватар при использовании участником бб-кода @mention в сообщениях...';
$txt['adi_avatar_shadow'] = 'Добавить тень ко всем аватарам';
$txt['adi_avatar_shape'] = 'Сделать все аватары круглыми';
$txt['adi_log_in'] = 'в сети';
$txt['adi_log_un'] = 'не в сети';
$txt['adi_icon_overlay'] = 'Наложить значок подключения на аватар, если пользователь находится в сети или нет...';
$txt['adi_icon_both'] = 'для обоих вариантов';
$txt['adi_icon_online'] = 'только если в  сети';
$txt['adi_none'] = 'пожалуйста, не надо';
$txt['adi_mention_before'] = 'перед ссылкой @name';
$txt['adi_mention_after'] = 'после ссылки @name';
$txt['adi_mention_no_name'] = 'и скрыть ссылку @name';
$txt['adi_icon_shape'] = 'Сделать значок статуса подключения круглым';
$txt['adi_initials'] = 'Перезаписать аватар по умолчанию с инициалом отображаемого имени';
$txt['adi_view_your_profile'] = 'Просмотр профиля';
$txt['adi_you_are_logged_in'] = 'Вы в сети';
$txt['adi_unknown_user'] = 'ID пользователя:';

?>


Regards!
Title: Re: Avatars Display Integration
Post by: Hatshepsut on February 17, 2020, 11:01:37 AM
Quote from: Pipke on February 16, 2020, 03:56:53 PM
Quote from: Hatshepsut on February 16, 2020, 02:14:02 AM
I have istalled this mod, but user avatars in related posts in topics was resized from 100 to 65 pixels.
Is it possible to restore their usual size of 100 pixels?
Yes, you can by change the mod css file at ...Themes/{your_theme}/css/AvatarsDisplayIntergration.css


Thanks :)

I have found one bug:

After installing this mod, when I view users online (and set list to "Everyone"), I get an error message displayed on white screen:

array(7) { [0]=> array(3) { ["file"]=> string(50) "/home/bulataka/public_html/test/Sources/Errors.php" ["line"]=> int(290) ["function"]=> string(9) "log_error" } [1]=> array(3) { ["file"]=> string(69) "/home/bulataka/public_html/test/Sources/AvatarsDisplayIntegration.php" ["line"]=> int(555) ["function"]=> string(17) "smf_error_handler" } [2]=> array(3) { ["file"]=> string(48) "/home/bulataka/public_html/test/Sources/Subs.php" ["line"]=> int(4834) ["function"]=> string(27) "adi_integrate_theme_context" } [3]=> array(3) { ["file"]=> string(48) "/home/bulataka/public_html/test/Sources/Subs.php" ["line"]=> int(3581) ["function"]=> string(21) "call_integration_hook" } [4]=> array(3) { ["file"]=> string(48) "/home/bulataka/public_html/test/Sources/Subs.php" ["line"]=> int(3652) ["function"]=> string(17) "setupThemeContext" } [5]=> array(3) { ["file"]=> string(48) "/home/bulataka/public_html/test/Sources/Subs.php" ["line"]=> int(3274) ["function"]=> string(15) "template_header" } [6]=> array(3) { ["file"]=> string(41) "/home/bulataka/public_html/test/index.php" ["line"]=> int(154) ["function"]=> string(6) "obExit" } } Error loop.

Forum details:

Forum version: SMF 2.1 RC2 (more detailed)
Current SMF version: SMF 2.1 RC2
GD version: bundled (2.1.0 compatible)
MySQLi engine: MariaDB
MySQLi version: 10.3.22-MariaDB-log
PHP: 7.3.13 (more detailed)
Server version: Apache
Title: Re: Avatars Display Integration
Post by: Pipke on February 17, 2020, 04:46:59 PM
@Hatshepsut thanks for the report.
found the bug: well actually its not a bug, my mod runs on the wrong action page and that is causing the Undefined index: avatar at action=who
here is the fix:

in .../Sources/AvatarsDisplayIntegration.php

Code (find line 548) Select

if ((isset($context['members']) && !empty($context['members'])) && $context['current_action'] = 'mlist' && $modSettings['adi_memberlist'])

Code (replace by) Select

if ((isset($context['members']) && !empty($context['members'])) && $context['current_action'] == 'mlist' && $modSettings['adi_memberlist'])


ill update the fix in next release.
Title: Re: Avatars Display Integration
Post by: Pipke on February 17, 2020, 05:09:50 PM
Quote from: wylekk on February 16, 2020, 04:38:19 PM
Hi.
Conflict with the Optimus mod.

Type of error: Database
Database Error: Not unique table/alias: 'a' https://site/index.php?topic=10.0
/Sources/Display.php (Line 182)


Do you have more info, i cannot reproduce that, maybe some Backtrace information <- you can find that in the smf error logs
Title: Re: Avatars Display Integration
Post by: Hatshepsut on February 17, 2020, 08:54:25 PM
Quote from: Pipke on February 17, 2020, 04:46:59 PM
@Hatshepsut thanks for the report.
found the bug: well actually its not a bug, my mod runs on the wrong action page and that is causing the Undefined index: avatar at action=who
here is the fix:

in .../Sources/AvatarsDisplayIntegration.php

Code (find line 548) Select

if ((isset($context['members']) && !empty($context['members'])) && $context['current_action'] = 'mlist' && $modSettings['adi_memberlist'])

Code (replace by) Select

if ((isset($context['members']) && !empty($context['members'])) && $context['current_action'] == 'mlist' && $modSettings['adi_memberlist'])


ill update the fix in next release.


Thanks for the fix! It works :)
Title: Re: Avatars Display Integration
Post by: -Rock Lee- on February 17, 2020, 09:00:56 PM
It looks very good I'm going to try it in a place that I'm maintaining and looking for something similar. I also leave attached the translation into Latin Spanish 8)!


Regards!
Title: Re: Avatars Display Integration
Post by: wylekk on February 18, 2020, 02:11:10 AM
QuoteDo you have more info, i cannot reproduce that, maybe some Backtrace information <- you can find that in the smf error logs

If you enable the "Use the image from the first topic message in the meta tag og:image" option in the Optimus mod settings"

Getting an error



Conflict code in Optimus

if (allowedTo('view_attachments') && !empty($modSettings['optimus_og_image'])) {
$topic_selects[] = 'COALESCE(a.id_attach, 0) AS og_image_attach_id';
$topic_tables[]  = 'LEFT JOIN {db_prefix}attachments AS a ON (a.id_msg = t.id_first_msg AND a.width > 0 AND a.height > 0)';

         
Conflict code in AvatarsDisplayIntegration

// Job for topic header
function adi_integrate_display_topic(&$topic_selects, &$topic_tables)
{
$topic_selects = array('mem.id_member', 'mem.avatar', 'mem.email_address', 'COALESCE(lo.log_time, 0) AS is_online', 'a.filename');
$topic_tables = array('LEFT JOIN {db_prefix}log_online AS lo ON (lo.id_member = mem.id_member)', 'LEFT JOIN {db_prefix}attachments AS a ON (a.id_member = mem.id_member)');
Title: Re: Avatars Display Integration
Post by: Pipke on February 18, 2020, 07:55:48 AM
@wylekk

sorry i cannot help you with that at this moment,  it seems the Optimus mod on the mod site isnt compatable with SMF 2.1 yet...
also when i install it with Emulating: 2.0 version i get errors, so i suggest to wait for the next release of the Optimus mod.

Quote from: Bugo on February 14, 2020, 08:30:01 AM
I will realize this feature in the next version of Optimus for SMF 2.1
Title: Re: Avatars Display Integration
Post by: wylekk on February 24, 2020, 04:33:56 AM
After installing the mod avatars disappeared in the notification :(

Type of error: Undefined
8: Undefined index: icon
http://www.sub.wylek.ru/index.php?action=profile;u=1;area=alerts_popup
/home/admin/web/sub.wylek.ru/public_html/Sources/AvatarsDisplayIntegration.php (Line 503)



Title: Re: Avatars Display Integration
Post by: Pipke on February 24, 2020, 04:19:28 PM
Quote from: wylekk on February 24, 2020, 04:33:56 AM

Type of error: Undefined
8: Undefined index: icon
http://www.sub.wylek.ru/index.php?action=profile;u=1;area=alerts_popup
/home/admin/web/sub.wylek.ru/public_html/Sources/AvatarsDisplayIntegration.php (Line 503)



Thx for finding that, as far my tests go from the screenshot you posted i cannot reproduce that? Can you post all your alerts when the undefined error comes up, need to find out when smf core is not using an alert icon.

Anyway for now, here is the fix for that:

in .../Sources/AvatarsDisplayIntegration.php
Code (find) Select

$context['unread_alerts'][$id_alert]['icon'].= $context['adi']['iconstatus'];


Code (replace by) Select

if (isset($context['unread_alerts'][$id_alert]['icon']))
$context['unread_alerts'][$id_alert]['icon'].= $context['adi']['iconstatus'];
else
$context['unread_alerts'][$id_alert]['icon'] = $context['adi']['iconstatus'];


just wondering how to get an alert for this '{member_link} replied to your unapproved topic, {topic_msg}, in {board_msg}'
Title: Re: Avatars Display Integration
Post by: Pipke on March 04, 2020, 05:38:31 PM
Mod updated:

Version 1.1 - Mar 4, 2020
- Added option avatar Who's Online page
- Optimized several css rules
- Fixed css for the 'who likes posts' avatar position
- Fixed comparison operator
- Fixed initial avatar for guests when using bbc @member in posts and at the recent post index

also added languages Russian and Spanish_Latin
Title: Re: Avatars Display Integration
Post by: Pipke on March 07, 2020, 06:08:39 AM
Mod updated:

Version 1.2 - Mar 7, 2020
- Fixed anchor bbc @mention member name 'before the @name link'
- Fixed Undefined index: alert icon
Title: Re: Avatars Display Integration
Post by: gecitli on March 13, 2020, 11:21:05 AM
hello thank you for the mod

how to apply this in Recent Posts
Title: Re: Avatars Display Integration
Post by: Pipke on March 13, 2020, 03:44:03 PM
Quote from: gecitli on March 13, 2020, 11:21:05 AM
hello thank you for the mod

how to apply this in Recent Posts

thx, glad you like it.
Display avatar poster on the Recent posts index
This option is by default on, you can see it in action on www.your-site/index.php?action=recent

ps.i noticed you have old version of the mod installed, you should upgrade to current v1.2
Title: Re: Avatars Display Integration
Post by: Hatshepsut on April 09, 2020, 01:39:16 AM
Hello,

I'm using version 1.2
After installing of Avatars Display Integration, the color of the post numbers in 'Recent post' and in the Search results is changed:

Click => (https://i.postimg.cc/9DdF5RXX/Recent-ADI.jpg) (https://postimg.cc/9DdF5RXX)

The color is very light and there is no contrast, it's harder to view the post number.

Default color, before installing ADI:

Click => (https://i.postimg.cc/Y4t2prj6/Recent-default.jpg) (https://postimg.cc/Y4t2prj6)

How to change the light color to some darker, or to default color?
Title: Re: Avatars Display Integration
Post by: Pipke on April 09, 2020, 03:29:14 PM
@Hatshepsut

you can find that source code in the .../Themes/{YourTheme}/css/AvatarsDisplayIntegration.css file   

find and edit this to your likenings
Code (find) Select

.counter {
    padding-right: 12px;
    line-height: 28px;
    text-shadow: 0 1px 1px #3f3f3f;
    color: #fff;
    opacity: 0.5;
}



or just remove the text-shadow, color and/or opacity rule!
Title: Re: Avatars Display Integration
Post by: Hatshepsut on April 09, 2020, 09:37:07 PM
Quote from: Pipke on April 09, 2020, 03:29:14 PM
@Hatshepsut

you can find that source code in the .../Themes/{YourTheme}/css/AvatarsDisplayIntegration.css file   

find and edit this to your likenings
Code (find) Select

.counter {
    padding-right: 12px;
    line-height: 28px;
    text-shadow: 0 1px 1px #3f3f3f;
    color: #fff;
    opacity: 0.5;
}



or just remove the text-shadow, color and/or opacity rule!

Thanks :)
Title: Re: Avatars Display Integration
Post by: kokkieblanda on May 23, 2020, 07:05:10 AM
when clicking all alerts in the alerts box (showalerts) i get an error loop, when i activate the errorlog its works but i get an error
Sources/AvatarsDisplayIntegration.php (line 524)
==>524:    $context['alerts'][$id_alert]['icon'].= $context['adi']['close'].$context['adi']['iconstatus'].'</div>';

any idea? Strange part is the error loop only happens with admins and not with regular members
Title: Re: Avatars Display Integration
Post by: Pipke on May 23, 2020, 07:42:14 AM
Quote from: kokkieblanda on May 23, 2020, 07:05:10 AM
when clicking all alerts in the alerts box (showalerts) i get an error loop, when i activate the errorlog its works but i get an error
Sources/AvatarsDisplayIntegration.php (line 524)
==>524:    $context['alerts'][$id_alert]['icon'].= $context['adi']['close'].$context['adi']['iconstatus'].'</div>';

any idea? Strange part is the error loop only happens with admins and not with regular members

Can you post the complete error log about this error loop, this way i can see what is going on here.
Title: Re: Avatars Display Integration
Post by: kokkieblanda on May 23, 2020, 08:21:24 AM
array(7) {
Title: Re: Avatars Display Integration
Post by: Pipke on May 23, 2020, 11:32:56 AM
Maybe this is relevant to your error, just check it out
Quote from: vbgamer45 on April 20, 2020, 03:08:30 PM
Re: Getting an Error Loop on 2.1 RC2

Fix found here
https://www.simplemachines.org/community/index.php?topic=566687.0

Otherwise where you got this array error from: the smf error logs?
i mean does smf throw an error in the error log? if so post that then, it looks almost like this if you click on the Backtrace information

Type of error: Undefined_vars
Error message: 8: Undefined index: name
File: D:/xampp/htdocs/rc2/Themes/Magnetizer/Magnetizer.template.php
Line: 64
URL of page causing the error: http://localhost/rc2/index.php?http://localhost/rc2/
Backtrace information
#0: smf_error_handler()
Called from D:\xampp\htdocs\rc2\Themes\Magnetizer\Magnetizer.template.php on line 64
#1: template_rft_above()
Called from D:\xampp\htdocs\rc2\Sources\Load.php on line 2538
#2: loadSubTemplate()
Called from D:\xampp\htdocs\rc2\Sources\Subs.php on line 3887
#3: template_header()
Called from D:\xampp\htdocs\rc2\Sources\Subs.php on line 3471
#4: obExit()
Called from D:\xampp\htdocs\rc2\index.php on line 171

Title: Re: Avatars Display Integration
Post by: kokkieblanda on May 23, 2020, 01:54:20 PM
array error is not from the logs. With error log disabled. When i click on alerts in top line and then on button all alerts that error shows up and the website goes blanc, just that error is viable.
When i enable error log that button works but the error log show the notice Sources/AvatarsDisplayIntegration.php (line 524)
==>524:    $context['alerts'][$id_alert]['icon'].= $context['adi']['close'].$context['adi']['iconstatus'].'</div>';


Backtrace information

    #0: smf_error_handler_cron()
    Called from /home/xxxxx/public_html/Sources/AvatarsDisplayIntegration.php on line 387
    #1: adi_integrate_bbc_codes()
    Called from /home/xxxxxx/public_html/Sources/Subs.php on line 4834
    #2: call_integration_hook()
    Called from /home/xxxxxxx/public_html/Sources/Subs.php on line 1924
    #3: parse_bbc()
    Called from /xxxxxxx/public_html/Sources/tasks/CreatePost-Notify.php on line 204
    #4: execute()
    Called from /home/xxxxxxxxx/public_html/cron.php on line 211
    #5: perform_task()
    Called from /home/xxxxxxxxu/public_html/cron.php on line 105

Title: Re: Avatars Display Integration
Post by: kokkieblanda on May 25, 2020, 09:41:58 AM
524:    $context['alerts'][$id_alert]['icon'] = $context['adi']['close'].$context['adi']['iconstatus'].'</div>'; seems to solve the error
524:    $context['alerts'][$id_alert]['icon'].= $context['adi']['close'].$context['adi']['iconstatus'].'</div>'; original
Title: Re: Avatars Display Integration
Post by: Pipke on May 25, 2020, 12:12:07 PM
Quote from: kokkieblanda on May 25, 2020, 09:41:58 AM
524:    $context['alerts'][$id_alert]['icon'] = $context['adi']['close'].$context['adi']['iconstatus'].'</div>'; seems to solve the error
524:    $context['alerts'][$id_alert]['icon'].= $context['adi']['close'].$context['adi']['iconstatus'].'</div>'; original

if you remove the "dot" then you create another fault in the output format ?
Title: Re: Avatars Display Integration
Post by: kokkieblanda on May 26, 2020, 01:33:10 AM
everything works fine now
there is an error item only for guests not for members, so it doesn't bother me, the mod works splendidly
Fouttype: Cron
Foutmelding: 8: Undefined index: current_action
Bestand: /home/xxxxx/public_html/Sources/AvatarsDisplayIntegration.php Regel: 387
Title: Re: Avatars Display Integration
Post by: pocttopus on May 29, 2020, 05:58:34 PM
Hello,

I am receiving errors, can someone help me:

Type of error: General
8: Trying to access array offset on value of type null https://renaultclub.mk/index.php?
/home/xxxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 164)

Title: Re: Avatars Display Integration
Post by: Pipke on June 03, 2020, 03:25:21 PM
Quote from: pocttopus on May 29, 2020, 05:58:34 PM
Hello,

I am receiving errors, can someone help me:

Type of error: General
8: Trying to access array offset on value of type null https://renaultclub.mk/index.php?
/home/xxxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 164)



this is perhaps coming due php 7.4

try this in file @lines 143,144,145 .../Sources/AvatarsDisplayIntergration.php (make backup first!)
Code (find) Select

// Get, if not queried yet the who's online list
if (!isset($context['adi_online']) && $modSettings['adi_icon_overlay'] !== 'none' && $array_var == null)
adi_get_online_members();


Code (replace by) Select

// Get, if not queried yet the who's online list
if (!isset($context['adi_online']) && $modSettings['adi_icon_overlay'] !== 'none' && !isset($array_var))
adi_get_online_members();


let me know if that works.
Title: Re: Avatars Display Integration
Post by: pocttopus on June 03, 2020, 06:14:23 PM
Hello @Pipke and thanks for your reponse,

Unfortunately after the changes I still receive the same error messages:

Type of error: General
8: Trying to access array offset on value of type null https://renaultclub.mk/index.php?
xxxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 164)
Title: Re: Avatars Display Integration
Post by: Arantor on June 03, 2020, 07:44:01 PM
Replace line 164 of that file.

Code (before) Select
$context['adi']['title'] = $context['user']['id'] == $id ? $txt['adi_you_are_logged_in'] : ($name ? $name : $txt['adi_unknown_user'].$id).' '.($array_var['is_online'] ? $txt['adi_log_in'] : $txt['adi_log_un']);

Code (after) Select
$context['adi']['title'] = $context['user']['id'] == $id ? $txt['adi_you_are_logged_in'] : ($name ? $name : $txt['adi_unknown_user'].$id).' '.($array_var && $array_var['is_online'] ? $txt['adi_log_in'] : $txt['adi_log_un']);

The issue is that $array_var is being inserted into that function as null, and you can't ask for an array subscript of null.
Title: Re: Avatars Display Integration
Post by: pocttopus on June 03, 2020, 08:22:09 PM
 :(

Type of error: General
8: Trying to access array offset on value of type null https://renaultclub.mk/index.php?
xxxxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 163)


Now this line is the issue (163)
$context['adi']['is_online'] = $array_var['is_online'] ? 'log_in' : 'log_un';
Title: Re: Avatars Display Integration
Post by: pocttopus on June 04, 2020, 02:44:37 AM
Somehow it stops showing errors.
I believe that now everything is fine... I'll update if error log returns.

Thanks @Pipke and @Arantor for your help, you are very kind.
Title: Re: Avatars Display Integration
Post by: Pipke on June 04, 2020, 04:16:29 AM
Quote from: Arantor on June 03, 2020, 07:44:01 PM
Replace line 164 of that file.

Code (before) Select
$context['adi']['title'] = $context['user']['id'] == $id ? $txt['adi_you_are_logged_in'] : ($name ? $name : $txt['adi_unknown_user'].$id).' '.($array_var['is_online'] ? $txt['adi_log_in'] : $txt['adi_log_un']);

Code (after) Select
$context['adi']['title'] = $context['user']['id'] == $id ? $txt['adi_you_are_logged_in'] : ($name ? $name : $txt['adi_unknown_user'].$id).' '.($array_var && $array_var['is_online'] ? $txt['adi_log_in'] : $txt['adi_log_un']);

The issue is that $array_var is being inserted into that function as null, and you can't ask for an array subscript of null.

nice catch, thx Arantor
Ill update the code in next release!
Title: Re: Avatars Display Integration
Post by: pocttopus on June 25, 2020, 04:08:09 AM
More errors on the same line as previous... any help please?

   Type of error: General
8: Trying to access array offxxxset on value of type null xxSources/AvatarsDisplayIntegration.php (Line 163)


161: {
162: // Who what where is online
==>163: $context['adi']['is_online'] = $array_var['is_online'] ? 'log_in' : 'log_un';
164: $context['adi']['title'] = $context['user']['id'] == $id ? $txt['adi_you_are_logged_in'] : ($name ? $name : $txt['adi_unknown_user'].$id).' '.($array_var && $array_var['is_online'] ? $txt['adi_log_in'] : $txt['adi_log_un']);
Title: Re: Avatars Display Integration
Post by: Pipke on June 28, 2020, 06:06:48 AM
Quote from: pocttopus on June 25, 2020, 04:08:09 AM
More errors on the same line as previous... any help please?

   Type of error: General
8: Trying to access array offxxxset on value of type null xxSources/AvatarsDisplayIntegration.php (Line 163)


161: {
162: // Who what where is online
==>163: $context['adi']['is_online'] = $array_var['is_online'] ? 'log_in' : 'log_un';
164: $context['adi']['title'] = $context['user']['id'] == $id ? $txt['adi_you_are_logged_in'] : ($name ? $name : $txt['adi_unknown_user'].$id).' '.($array_var && $array_var['is_online'] ? $txt['adi_log_in'] : $txt['adi_log_un']);


change line 163 to

$context['adi']['is_online'] = isset($array_var['is_online']) ? 'log_in' : 'log_un';
Title: Re: Avatars Display Integration
Post by: gevv on February 01, 2021, 11:57:17 AM
Hi,

There are some problems smf 2.1 rc3 I found the solution will disable some features

some topic give white page 503 error;

in settings; Display avatar when using bbc @mention member in posts...   
I chose " please do not" problem solved




recent post page give white page 503 error;

in settings; Display avatar poster on the Recent posts index
I uncheck the box problem solved

Title: Re: Avatars Display Integration
Post by: wylekk on February 01, 2021, 12:41:58 PM
I have version 1.2, smf 2.1 rc3 installed and there are no such problems. Yes, all features are included.  ;)
Title: Re: Avatars Display Integration
Post by: gevv on February 04, 2021, 06:08:36 AM
Hi,

last post view is broken on mobile

(https://i.ibb.co/BTdJ7H3/uu1.png) (https://imgbb.com/)
(https://i.ibb.co/ypkSWJd/uu.png) (https://imgbb.com/)
Title: Re: Avatars Display Integration
Post by: Pipke on February 05, 2021, 06:15:34 PM
Quote from: gevv on February 01, 2021, 11:57:17 AM
Hi,

There are some problems smf 2.1 rc3 I found the solution will disable some features

some topic give white page 503 error;

in settings; Display avatar when using bbc @mention member in posts...   
I chose " please do not" problem solved




recent post page give white page 503 error;

in settings; Display avatar poster on the Recent posts index
I uncheck the box problem solved


sorry i can't reproduce your errors, in my test environment everything looks fine on RC3 to help you more i need more info, perhaps from a live example?
Title: Re: Avatars Display Integration
Post by: Pipke on February 05, 2021, 06:16:28 PM
Quote from: gevv on February 04, 2021, 06:08:36 AM
Hi,

last post view is broken on mobile

(https://i.ibb.co/BTdJ7H3/uu1.png) (https://imgbb.com/)
(https://i.ibb.co/ypkSWJd/uu.png) (https://imgbb.com/)


uhh what is broken..your both screenshots looks fine to me?
Title: Avatars Display Integration
Post by: Delimavi123 on February 09, 2021, 01:53:34 PM
Merhaba Mobil de sistem çalışmıyor.

(//)
Title: Re: Avatars Display Integration
Post by: Pipke on February 09, 2021, 02:50:38 PM
Quote from: Delimavi123 on February 09, 2021, 01:53:34 PM
Merhaba Mobil de sistem çalışmıyor.

(//)

what is wrong on mobile then? If you ask for on mobile doesn't work isn't a good way to ask for help....and please reply in english.
Title: Re: Avatars Display Integration
Post by: Delimavi123 on February 09, 2021, 03:10:27 PM
The mod works very well on the computer. But it doesn't work on the cell phone. Many people now use the internet from their mobile phones. For this reason, can you help the mod to work on the mobile phone.
Title: Re: Avatars Display Integration
Post by: Pipke on February 09, 2021, 03:33:59 PM
Quote from: Delimavi123 on February 09, 2021, 03:10:27 PM
The mod works very well on the computer. But it doesn't work on the cell phone. Many people now use the internet from their mobile phones. For this reason, can you help the mod to work on the mobile phone.

The mod is intended to function that way, the mod does not display the avatar on mobile because the screen is too small.
Title: Re: Avatars Display Integration
Post by: Delimavi123 on February 09, 2021, 06:12:37 PM
Yes it sounds great for the home page. But it is not big for the page where the topics are listed. on the contrary, it makes it look smoother by opening the subject spaces on the subject pages. Other kinds of issues seem too intertwined. Can't there be at least one option? within the topics section
Title: Re: Avatars Display Integration
Post by: gevv on February 11, 2021, 02:23:57 PM
Hi,

@Pipke

Can avatar be added to Info Center / Recent posts section  ?  feature request :)
Title: Re: Avatars Display Integration
Post by: Pipke on February 11, 2021, 04:47:18 PM
Quote from: gevv on February 11, 2021, 02:23:57 PM
Hi,

@Pipke

Can avatar be added to Info Center / Recent posts section  ?  feature request :)


Recent posts section <- this feature already exists in the mod, check it out at yoursite/index.php?action=recent

Info Center <- hmm i have to code that if more users want it. for now you can use the easy way with the build in code
do this at the BoardIndex.template.php there is the Info Center

*Other costum places:
How to add user avatar anywhere in your template file from mods maybe, simple type:
data-adi-id="{userid}"

How to example in template file:
Code (find) Select

<div class="most_downloaded"><a href="'.$last['href'].'"><b>'.$last['name'].'</b></a></div>

Code (replace by) Select

<div class="most_downloaded">data-adi-id="'.$last['user']['id'].'"<a href="'.$last['href'].'"><b>'.$last['name'].'</b></a></div>


How to style your costum output element:
<span class="{whatever}">data-adi-id="{userid}"</span>
Title: Re: Avatars Display Integration
Post by: gevv on February 12, 2021, 10:27:24 AM
Thanks  @Pipke

I did not understand, I tried but I was not successful

(https://i.ibb.co/99hWmJj/Untitled-2.png) (https://ibb.co/0jKrpk3)

(https://i.ibb.co/nqXpF5h/Untitled-3.png) (https://ibb.co/xKnZNRV)
Title: Re: Avatars Display Integration
Post by: Pipke on February 13, 2021, 06:13:30 PM
@gevv

in .../Sources/AvatarsDisplayIntegration.php

Code (find) Select

// This option true...then we need this css ## titlebar 'user' 
if ($modSettings['adi_wholist'])
addInlineCss('.action_who th:nth-child(1) {padding-left: 52px;} #mlist span.member {line-height: 38px;}');


Code (add after) Select

addInlineCss('#ic_recentposts td, #ic_recentposts td span {vertical-align: middle;}');
addInlineCss('#ic_recentposts th:first-child {padding-left: 42px;}');



Code (find) Select

// Avatars categories (board)index (aka main/home page)
if ((isset($context['categories']) && !empty($context['categories'])) && in_array('boardindex_outer', $context['template_layers'], true) && $modSettings['adi_boardindex'])
{

Code (add after) Select

if (!empty($context['latest_posts'])) {
foreach ($context['latest_posts'] as $id_post => $post) {
// Guests
if ($modSettings['adi_initials'] && $context['latest_posts'][$id_post]['poster']['id'] == 0)
{
// Build overlay status
adi_status_data(null, $context['latest_posts'][$id_post]['poster']['name'], null, 'costum');

// Hook in context
$context['latest_posts'][$id_post]['link'] = '<span class="adi_item_costum"><span class="avatar" '.adi_name2hex2rgb($context['latest_posts'][$id_post]['poster']['name']).' '.adi_avatar_data(true).'>'.mb_strtoupper(mb_substr($context['latest_posts'][$id_post]['poster']['name'], 0, 1), 'UTF-8').'</span>'.$context['adi']['iconstatus'].'</span>'. $post['link'];
}
else
$context['latest_posts'][$id_post]['link'] = '<span>data-adi-id="'.$context['latest_posts'][$id_post]['poster']['id'].'"<span>'. $post['link'];
}
}



then you get Avatars recent posts in Info Center (if theme option is set) see attachment, good luck with the edit ;)
Title: Re: Avatars Display Integration
Post by: gevv on February 14, 2021, 12:01:13 PM
Thanks @Pipke
Title: Re: Avatars Display Integration
Post by: pocttopus on July 19, 2021, 10:14:10 AM
After updating the mod for v2.1 rc4 still needs to emulate to rc3.

(https://i.postimg.cc/BvH04yfc/Screenshot-5.jpg)
Title: Re: Avatars Display Integration
Post by: Pipke on July 19, 2021, 02:32:47 PM
Quote from: pocttopus on July 19, 2021, 10:14:10 AM
After updating the mod for v2.1 rc4 still needs to emulate to rc3.

(https://i.postimg.cc/BvH04yfc/Screenshot-5.jpg)

thx for finding that, i forgot to update the install package for RC4.
Mod is updated, latest version now 1.3
Title: Re: Avatars Display Integration
Post by: pocttopus on July 19, 2021, 04:25:36 PM
Thanks but after updating on rc4 with 1.3 I have these errors:

Type of error
Undefined_vars
Error message
8: Undefined index: profile_of
File
/home/xxx/public_html/Sources/AvatarsDisplayIntegration.php
Line
178
URL of page causing the error
https://xxxx/index.php?action=admin;area=manageattachments;sa=avatars
Backtrace information
#0: smf_error_handler()
Called from /home/xxx/public_html/Sources/AvatarsDisplayIntegration.php on line 178
#1: adi_status_data()
Called from /home/xxx/public_html/Sources/AvatarsDisplayIntegration.php on line 481
#2: adi_integrate_member_context()
Called from /home/xxx/public_html/Sources/Subs.php on line 5102
#3: call_integration_hook()
Called from /home/xxx/public_html/Sources/Load.php on line 1826
#4: loadMemberContext()
Called from /home/xxx/public_html/Sources/LightPortal/addons/TopPosters/TopPosters.php on line 144
#5: getData()
Called from /home/xxxx/public_html/Sources/LightPortal/utils/Cache.php on line 48
#6: __invoke()
Called from /home/xxx/public_html/Sources/LightPortal/Helpers.php on line 38
#7: cache()
Called from /home/xxx/public_html/Sources/LightPortal/addons/TopPosters/TopPosters.php on line 175
#8: prepareContent()
Called from /home/xxx/public_html/Sources/LightPortal/Subs.php on line 281
#9: runAddons()
Called from /home/xxx/public_html/Sources/LightPortal/Helpers.php on line 609
#10: prepareContent()
Called from /home/xxx/public_html/Sources/LightPortal/Block.php on line 50
#11: show()
Called from /home/xxx/public_html/Sources/LightPortal/Integration.php on line 242
#12: menuButtons()
Called from /home/xxx/public_html/Sources/Subs.php on line 5102
#13: call_integration_hook()
Called from /home/xxx/public_html/Sources/Subs.php on line 4902
#14: setupMenuContext()
Called from /home/xxx/public_html/Sources/Subs.php on line 3715
#15: setupThemeContext()
Called from /home/xxx/public_html/Sources/Subs.php on line 3872
#16: template_header()
Called from /home/xxx/public_html/Sources/Subs.php on line 3495
#17: obExit()
Called from /home/xxx/public_html/index.php on line 190
Title: Re: Avatars Display Integration
Post by: Pipke on July 19, 2021, 04:51:17 PM
on my test environment all works ok at... ?action=admin;area=manageattachments;sa=avatars
and not getting:
Undefined index: profile_of

thats a txt string very weird, to me it seems your forum is not loading the txt file?

...\Themes\default\languages\index.english.php
line 102: $txt['profile_of'] = 'View the profile of';
Title: Re: Avatars Display Integration
Post by: pocttopus on July 20, 2021, 02:24:43 AM
@Pipke so what do you suggest? Where to look into my problem to solve it? How can I find what is causing my issue?  :-[
These a lot of errors inside error log such as:

/home/xxxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 164)
Backtrace information

Type of error: General
Error message Select
8: Trying to access array offset on value of type null

THanks!  :)
Title: Re: Avatars Display Integration
Post by: marcosbr on July 29, 2021, 10:05:34 PM
My hundreds of errors
(2: Undefined array key "profile of") I edited AvatarsDisplayIntegration.php
profile_of by profile.
Title: Re: Avatars Display Integration
Post by: Pipke on July 30, 2021, 02:09:13 PM
Quote from: marcosbr on July 29, 2021, 10:05:34 PM
My hundreds of errors
(2: Undefined array key "profile of") I edited AvatarsDisplayIntegration.php
profile_of by profile.

question: wich code part dit you edit?
Title: Re: Avatars Display Integration
Post by: Shades. on July 30, 2021, 05:29:57 PM
Getting these error when guests click on avatar/profile:

QuoteGuest
107.77.200.135
c2c254de731143a3b06646e582f40b17
https://*****.com/*****/index.php?action=profile;u=1
/home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php (Line 178)

Type of error: Undefined
Error messageSelect
8: Undefined index: profile_of

QuoteType of error
Undefined_vars
Error message
8: Undefined index: profile_of
File
/home2/*****/public_html/*****/*****/Sources/AvatarsDisplayIntegration.php
Line
178
URL of page causing the error
https://*****.com/*****/index.php?action=profile;u=1
Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/*****/Sources/AvatarsDisplayIntegration.php on line 178
#1: adi_status_data()
Called from /home2/*****/public_html/*****/*****/Sources/AvatarsDisplayIntegration.php on line 481
#2: adi_integrate_member_context()
Called from /home2/*****/public_html/*****/*****/Sources/Subs.php on line 5154
#3: call_integration_hook()
Called from /home2/*****/public_html/*****/*****/Sources/Load.php on line 1830
#4: loadMemberContext()
Called from /home2/*****/public_html/*****/*****/Sources/Profile.php on line 63
#5: ModifyProfile()
Called from /home2/*****/public_html/*****/*****/index.php on line 187
Title: Re: Avatars Display Integration
Post by: marcosbr on July 30, 2021, 07:10:05 PM
Sorry the English. I'm curious.  8)
Within AvatarsDisplayIntegration.php there are 4 profile_of. I cut _of and left only profile. I tested it and everything worked normal!
I'm just trying to collaborate with you or someone to "correctly" solve the problem. I'm just stubborn about testing everything by following the bug tips. I save all the originals and go testing!
Title: Re: Avatars Display Integration
Post by: marcosbr on July 30, 2021, 07:13:30 PM
line 178
Title: Re: Avatars Display Integration
Post by: Pipke on August 03, 2021, 03:38:55 PM
Fixed Undefined index global $txt var "profile_of", this var doesnt exist anymore in 2.1 RC4, latest version is now 1.4

thanks to marcosbr and Shades for the report.
Title: Re: Avatars Display Integration
Post by: Shades. on August 03, 2021, 03:50:06 PM
Quote from: Pipke on August 03, 2021, 03:38:55 PM
Fixed Undefined index global $txt var "profile_of", this var doesnt exist anymore in 2.1 RC4, latest version is now 1.4

thanks to marcosbr and Shades for the report.
Thanks for the update Pipke works great! 8)
Title: Re: Avatars Display Integration
Post by: Speed King on August 03, 2021, 10:55:50 PM
After installing new 1.4 version, I still get errors:

PHP Warning:  Undefined array key "profile_of" in /home/***/public_html/BNF/Sources/AvatarsDisplayIntegration.php on line 720
PHP Warning:  Undefined array key "profile_of" in /home/***/public_html/BNF/Sources/AvatarsDisplayIntegration.php on line 737


Version Information:
Forum version: SMF 2.1 RC4 (more detailed)
Current SMF version: SMF 2.1 RC4
GD version: bundled (2.1.0 compatible)
MySQL engine: MariaDB
MySQL version: 10.3.30-MariaDB-log
SMF file based caching: 2.1 RC4
SQLite3 database based caching: 3.7.17
PHP: 8.0.8 (more detailed)
Server version: Apache
Title: Re: Avatars Display Integration
Post by: Pipke on August 04, 2021, 05:43:59 AM
Quote from: Speed King on August 03, 2021, 10:55:50 PM
After installing new 1.4 version, I still get errors:

PHP Warning:  Undefined array key "profile_of" in /home/***/public_html/BNF/Sources/AvatarsDisplayIntegration.php on line 720
PHP Warning:  Undefined array key "profile_of" in /home/***/public_html/BNF/Sources/AvatarsDisplayIntegration.php on line 737


thx for the report, it should be fixed now, latest mod version is now 1.4.1
Title: Re: Avatars Display Integration
Post by: Speed King on August 04, 2021, 06:28:12 AM
Thanks for the fix, with new version 1.4.1 reported errors are gone :)
Title: Re: Avatars Display Integration
Post by: pocttopus on August 04, 2021, 10:45:53 AM
Hello,

A lot of error still occurs with the latest v1.4.1 (smf 2.1rc4):

8: Trying to access array offset on value of type null

/home/xxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 163)
/home/xxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 164)
Title: Re: Avatars Display Integration
Post by: Pipke on August 04, 2021, 01:55:50 PM
Quote from: pocttopus on August 04, 2021, 10:45:53 AM
Hello,

A lot of error still occurs with the latest v1.4.1 (smf 2.1rc4):

8: Trying to access array offset on value of type null

/home/xxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 163)
/home/xxx/public_html/Sources/AvatarsDisplayIntegration.php (Line 164)


thx for the report agian ;( , it should be fixed now, latest mod version is now 1.4.2
Title: Re: Avatars Display Integration
Post by: Speed King on September 07, 2021, 10:02:54 AM
Is it possible to increase avatar size in user menu to default size of 100px?
I'm looking in css file, but cannot find the appropriate code.

Click => (https://i.postimg.cc/dLR47pD9/2021-09-07.png) (https://postimg.cc/dLR47pD9)
Title: Re: Avatars Display Integration
Post by: Pipke on September 07, 2021, 03:29:26 PM
Quote from: Speed King on September 07, 2021, 10:02:54 AMIs it possible to increase avatar size in user menu to default size of 100px?
I'm looking in css file, but cannot find the appropriate code.

Click => (https://i.postimg.cc/dLR47pD9/2021-09-07.png) (https://postimg.cc/dLR47pD9)

The mod uses max. 65px instead of 100px, so anyway for 65px image do these edits in AvatarsDisplayIntegration.css

Code (find) Select
#profileview .avatar {
Code ("replace by") Select
#profileview .avatar, #profile_menu .avatar {

Code (find) Select
li.avatar, .avatar, .poster .avatar[data-adi~="avatar"], #profileview .avatar[data-adi~="avatar"], #profileview .adi_item_context {
Code ("replace by") Select
li.avatar, .avatar, .poster .avatar[data-adi~="avatar"], #profileview .avatar[data-adi~="avatar"], #profileview .adi_item_context, #profile_menu .profile_user_avatar .adi_item_context img {

Code (find) Select
li.avatar [data-adi~="inner"], #profileview [data-adi~="inner"] {
Code ("replace by") Select
li.avatar [data-adi~="inner"], #profileview [data-adi~="inner"], #profile_menu [data-adi~="inner"] {

Code (find) Select
#profileview [data-adi~="back"] {
Code ("replace by") Select
#profileview [data-adi~="back"], #profile_menu [data-adi~="back"] {

Code (find) Select
#profileview [data-adi~="front"] {
Code ("replace by") Select
#profileview [data-adi~="front"], #profile_menu [data-adi~="front"] {

thats it ;)

Title: Re: Avatars Display Integration
Post by: Pipke on September 07, 2021, 05:08:59 PM
or you can do as posted in this reply https://www.simplemachines.org/community/index.php?msg=4046926
Title: Re: Avatars Display Integration
Post by: Speed King on September 07, 2021, 11:20:16 PM
Thanks, now avatar size in user menu is 100px :)

Click => (https://i.postimg.cc/HcxfH6P4/2021-09-08.png) (https://postimg.cc/HcxfH6P4)
Title: Re: Avatars Display Integration
Post by: Shades. on September 23, 2021, 10:50:32 PM
Just got an error 500 blank page after starting a new topic with this mod installed. Here are the two errors I got in admin...

QuoteError
Type of error
General
Error message
8: Trying to access array offset on value of type null
File
/home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php
Line
356
URL of page causing the error
https://*****.com/index.php?/topic,2.msg4.html
Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php on line 356
#1: adi_load_data()
Called from /home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php on line 452
#2: adi_integrate_display_buttons()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 5213
#3: call_integration_hook()
Called from /home2/*****/public_html/*****/Sources/Display.php on line 1346
#4: Display()
Called from /home2/*****/public_html/*****/index.php on line 18

QuoteError
Type of error
Undefined_vars
Error message
8: Undefined variable: smcFunc
File
/home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php
Line
356
URL of page causing the error
https://*****.com/index.php?/topic,2.msg4.html
Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php on line 356
#1: adi_load_data()
Called from /home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php on line 452
#2: adi_integrate_display_buttons()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 5213
#3: call_integration_hook()
Called from /home2/*****/public_html/*****/Sources/Display.php on line 1346
#4: Display()
Called from /home2/*****/public_html/*****/index.php on line 187

When I uninstalled it my post was there and I was able to start a new topic again. I have it installed on other sites with same mods, actually this one has the least mods, but it works great on the other sites. Any ideas?

2.1RC4
Avatars Display Integration 1.4.2

Mods installed

1 Contact Page 6.0 Sep 21, 2021, 02:12 PM UNINSTALL LIST FILES DELETE
2 Forum Width Setting 1.2 Sep 21, 2021, 01:41 PM UNINSTALL EMULATING: 2.1RC3 LIST FILES DELETE
3 Ultimate Menu 1.0.3 Sep 21, 2021, 01:54 PM UNINSTALL EMULATING: 2.0 LIST FILES DELETE
4 BBC You 2.2 Sep 21, 2021, 10:25 PM UNINSTALL LIST FILES DELETE
5 Paragrapher 2.4 Sep 21, 2021, 09:53 PM UNINSTALL LIST FILES DELETE
6 Custom_Top_menu 1.4 Sep 21, 2021, 09:08 PM UNINSTALL LIST FILES DELETE
7 Avatars Display Integration 1.4.2 Today at 02:35 AM UNINSTALL LIST FILES DELETE
8 Similar Topics 1.1.1 Sep 21, 2021, 09:11 PM UNINSTALL LIST FILES DELETE
9 New Topic Button 1.0 Sep 21, 2021, 09:47 PM UNINSTALL LIST FILES DELETE
10 Menu Order 0.2.6 Sep 21, 2021, 09:06 PM UNINSTALL EMULATING: 2.0 LIST FILES DELETE
11 Alternate User Posting 2.1 Sep 21, 2021, 09:26 PM UNINSTALL LIST FILES DELETE
12 BBC Message Boxes 3.0.1 Sep 21, 2021, 09:21 PM UNINSTALL LIST FILES DELETE
13 Admin Notepad 2.0.2 Sep 21, 2021, 09:37 PM UNINSTALL LIST FILES DELETE
14 SMF Optimus 2.9.4 [06.08.20] Sep 21, 2021, 02:19 PM UNINSTALL LIST FILES DELETE
15 Google Analytics Code 1.5.1 Sep 21, 2021, 09:15 PM UNINSTALL EMULATING: 2.0 LIST FILES DELETE
16 RSS Feed Icon 1.1 Sep 21, 2021, 09:39 PM UNINSTALL LIST FILES DELETE
17 GDPR Pro 2.0.6d Sep 21, 2021, 02:13 PM UNINSTALL LIST FILES DELETE
18 Profile Moderator Management 3.0.1 Sep 21, 2021, 09:25 PM UNINSTALL LIST FILES DELETE
19 Profile Starsigns 0.3 Sep 21, 2021, 09:22 PM UNINSTALL EMULATING: 2.1RC3 LIST FILES DELETE
20 Welcome Topic Mod 2.3b Sep 21, 2021, 09:54 PM UNINSTALL LIST FILES DELETE
21 ICAP: Info Center Access Permission 1.0.0 Sep 21, 2021, 09:59 PM UNINSTALL EMULATING: 2.0 LIST FILES DELETE
22 Anti-spam by CleanTalk 2.35 Sep 21, 2021, 02:07 PM UNINSTALL LIST FILES DELETE
23 EhPortal 1.30 Sep 21, 2021, 10:34 PM UNINSTALL LIST FILES DELETE
24 Ad Seller Pro 3.0.4 Sep 21, 2021, 10:21 PM UNINSTALL LIST FILES DELETE
25 Curve2 Color Changer 1.2 Sep 21, 2021, 01:34 PM UNINSTALL LIST FILES DELETE
Title: Re: Avatars Display Integration
Post by: Pipke on September 24, 2021, 07:34:54 AM
Quote from: Shades. on September 23, 2021, 10:50:32 PMJust got an error 500 blank page after starting a new topic with this mod installed. Here are the two errors I got in admin...

think i found the problem

in file .../Sources/AvatarsDisplayIntegration.php at line 347
Code (find) Select
    global $image_proxy_enabled, $user_info, $modSettings, $context;

Code (replace by) Select
    global $image_proxy_enabled, $user_info, $modSettings, $context, $smcFunc;

let me know if this solves the 2 errors.



Title: Re: Avatars Display Integration
Post by: Shades. on September 24, 2021, 11:31:16 AM
I think that did the trick, thanks! :)  8)
Title: Re: Avatars Display Integration
Post by: gevv on January 25, 2022, 12:22:53 PM
Hi,

Conflict with Topics solved  mod. https://github.com/SimpleDesk/Team-Mods-TopicSolved

(https://i.ibb.co/JdGZ0Nr/Untitled.gif)

https://i.ibb.co/JdGZ0Nr/Untitled.gif

is there a solution?

Thanks.
Title: Re: Avatars Display Integration
Post by: Pipke on January 25, 2022, 04:55:31 PM
Quote from: gevv on January 25, 2022, 12:22:53 PMis there a solution?


Always, problem is both mods are using the same modifying in array $context['topics']

Solution: it's very simple, just uninstall my mod then install it agian. This way the hooks my mod uses are coming after the topic solved mod hooks, wich solves the issue.

Solution in next post
Title: Re: Avatars Display Integration
Post by: Pipke on January 25, 2022, 06:32:28 PM
@gevv above post is not right and triggers errors (so ignore above post, i cannot remove or edit it anymore)

do instead this: in SolveTopic.php
Code (find) Select
        // Is it solved?
        if ($context['topics'][$topic_data['id']]['is_solved'])
            $context['topics'][$topic_data['id']]['css_class'] = 'windowbg solvedbg';

and disable these 2 code lines

Code ("replace by") Select
        // Is it solved?
/*         if ($context['topics'][$topic_data['id']]['is_solved'])
            $context['topics'][$topic_data['id']]['css_class'] = 'windowbg solvedbg'; */

Title: Re: Avatars Display Integration
Post by: Diego Andrés on January 25, 2022, 08:01:33 PM
I don't know if both mods have it like that, but at least for the Topic Solved mod, the better solution would be to add the classes instead of replacing.
e.g.
$context['topics'][$topic_data['id']]['css_class'] .= ' other classes here';
Title: Re: Avatars Display Integration
Post by: gevv on January 26, 2022, 03:12:08 PM
Quote from: Pipke on January 25, 2022, 06:32:28 PM@gevv above post is not right and triggers errors (so ignore above post, i cannot remove or edit it anymore)

do instead this: in SolveTopic.php
Code (find) Select
        // Is it solved?
        if ($context['topics'][$topic_data['id']]['is_solved'])
            $context['topics'][$topic_data['id']]['css_class'] = 'windowbg solvedbg';

and disable these 2 code lines

Code ("replace by") Select
        // Is it solved?
/*         if ($context['topics'][$topic_data['id']]['is_solved'])
            $context['topics'][$topic_data['id']]['css_class'] = 'windowbg solvedbg'; */



I tried, problem solved, thanks
Title: Re: Avatars Display Integration
Post by: gevv on February 12, 2022, 03:52:54 AM
Quote from: Pipke on February 13, 2021, 06:13:30 PM
Code (find) Select
// Avatars categories (board)index (aka main/home page)
if ((isset($context['categories']) && !empty($context['categories'])) && in_array('boardindex_outer', $context['template_layers'], true) && $modSettings['adi_boardindex'])
{
Code (add after) Select
if (!empty($context['latest_posts'])) {
foreach ($context['latest_posts'] as $id_post => $post) {
// Guests
if ($modSettings['adi_initials'] && $context['latest_posts'][$id_post]['poster']['id'] == 0)
{
// Build overlay status
adi_status_data(null, $context['latest_posts'][$id_post]['poster']['name'], null, 'costum');

// Hook in context
$context['latest_posts'][$id_post]['link'] = '<span class="adi_item_costum"><span class="avatar" '.adi_name2hex2rgb($context['latest_posts'][$id_post]['poster']['name']).' '.adi_avatar_data(true).'>'.mb_strtoupper(mb_substr($context['latest_posts'][$id_post]['poster']['name'], 0, 1), 'UTF-8').'</span>'.$context['adi']['iconstatus'].'</span>'. $post['link'];
}
else
$context['latest_posts'][$id_post]['link'] = '<span>data-adi-id="'.$context['latest_posts'][$id_post]['poster']['id'].'"<span>'. $post['link'];
}
}





Hi,


@Pipke codes worked before.

It doesn't work now, when I add the second code, the white all pages  appears

error log;

Sources/AvatarsDisplayIntegration.php on line 828

Avatars Display Integration  v1.4.2
SMF 2.1.1
Title: Re: Avatars Display Integration
Post by: Pipke on February 13, 2022, 03:06:36 PM
what is the exact error?
Title: Re: Avatars Display Integration
Post by: FrizzleFried on February 21, 2022, 12:46:06 AM
Just installed... 2.1 with only 6 or 7 mods...

I am now getting this error:

https://www.aha-forums.com/cron.php
/home/ahaforum/public_html/Sources/AvatarsDisplayIntegration.php (Line 387)

Type of error: Cron
Error messageSelect
8: Undefined index: current_action

Backtrace info:

#0: smf_error_handler_cron()
Called from /home/ahaforum/public_html/Sources/AvatarsDisplayIntegration.php on line 387
#1: adi_integrate_bbc_codes()
Called from /home/ahaforum/public_html/Sources/Subs.php on line 5763
#2: call_integration_hook()
Called from /home/ahaforum/public_html/Sources/Subs.php on line 2465
#3: parse_bbc()
Called from /home/ahaforum/public_html/Sources/tasks/CreatePost-Notify.php on line 569
#4: handleWatchedNotifications()
Called from /home/ahaforum/public_html/Sources/tasks/CreatePost-Notify.php on line 270
#5: execute()
Called from /home/ahaforum/public_html/cron.php on line 233
#6: perform_task()
Called from /home/ahaforum/public_html/cron.php on line 127
Title: Re: Avatars Display Integration
Post by: FrizzleFried on February 26, 2022, 12:25:42 AM
Any suggestions on the error above?  This is the only mod I am getting an error from ...

Thanks!
Title: Re: Avatars Display Integration
Post by: Pipke on February 27, 2022, 04:52:12 PM
Quote from: FrizzleFried on February 26, 2022, 12:25:42 AMAny suggestions on the error above?  This is the only mod I am getting an error from ...

Thanks!

it's fixed mod updated newest version is now 1.5
Version 1.5 - Feb 27, 2022
- Fixed error 500 blank page due missing global var
- Fixed Undefined index: current_action
- Added option: Display avatar poster recent posts on info center

Also fixed various layout and css stuff to work with newest smf version 2.1.1
Title: Re: Avatars Display Integration
Post by: FrizzleFried on February 28, 2022, 11:21:35 AM
Hi...Unfortunately,  with the new version,  it breaks the CSS for the AVATAR on BBC Mention setting for 2.1.1.  If you set it for either BEFORE @ or after @ it will break the setting and put the avatar justify left... BEFORE even the text... and pushes the text right.

EDIT: It also appears the new option to put avatars on recent posts ... if you untick it,  the avatars remain (no way to turn them off).

SIDE QUESTION: How do I adjust the number of recent posts that show up?  20 is far too many... 10 would be nice.

Title: Re: Avatars Display Integration
Post by: gevv on February 28, 2022, 11:36:40 AM
Thanks @Pipke
Title: Re: Avatars Display Integration
Post by: @rjen on February 28, 2022, 11:40:51 AM
Find attached the language file in dutch
Title: Re: Avatars Display Integration
Post by: Pipke on February 28, 2022, 03:23:10 PM
Mod updated.
Version 1.5.1 - Feb 28, 2022
- Fixed css for @mentions avatar in posts
- Added dutch language

Quote from: FrizzleFried on February 28, 2022, 11:21:35 AMHi...Unfortunately,  with the new version,  it breaks the CSS for the AVATAR on BBC Mention setting for 2.1.1.  If you set it for either BEFORE @ or after @ it will break the setting and put the avatar justify left... BEFORE even the text... and pushes the text right.
Thanks for the report, i have fixed this newest mod version is now 1.5.1

Quote from: @rjen on February 28, 2022, 11:40:51 AMFind attached the language file in dutch
Thanks for that, i have added dutch to mod package newest mod version is now 1.5.1
ps. er zat ook een foutje in het vertalen je hebt 1 woordje "on" vergeten naar "op", verder alles prima hoor, ben zelf te lui om mijn mods te vertalen naar nederlands ;)

Quote from: FrizzleFried on February 28, 2022, 11:21:35 AMEDIT: It also appears the new option to put avatars on recent posts ... if you untick it,  the avatars remain (no way to turn them off).
I can't reproduce your problem. To me all works fine. Did you know there are 2 different settings for this... one for the "recent post index" and one for "recent post on info center"

Quote from: FrizzleFried on February 28, 2022, 11:21:35 AMSIDE QUESTION: How do I adjust the number of recent posts that show up?  20 is far too many... 10 would be nice.
Do you mean: recent posts info center or at recent posts index?
Title: Re: Avatars Display Integration
Post by: @rjen on February 28, 2022, 03:48:42 PM
Quote from: Pipke on February 28, 2022, 03:23:10 PMThanks for that, i have added dutch to mod package newest mod version is now 1.5.1
ps. er zat ook een foutje in het vertalen je hebt 1 woordje "on" vergeten naar "op", verder alles prima hoor, ben zelf te lui om mijn mods te vertalen naar nederlands ;)

Tja, wat zal ik ervan zeggen...

By the way: after installing the MOd I noticed that some of my TinyPortal pages are showing a slightly different background. The cause is this mod stripping out empty <div></div> combinations..

Curious why it is doing that? Since the Curve2 has formatting applied to repeating divs (light <> dark <> light ) this action is affecting some screens...
Title: Re: Avatars Display Integration
Post by: @rjen on February 28, 2022, 03:51:13 PM
Oh, and when I set the avatars to show for last poster but not topicstarter the Board-index is malformed on Mobile...

2022-02-28_214942.png
Title: Re: Avatars Display Integration
Post by: @rjen on February 28, 2022, 03:55:17 PM
One last note: when uninstalling the MOD wipes all settings, a bit annoying....
Title: Re: Avatars Display Integration
Post by: Pipke on February 28, 2022, 04:18:56 PM
Quote from: @rjen on February 28, 2022, 03:48:42 PMBy the way: after installing the MOd I noticed that some of my TinyPortal pages are showing a slightly different background. The cause is this mod stripping out empty <div></div> combinations..

Curious why it is doing that? Since the Curve2 has formatting applied to repeating divs (light <> dark <> light ) this action is affecting some screens...

That's because i make such strange/complex changes at some places on the context/output-vars/arrays to make the mod "all hooks" for final outcome template.
If you got empty divs you get conflict with the HTML Markup Validation Service.
Title: Re: Avatars Display Integration
Post by: Pipke on February 28, 2022, 04:19:42 PM
Quote from: @rjen on February 28, 2022, 03:55:17 PMOne last note: when uninstalling the MOD wipes all settings, a bit annoying....

It's free take it or leave it.
Title: Re: Avatars Display Integration
Post by: Pipke on February 28, 2022, 04:23:16 PM
Quote from: @rjen on February 28, 2022, 03:51:13 PMOh, and when I set the avatars to show for last poster but not topicstarter the Board-index is malformed on Mobile...

2022-02-28_214942.png

I will look into that
Title: Re: Avatars Display Integration
Post by: @rjen on February 28, 2022, 04:30:36 PM
Quote from: Pipke on February 28, 2022, 04:19:42 PM
Quote from: @rjen on February 28, 2022, 03:55:17 PMOne last note: when uninstalling the MOD wipes all settings, a bit annoying....

It's free take it or leave it.

I know, just wanted to mention it: it can be coded differently....
Title: Re: Avatars Display Integration
Post by: Pipke on February 28, 2022, 04:46:47 PM
Quote from: @rjen on February 28, 2022, 04:30:36 PM
Quote from: Pipke on February 28, 2022, 04:19:42 PM
Quote from: @rjen on February 28, 2022, 03:55:17 PMOne last note: when uninstalling the MOD wipes all settings, a bit annoying....

It's free take it or leave it.

I know, just wanted to mention it: it can be coded differently....

i know, btw this mod doesn't have much settings, so it's easy peasy to change them, after install you can get redirected to the settings, clicker the click and your done.
But anyway thanks for the ideas, maybe in future update i add it to the mod.
Title: Re: Avatars Display Integration
Post by: Pipke on February 28, 2022, 05:17:04 PM
Quote from: Pipke on February 28, 2022, 04:23:16 PM
Quote from: @rjen on February 28, 2022, 03:51:13 PMOh, and when I set the avatars to show for last poster but not topicstarter the Board-index is malformed on Mobile...

I will look into that

Quick fix for that add in AvatarsDisplayIntegration.css file.
/* responsive stuff */
@media screen and (max-width: 720px) {
    .adi_print .lastpost {
        width: 100%;
    }
}
Title: Re: Avatars Display Integration
Post by: FrizzleFried on February 28, 2022, 05:23:12 PM
Quote from: Pipke on February 28, 2022, 03:23:10 PM
Quote from: FrizzleFried on February 28, 2022, 11:21:35 AMEDIT: It also appears the new option to put avatars on recent posts ... if you untick it,  the avatars remain (no way to turn them off).
I can't reproduce your problem. To me all works fine. Did you know there are 2 different settings for this... one for the "recent post index" and one for "recent post on info center"

Quote from: FrizzleFried on February 28, 2022, 11:21:35 AMSIDE QUESTION: How do I adjust the number of recent posts that show up?  20 is far too many... 10 would be nice.
Do you mean: recent posts info center or at recent posts index?

My apologies.  You are 100% correct.  Things are working there as intended (I was mistaken as to what I was looking at).  And my second follow up question (which really has nothing to do with your mod) was in regards tot hat INFO CENTER.  I am not sure how I can limit that output to 10 rather than 20...

Title: Re: Avatars Display Integration
Post by: Pipke on February 28, 2022, 05:35:29 PM
@FrizzleFried for that second question about number of "Recent Posts Info Center" go to: 
Administration Center► Themes and Layout► Theme Settings
then do:
Member Options► Configure guest and new user options for this theme (or whatever change you want todo on certain option users)
then change number of setting:
Number of recent posts to display on board index:
Title: Re: Avatars Display Integration
Post by: Pipke on February 28, 2022, 05:52:13 PM
@FrizzleFried its a bit tricky, yeah i know. let me explain better how to change it.
go to: Administration Center► Themes and Layout► Theme Settings

Then on that page you find your current theme name (in the blue bar) on the right side there is an settings icon wheel thingy, click that and then you find the option to change "Number of recent posts to display on board index"

Edit: Even found faster how to go to:  Admin-> Main -> Configuration -> Current Theme (yeah also i learn every day more)
Title: Re: Avatars Display Integration
Post by: FrizzleFried on February 28, 2022, 07:42:50 PM
Found it... thank you!
Title: Re: Avatars Display Integration
Post by: Pipke on March 01, 2022, 04:58:23 PM
Mod updated
Changelog
Version 1.5.2 - Mar 1, 2022
- Fixed responsive css for boardindex
Title: Re: Avatars Display Integration
Post by: alex_cipher on March 04, 2022, 02:07:55 AM
Hi!

I have hundreds of error messages with "8: Trying to access array offset on value of type null"
in the file AvatarsDisplayIntegration.php either in line 314 or 311.

What is this and how can it be fixed?
Title: Re: Avatars Display Integration
Post by: Pipke on March 04, 2022, 11:26:12 AM
Quote from: alex_cipher on March 04, 2022, 02:07:55 AMHi!

I have hundreds of error messages with "8: Trying to access array offset on value of type null"
in the file AvatarsDisplayIntegration.php either in line 314 or 311.

What is this and how can it be fixed?

Can you post the complete error message about these lines from the error log.
Title: Re: Avatars Display Integration
Post by: alex_cipher on March 04, 2022, 12:28:02 PM
This is the error log from these two lines 311 and 314

Fehler
Art des Fehlers
General
Fehlermeldung
8: Trying to access array offset on value of type null
Datei
.../Sources/AvatarsDisplayIntegration.php
Zeile 314

URL der Seite die den Fehler erzeugte

Backtrace-Informationen

    #0: smf_error_handler()
    Aufgerufen von .../Sources/AvatarsDisplayIntegration.php in Zeile 314
    #1: adi_loadavatars()
    Aufgerufen von .../Sources/AvatarsDisplayIntegration.php in Zeile 244
    #2: adi_integrate_buffer()
    Aufgerufen von unbekannt in Zeile -1



Fehler
Art des Fehlers
General
Fehlermeldung
8: Trying to access array offset on value of type null
Datei
.../Sources/AvatarsDisplayIntegration.php
Zeile 311

URL der Seite die den Fehler erzeugte

Backtrace-Informationen

    #0: smf_error_handler()
    Aufgerufen von .../Sources/AvatarsDisplayIntegration.php in Zeile 311
    #1: adi_loadavatars()
    Aufgerufen von .../Sources/AvatarsDisplayIntegration.php in Zeile 244
    #2: adi_integrate_buffer()
    Aufgerufen von unbekannt in Zeile -1

Title: Re: Avatars Display Integration
Post by: Bugo on March 06, 2022, 10:06:56 AM
Updated Russian translation
Title: Re: Avatars Display Integration
Post by: pikeman on March 06, 2022, 10:12:02 AM
It's a pity that there is no option for the mode not to reduce the size of the avatar, when I make manual changes to increase them, there is an empty space above the avatar, so they are not visually beautiful.
Title: Re: Avatars Display Integration
Post by: Pipke on March 06, 2022, 05:41:02 PM
Quote from: alex_cipher on March 04, 2022, 02:07:55 AMHi!

I have hundreds of error messages with "8: Trying to access array offset on value of type null"
in the file AvatarsDisplayIntegration.php either in line 314 or 311.

What is this and how can it be fixed?

Can you try to replace the attachment file in Sources folder, hope it will fix the problem and let me know the outcome, thx
AvatarsDisplayIntegration.php
Title: Re: Avatars Display Integration
Post by: alex_cipher on March 07, 2022, 01:59:25 AM
Thank you!

I just replaced the file and will have a look during the day and then I give feedback.  :)
Title: Re: Avatars Display Integration
Post by: alex_cipher on March 07, 2022, 03:05:55 AM
After 1 hour there are several errors but now in line 313.
Title: Re: Avatars Display Integration
Post by: gevv on March 07, 2022, 12:15:51 PM
Hi,

@Pipke    How to set size default avatar with initial of displayname

I want the last post avatar to be small.  Resizing with css works for image files. But it doesn't work in the initial

Is there a solution ?

Thanks

lastpost-initial of displayname-big.png

Title: Re: Avatars Display Integration
Post by: Pipke on March 07, 2022, 03:45:32 PM
@alex_cipher can you try again with the attached file.
AvatarsDisplayIntegration.php
Title: Re: Avatars Display Integration
Post by: Pipke on March 07, 2022, 04:05:39 PM
Quote from: gevv on March 07, 2022, 12:15:51 PMHi,

@Pipke    How to set size default avatar with initial of displayname

I want the last post avatar to be small.  Resizing with css works for image files. But it doesn't work in the initial

Is there a solution ?

Thanks

lastpost-initial of displayname-big.png



this only applies for the last topic avatar.
add to the end of the AvatarsDisplayIntegration.css file
.adi_item_topic_last .avatar[data-adi~="avatar"] {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 14px;
    color: #fff;
    cursor: default;
}
.adi_item_topic_last [data-adi~="back"] {
    right: 4px;
    bottom: 4px;
    padding: 3.5px;
    background: #f8f8f8;
}
.adi_item_topic_last [data-adi~="front"] {
    right: 4px;
    bottom: 4px;
    padding: 2.5px;
}

and play around with the css rules to your liking!
Title: Re: Avatars Display Integration
Post by: gevv on March 08, 2022, 03:18:06 AM
Thanks. I tried it didn't work (cleared browser cache, i tried in diff browser. css script compression off)
Title: Re: Avatars Display Integration
Post by: gevv on March 08, 2022, 03:23:41 AM
My mistake i added div "adi_item_topic_last" problem solved

Thanks
Title: Re: Avatars Display Integration
Post by: alex_cipher on March 08, 2022, 11:36:22 AM
Quote from: Pipke on March 07, 2022, 03:45:32 PM@alex_cipher can you try again with the attached file.
AvatarsDisplayIntegration.php

I haven't had any errors with this file so far! Thank you very much!  :)
Title: Re: Avatars Display Integration
Post by: gevv on March 08, 2022, 01:01:00 PM
Hi,


Turkish translation
Title: Re: Avatars Display Integration
Post by: @rjen on March 09, 2022, 08:35:35 AM
Tip for a future version: the current code causes some validation errors...

Error: End tag had attributes.
At line 736, column 567
</span class="">

It seems there are some end tags in the code that cause this...

AvatarsDisplayIntegration.php (5 overeenkomsten)
    Regel 610:                            $context['categories'][$category['id']]['boards'][$board['id']]['css_class'] = 'adi_print '.$board['css_class'].'"><div class="adi_item_board">'.$context['adi']['open'].'<span class="avatar" '.adi_name2hex2rgb($board['last_post']['member']['name']).' '.adi_avatar_data(true).'>'.mb_strtoupper(mb_substr($board['last_post']['member']['name'], 0, 1), 'UTF-8').'</span>'.$context['adi']['close'].$context['adi']['iconstatus'].'</div><span></span class="';
    Regel 612:                            $context['categories'][$category['id']]['boards'][$board['id']]['css_class'] = 'adi_print '.$board['css_class'].'"><div class="adi_item_board">'.$context['adi']['open'].'<img class="avatar" src="'.$board['last_post']['member']['avatar']['href'].' alt="avatar_'.$board['last_post']['member']['name'].'" />'.$context['adi']['close'].$context['adi']['iconstatus'].'</div><span></span class="';
    Regel 799:                            $context['boards'][$board['id']]['css_class'] = 'adi_print '.$board['css_class'].'"><div class="adi_item_board">'.$context['adi']['open'].'<span '.adi_name2hex2rgb($board['last_post']['member']['name']).' class="avatar" '.adi_avatar_data(true).'>'.mb_strtoupper(mb_substr($board['last_post']['member']['name'], 0, 1), 'UTF-8').'</span>'.$context['adi']['close'].$context['adi']['iconstatus'].'</div><span></span class="';           
    Regel 801:                            $context['boards'][$board['id']]['css_class'] = 'adi_print '.$board['css_class'].'"><div class="adi_item_board">'.$context['adi']['open'].'<img class="avatar" src="'.$board['last_post']['member']['avatar']['url'].' alt="avatar_'.$board['last_post']['member']['name'].'" />'.$context['adi']['close'].$context['adi']['iconstatus'].'</div><span></span class="';               
    Regel 845:                    $context['topics'][$topic['id_topic']]['css_class'] = 'adi_print '.$topic['css_class'].'">'.$first.$last.'<span></span class="';
Title: Re: Avatars Display Integration
Post by: @rjen on March 09, 2022, 09:09:39 AM
Just found that this Mod is also messing with the avatars being displayed in my TinyPortal Articles and Blocks. I like the functionality this mod gives, but not when it affects areas it should not touch (IMO).

I cannot use it going forward...
Title: Re: Avatars Display Integration
Post by: Pipke on March 09, 2022, 02:36:02 PM
Quote from: @rjen on March 09, 2022, 09:09:39 AMJust found that this Mod is also messing with the avatars being displayed in my TinyPortal Articles and Blocks. I like the functionality this mod gives, but not when it affects areas it should not touch (IMO).

I cannot use it going forward...

Yes, this mod changes some global $context vars, because that's the idea, and yes, if other mods use them too, it affects them.
There is no way this mod will ever work 100% satisfactorily with all the other mods combined. If so, that wouldn't be great ;) dreams must be there, right...

ps. You could also ask: hey, can you maybe help me, how to fix that this mod won't transform the avatars on some blocks/pages from the Tinyportal mod. I'm just giving you a free hint..
Title: Re: Avatars Display Integration
Post by: @rjen on March 09, 2022, 03:12:53 PM
Thanks for the hint, do not take it the wrong way. I know what it means to maintain a mod, and I do not want to impose. If you have the time and interest to look into it, fine, if not also fine.

Just for your information:
the mod intervenes in the output of function set_avatar_data

This function is used in TinyPortal too, to retrieve avatars for blocks and articles.

Due to the avatar integration mod two issues occur:
1. The avatar data returned is extended with this extra attribute: data-adi="avatar"":

Results in validation errors:
Error: Saw " when expecting an attribute name. Probable cause: = missing immediately before.
ta-adi="avatar"" alt=""></a></

Resulting code is this:
Example:
<img class="avatar" src="https://test.fjr-club.nl/eigenavatars/avatar_691_1546366408.png" data-adi="avatar"" alt="">

2. The class added to avatars in article forces a width on the avatars

This results in this avatar code in articles:
<img class="avatar" src="https://test.fjr-club.nl/eigenavatars/avatar_3_1635710490.png" data-adi="avatar" "="" alt="">

due to this css the avatar is now resized to 36px..

.avatar[data-adi~="avatar"], .adi_initial[data-adi~="avatar"] {
    width: 36px;
    height: 36px;
    line-height: 34px;
    font-size: 22px;
    color: #ffffff;
    cursor: default;
}

Title: Re: Avatars Display Integration
Post by: Pipke on March 09, 2022, 03:45:50 PM
@@rjen
does this fix the blocks/articles -> double quote "
$image.='" '.adi_avatar_data(true);
to
$image.='" '.adi_avatar_data(false);

// For alerts and more...
function adi_integrate_set_avatar_data(&$image, &$data)
{
// Build the css data attibute. The only one we need here, so add it.
$image.='" '.adi_avatar_data(false);
}

if thats true, you can add a condition for tinyportal call(s), like when tinyportal has changed some $context before this function is called you can use that for reference true/false
Title: Re: Avatars Display Integration
Post by: FrizzleFried on March 11, 2022, 01:46:53 PM
I just thought of what I think would be a very good addition to this mod if the author is willing to add it...

We have square avatars...

We have round avatars...

What is missing?  Square avatars with rounded corners!

To make the mod even all that much better... perhaps one of the options for that mode could be the a user selectable number of pixels of roundedness... the more pixels the more rounded the corners.

:D

The rounded avatars are a hard-sell for my user base (I like them... they seem to not on a 3 to 1 basis).  The rounded corners option would be a real killer middle ground and it would go well with the stock Curve2 theme as well!

;)

Title: Re: Avatars Display Integration
Post by: FrizzleFried on March 11, 2022, 03:10:08 PM
Oh... and what are the chances this mod could be adapted to allow each user to select their own preference versus forcing it on everyone?  THAT would rectify the situation as well... (though I really do think a rounded corners option would rock as well!)

 ;D
Title: Re: Avatars Display Integration
Post by: peter_mein on March 13, 2022, 07:12:36 AM
Hello
I install this aktuell Mod.
But my Avatar look not good. See Picture.
If i change the settings Overwrite the default avatar with initial of displayname i became the
following error in the log file.
See Picture.

Avatars display integration 1.5.2
Forum 2.1.1
Title: Re: Avatars Display Integration
Post by: alex_cipher on March 13, 2022, 07:23:27 AM
Quote from: peter_mein on March 13, 2022, 07:12:36 AMHello
I install this aktuell Mod.
But my Avatar look not good. See Picture.
If i change the settings Overwrite the default avatar with initial of displayname i became the
following error in the log file.
See Picture.

Avatars display integration 1.5.2
Forum 2.1.1


Take the file from here
https://www.simplemachines.org/community/index.php?topic=571891.msg4115171#msg4115171
Title: Re: Avatars Display Integration
Post by: peter_mein on March 13, 2022, 07:45:46 AM
Thanks.
The error is no longer there.
Now how to change the Avatar picture ?
In the avatar is the initial of displayname and the background have a color.
In my forum no color in the avatar.
Title: Re: Avatars Display Integration
Post by: Pipke on March 13, 2022, 08:58:40 AM
you have somewhere some script maybe from other mod/manual edit, that it adds "color:black" to the style element of the avatar because of that it generates a "invalid property value", wich blocks the actual color code.

<span class="avatar" style="background-color: rgb(199,218,143) color: black;" data-adi="avatar shadow circle">V</span>
Title: Re: Avatars Display Integration
Post by: peter_mein on March 13, 2022, 04:36:36 PM
Which file must be changed it for this error ?
Title: Re: Avatars Display Integration
Post by: Pipke on March 13, 2022, 05:36:07 PM
Quote from: peter_mein on March 13, 2022, 04:36:36 PMWhich file must be changed it for this error ?


could be anything, try to un-install each mod at a time to see wich one effects it.
Title: Re: Avatars Display Integration
Post by: Pipke on March 13, 2022, 06:04:04 PM
Quote from: Bugo on March 06, 2022, 10:06:56 AMUpdated Russian translation
Quote from: gevv on March 08, 2022, 01:01:00 PMHi,


Turkish translation
both thx for that, its added to the latest version.

Mod updated.
Changelog
Version 1.5.3 - Mar 13, 2022
- Fixed Trying to access array offset on value of type null
- Added turkish language
Title: Re: Avatars Display Integration
Post by: Pipke on March 13, 2022, 06:12:30 PM
Quote from: FrizzleFried on March 11, 2022, 01:46:53 PMI just thought of what I think would be a very good addition to this mod if the author is willing to add it...

We have square avatars...

We have round avatars...

What is missing?  Square avatars with rounded corners!

To make the mod even all that much better... perhaps one of the options for that mode could be the a user selectable number of pixels of roundedness... the more pixels the more rounded the corners.

:D

Thanks for the idea, i'll think about maybe adding this to the mod.
Title: Re: Avatars Display Integration
Post by: peter_mein on March 14, 2022, 04:33:53 AM
Which file has to contain something for it to work?
Then I can compare with a test forum whether in the file
the same is in it. when I did the update from the forum,
I installed this avatar first. And there it was wrong. It worked before.
Title: Re: Avatars Display Integration
Post by: Shades. on March 26, 2022, 06:05:55 AM
SMF2.1.1
Avatar Integration 1.5.3

I just noticed that some of the members avatars are oval and overlapping the "online status" and "buddy list" in the users profile summary.

Any way to fix?

profilewith_LI.jpgprofilewithout_LI.jpg 

But in the users post the edges of the avatar is rounded as it should be.

profilepostwith.jpeg
Title: Re: Avatars Display Integration
Post by: Doug Heffernan on March 26, 2022, 09:03:27 AM
Quote from: Shades. on March 26, 2022, 06:05:55 AMSMF2.1.1
Avatar Integration 1.5.3

I just noticed that some of the members avatars are oval and overlapping the "online status" and "buddy list" in the users profile summary.

Any way to fix?

profilewith_LI.jpgprofilewithout_LI.jpg 

But in the users post the edges of the avatar is rounded as it should be.

profilepostwith.jpeg

Does it happen in the default theme as well btw, or only in the custom(s) one?
Title: Re: Avatars Display Integration
Post by: Shades. on March 26, 2022, 09:09:23 AM
Quote from: Doug Heffernan on March 26, 2022, 09:03:27 AMDoes it happen in the default theme as well btw, or only in the custom(s) one?

Default as well!

profiledefault.jpeg
Title: Re: Avatars Display Integration
Post by: Speed King on March 26, 2022, 09:33:05 AM
Yes, this situation happens with all rectangular avatars, the square avatars are resized to circle normally.
Title: Re: Avatars Display Integration
Post by: FrizzleFried on March 26, 2022, 10:21:01 AM
I noticed this issue with squared avatars as well on my site...

...but to be honest,  it wasn't a big enough deal for me to address just yet.  But I was going to get to it!

:)

ScreenHunter 331.jpg
Title: Re: Avatars Display Integration
Post by: Speed King on March 27, 2022, 01:05:20 AM
I never had problems with resizing of square avatars. In my forum, avatar size is max 120x120 pixels, resized by ADI to 100x100 pixels.
Did you made any changes to original code?
Title: Re: Avatars Display Integration
Post by: Shades. on March 27, 2022, 01:23:07 AM
Quote from: Speed King on March 27, 2022, 01:05:20 AMI never had problems with resizing of square avatars. In my forum, avatar size is max 120x120 pixels, resized by ADI to 100x100 pixels.
Did you made any changes to original code?
I have not made any changes other than setting max to 100x100 in admin.

I'm only having issues in the users profile summary. As you can see in my post below the avatar is rounded off as it should be on the users posts.

Quote from: Shades. on March 26, 2022, 06:05:55 AMSMF2.1.1
Avatar Integration 1.5.3

But in the users post the edges of the avatar is rounded as it should be.

profilepostwith.jpeg
Title: Re: Avatars Display Integration
Post by: Speed King on March 27, 2022, 02:04:05 AM
Is this avatar rectangular? Try to crop and resize it to square.
Title: Re: Avatars Display Integration
Post by: Shades. on March 27, 2022, 02:29:27 AM
Quote from: Speed King on March 27, 2022, 02:04:05 AMIs this avatar rectangular? Try to crop and resize it to square.
Yes it is rectangular but cropping it won't solve the problem in the long run or I'd be having to do that for everyone who uploads a rectangular avatar! :P
Title: Re: Avatars Display Integration
Post by: Speed King on March 27, 2022, 02:40:34 AM
Quote from: FrizzleFried on March 26, 2022, 10:21:01 AMI noticed this issue with squared avatars as well on my site...

...but to be honest,  it wasn't a big enough deal for me to address just yet.  But I was going to get to it!

:)

Please attach your avatar image file. I would test it on my forum.
Title: Re: Avatars Display Integration
Post by: FrizzleFried on March 27, 2022, 08:24:10 AM
Quote from: Speed King on March 27, 2022, 01:05:20 AMI never had problems with resizing of square avatars. In my forum, avatar size is max 120x120 pixels, resized by ADI to 100x100 pixels.
Did you made any changes to original code?

Me?  Not in the slightest.

Title: Re: Avatars Display Integration
Post by: FrizzleFried on March 27, 2022, 08:27:22 AM
Quote from: Speed King on March 27, 2022, 02:40:34 AM
Quote from: FrizzleFried on March 26, 2022, 10:21:01 AMI noticed this issue with squared avatars as well on my site...

...but to be honest,  it wasn't a big enough deal for me to address just yet.  But I was going to get to it!

:)

Please attach your avatar image file. I would test it on my forum.

Attached...


avatar_1_1636727126.png
Title: Re: Avatars Display Integration
Post by: FrizzleFried on March 27, 2022, 08:38:12 AM
The more "vertically oriented" a rectangle avatar is... the more it overlaps everything on that page...


Examples:

ScreenHunter 337.jpg

ScreenHunter 336.jpg

ScreenHunter 335.jpg

ScreenHunter 334.jpg


Perfectly square avatars are not affected.  Only those with a more vertical rectangle orientation.   
Title: Re: Avatars Display Integration
Post by: Speed King on March 27, 2022, 09:16:53 AM
Quote from: FrizzleFried on March 27, 2022, 08:27:22 AM
Quote from: Speed King on March 27, 2022, 02:40:34 AM
Quote from: FrizzleFried on March 26, 2022, 10:21:01 AMI noticed this issue with squared avatars as well on my site...

...but to be honest,  it wasn't a big enough deal for me to address just yet.  But I was going to get to it!

:)

Please attach your avatar image file. I would test it on my forum.

Attached...


avatar_1_1636727126.png

Yes, the ADI mod doesn't resize this image correctly, because avatar is rectangular (size 21.26 KB, 82x100 pixels)

Click => (https://i.postimg.cc/zLpcRc6d/2022-03-27.png) (https://postimg.cc/zLpcRc6d)

I would suggest to use only squared images. In my forum, I change users' rectangular avatars with square images to avoid such problems.
Title: Re: Avatars Display Integration
Post by: FrizzleFried on March 27, 2022, 09:25:53 AM
Unfortunately that's an unreasonable request/requirement as we have TONS (as in hundreds) of animated avatars, etc.

Perhaps some padding could be added to the offending area?  I'd rather have too much space for the square avatars than not-enough-space for the vertically oriented rectangle avatars.
Title: Re: Avatars Display Integration
Post by: FrizzleFried on March 27, 2022, 09:27:38 AM
Oh... this is the only page this issue is a problem (profile).  The mod seems to be resizing those avatars well enough not to cause these kinds of "overlapping" issues on any other page that I am seeing.
Title: Re: Avatars Display Integration
Post by: Shades. on March 27, 2022, 11:10:23 AM
Quote from: FrizzleFried on March 27, 2022, 09:27:38 AMOh... this is the only page this issue is a problem (profile).  The mod seems to be resizing those avatars well enough not to cause these kinds of "overlapping" issues on any other page that I am seeing.
Same here as I have mentioned, it only happens in profile and works fine in all other pages. ;)
Title: Re: Avatars Display Integration
Post by: Pipke on March 27, 2022, 03:28:02 PM
@Shades. @FrizzleFried on my test forum all works as it should be... see attachment 2022-03-27 212550.png

Can one of you post/pm a link to a wrong avatar image profile page wich is accessible by guest so i can view it and maybe solve it.
Title: Re: Avatars Display Integration
Post by: FrizzleFried on March 27, 2022, 06:39:32 PM
Unfortunately my forum is a private forum.  I would be happy to approve a membership if you wish...

[nofollow]www.aha-forums.com[/nofollow]
Title: Re: Avatars Display Integration
Post by: Shades. on March 27, 2022, 08:40:10 PM
PM sent ;)
Title: Re: Avatars Display Integration
Post by: Oldiesmann on March 27, 2022, 09:23:20 PM
Just added it to my seniors forum. Nice and easy to configure :)
Title: Re: Avatars Display Integration
Post by: Pipke on March 28, 2022, 01:52:56 PM
Quote from: Shades. on March 26, 2022, 06:05:55 AMSMF2.1.1
Avatar Integration 1.5.3

I just noticed that some of the members avatars are oval and overlapping the "online status" and "buddy list" in the users profile summary.

Any way to fix?


you can set for fix future problems at admin avatar settings width and height to all equal or edit the index.css file to remove the "important" rule.
Code (find) Select
#basicinfo img.avatar, dl.settings img.avatar {
    display: block;
    max-width: 160px;
    height: auto!important;
}
Code (replace by) Select
#basicinfo img.avatar, dl.settings img.avatar {
    display: block;
    max-width: 160px;
    height: auto;
}
Title: Re: Avatars Display Integration
Post by: Shades. on March 28, 2022, 01:59:58 PM
Quote from: Pipke on March 28, 2022, 01:52:56 PMyou can set for fix future problems at admin avatar settings width and height to all equal or edit the index.css file to remove the "important" rule.
That fixed it thank you! 8)
Title: Re: Avatars Display Integration
Post by: FrizzleFried on March 28, 2022, 02:25:40 PM
Same here!  Beautiful!
Title: Re: Avatars Display Integration
Post by: Michael Vail on May 19, 2022, 02:08:11 PM
Hello Everyone,

I'm running an SMF 2.1.2 forum using the default theme. My forum has this Mod installed as well.

Like in other forums, some of our members have avatars they've chosen from the SMF Avatar Gallery in the profile editor. Others have never selected an Avatar for their profile.

I recently noticed since upgrading to SMF 2.1 that a new "Initial Avatar" feature now exists in the profile editor area. I'm told that this new feature assigns a silhouette image (/forums/avatars/ default.png) for members who don't choose their own avatar.  What's weird is that even though I've enabled the features of this mod to replace that default image with a circle and the first letter of the display name, a significant number of the members on my forum who have not chosen a custom avatar and have the "Initial avatar" option selected by default are still displaying the default.png as their avatar.

I am able to resolve the issue for each member by  going into their profile and selecting an avatar for the user from the avatar gallery, saving, then reverting back to the the initial avatar setting. I don't have the time to go into a 100+ profiles to fix this that way, and I'm afraid new users will have the same problem. 

Does anyone know why only some users still have the default.png icon even though this mod is installed and the settings are correct to change this behavior? It's not the end of the world if I can't resolve it, it's just weird and I'd like to fix it if possible, 

I have attached a partial member list so you can see what it looks like.

Thank you for your time.
Title: Re: Avatars Display Integration
Post by: peter_mein on August 19, 2022, 10:14:11 AM
Hello
I use this mod Avatars Display Integration.
I installed this mod: https://github.com/SimpleDesk/Team-Mods-TopicSolved
But now if i solved a theme i can´t see the avatar picture.
Is the mistake in your mod or in the other mod ?
Thanks for your help.

SMF 2.1.2
Avatars Display Integration 1.5.3

Title: Re: Avatars Display Integration
Post by: gevv on November 21, 2022, 02:57:37 PM
Hello,

Update SMF 2.1.2 to 2.1.3 

Codes appear next to usernames who's online page;

data-adi="buffer_remove_this;">

USER-NICK-NAMEdata-adi="buffer_remove_this;"> (IP)

USER-NICK-NAMEdata-adi="buffer_remove_this;"> (IP)

USER-NICK-NAMEdata-adi="buffer_remove_this;"> (IP)
Title: Re: Avatars Display Integration
Post by: Shades. on November 26, 2022, 10:06:45 AM
Quote from: gevv on November 21, 2022, 02:57:37 PMCodes appear next to usernames who's online page;

data-adi="buffer_remove_this;">
I am seeing the same thing after updating to SMF 2.1.3

Until this mod is updated for 2.1.3 go to Admin>Forum>Attachments and Avatars>Avatar Settings and uncheck where it says "Display user avatar on the who's online page". I haven't seen any other errors so far. 8)
Title: Re: Avatars Display Integration
Post by: Pipke on November 26, 2022, 05:01:11 PM
mod updated

Changelog
Version 1.5.4 - Nov 26, 2022
- Fixed who's online page buffer bug, due Who.template update
- Added style for avatar: Curved (square shape with rounded corners)
Title: Re: Avatars Display Integration
Post by: Shades. on November 27, 2022, 01:11:51 AM
SMF 2.1.3
Avatars Display Integration 1.5.4

After installing I have all the options selected (see 2nd attachment) except for the top three but when I go to index.php?action=who I get these errors:

Error
Type of error
Undefined_vars
Error message
8: Undefined index: avatar
File
/home/******/public_html/Sources/AvatarsDisplayIntegration.php
Line
664
URL of page causing the error
https://******.com/index.php?action=who

Backtrace information
#0: smf_error_handler()
Called from /home/******/public_html/Sources/AvatarsDisplayIntegration.php on line 664
#1: adi_integrate_theme_context()
Called from /home/******/public_html/Sources/Subs.php on line 5836
#2: call_integration_hook()
Called from /home/******/public_html/Sources/Subs.php on line 4443
#3: setupThemeContext()
Called from /home/******/public_html/Sources/Subs.php on line 4514
#4: template_header()
Called from /home/******/public_html/Sources/Subs.php on line 4157
#5: obExit()
Called from /home/******/public_html/index.php on line 195

Error
Type of error
General
Error message
8: Trying to access array offset on value of type null
File
/home/******/public_html/Sources/AvatarsDisplayIntegration.php
Line
664
URL of page causing the error
https://******.com/index.php?action=who

Backtrace information
#0: smf_error_handler()
Called from /home/******/public_html/Sources/AvatarsDisplayIntegration.php on line 664
#1: adi_integrate_theme_context()
Called from /home/******/public_html/Sources/Subs.php on line 5836
#2: call_integration_hook()
Called from /home/******/public_html/Sources/Subs.php on line 4443
#3: setupThemeContext()
Called from /home/******/public_html/Sources/Subs.php on line 4514
#4: template_header()
Called from /home/******/public_html/Sources/Subs.php on line 4157
#5: obExit()
Called from /home/******/public_html/index.php on line 195

Error
Type of error
Undefined_vars
Error message
8: Undefined index: link_color
File
/home/******/public_html/Sources/AvatarsDisplayIntegration.php
Line
664
URL of page causing the error
https://******.com/index.php?action=who

Backtrace information
#0: smf_error_handler()
Called from /home/******/public_html/Sources/AvatarsDisplayIntegration.php on line 664
#1: adi_integrate_theme_context()
Called from /home/******/public_html/Sources/Subs.php on line 5836
#2: call_integration_hook()
Called from /home/******/public_html/Sources/Subs.php on line 4443
#3: setupThemeContext()
Called from /home/******/public_html/Sources/Subs.php on line 4514
#4: template_header()
Called from /home/******/public_html/Sources/Subs.php on line 4157
#5: obExit()
Called from /home/******/public_html/index.php on line 195

Also, it shows my (Admins) avatar on the whos online page but not guests. (see 1rst attachment)

avatarinter.png

avatarinter2.png 
Title: Re: Avatars Display Integration
Post by: Pipke on November 27, 2022, 12:36:25 PM
@Shades. try the file in the attachment and replace it at /Sources folder, let me know if it solves the issues.

Title: Re: Avatars Display Integration
Post by: Shades. on November 27, 2022, 04:18:46 PM
Quote from: Pipke on November 27, 2022, 12:36:25 PM@Shades. try the file in the attachment and replace it at /Sources folder, let me know if it solves the issues.


Yes that fixed it and no errors now. Thank you! 8)
Title: Re: Avatars Display Integration
Post by: Pipke on November 27, 2022, 04:35:09 PM
Quote from: Shades. on November 27, 2022, 04:18:46 PM
Quote from: Pipke on November 27, 2022, 12:36:25 PM@Shades. try the file in the attachment and replace it at /Sources folder, let me know if it solves the issues.


Yes that fixed it and no errors now. Thank you! 8)

thx, i have updated the download package with the new file.
Title: Re: Avatars Display Integration
Post by: [chrisB] on December 12, 2022, 10:33:52 AM
Can support for the responsive postbit be added?

i.e before a member's username.
Title: Re: Avatars Display Integration
Post by: Pipke on December 12, 2022, 04:15:17 PM
Quote from: joey_matthews on December 12, 2022, 10:33:52 AMCan support for the responsive postbit be added?

i.e before a member's username.

its already there, or do i not understand you right, then explain better ;)
Title: Re: Avatars Display Integration
Post by: [chrisB] on December 12, 2022, 04:48:08 PM
Quote from: Pipke on December 12, 2022, 04:15:17 PM
Quote from: joey_matthews on December 12, 2022, 10:33:52 AMCan support for the responsive postbit be added?

i.e before a member's username.

its already there, or do i not understand you right, then explain better ;)


When I view posts on my site with this enabled, I do not see any avatars next to my members on my mobile (using Chrome). It does show the avatar for the person who started the topic, but nobody after.

I'm asking if its is possible for all users to have their avatars.
Title: Re: Avatars Display Integration
Post by: Pipke on December 12, 2022, 05:21:10 PM
Quote from: joey_matthews on December 12, 2022, 04:48:08 PM
Quote from: Pipke on December 12, 2022, 04:15:17 PM
Quote from: joey_matthews on December 12, 2022, 10:33:52 AMCan support for the responsive postbit be added?

i.e before a member's username.

its already there, or do i not understand you right, then explain better ;)


When I view posts on my site with this enabled, I do not see any avatars next to my members on my mobile (using Chrome). It does show the avatar for the person who started the topic, but nobody after.

I'm asking if its is possible for all users to have their avatars.

The mod is intended to function that way, the mod does not display the avatar on mobile because the screen is too small.
Title: Re: Avatars Display Integration
Post by: [chrisB] on December 12, 2022, 06:31:53 PM
Couldn't the mod just reduce the size in the responsive mode? The posts date and time would need adjusting, but otherwise there's plenty of space for it.
Title: Re: Avatars Display Integration
Post by: Pipke on December 13, 2022, 02:52:00 AM
Quote from: joey_matthews on December 12, 2022, 06:31:53 PMCouldn't the mod just reduce the size in the responsive mode? The posts date and time would need adjusting, but otherwise there's plenty of space for it.

Sure you can, anything is possible if you speak the way you want to hear it, only i'm not the person who's going to script it for you.
Title: Re: Avatars Display Integration
Post by: @rjen on December 14, 2022, 02:44:33 AM
Updated dutch language file..
Title: Re: Avatars Display Integration
Post by: [chrisB] on December 14, 2022, 09:33:23 AM
Quote from: Pipke on December 13, 2022, 02:52:00 AM
Quote from: joey_matthews on December 12, 2022, 06:31:53 PMCouldn't the mod just reduce the size in the responsive mode? The posts date and time would need adjusting, but otherwise there's plenty of space for it.

Sure you can, anything is possible if you speak the way you want to hear it, only i'm not the person who's going to script it for you.

It's been a long time since I've come across a Dev with your type of attitude, just reject the question. The cattiness response isn't needed. 😊
Title: Re: Avatars Display Integration
Post by: [chrisB] on January 06, 2023, 08:38:02 AM
Would you consider adding support for Tiny Portal, please?
Title: Re: Avatars Display Integration
Post by: Pipke on January 07, 2023, 07:50:08 AM
Quote from: joey_matthews on January 06, 2023, 08:38:02 AMWould you consider adding support for Tiny Portal, please?

in which areas would you need this, you can add it anywhere on the (portal) template files like:

*Other costum places:
How to add user avatar anywhere in your template file from mods maybe, simple type:
data-adi-id="{userid}"
How to example in template file:
Code (find) Select
<div class="most_downloaded"><a href="'.$last['href'].'"><b>'.$last['name'].'</b></a></div>
Code ("replace by") Select
<div class="most_downloaded">data-adi-id="'.$last['user']['id'].'"<a href="'.$last['href'].'"><b>'.$last['name'].'</b></a></div>



Title: Re: Avatars Display Integration
Post by: Senkusha on January 23, 2023, 05:54:16 AM
Is there an easy way to fix this vertical alignment issue?  The topic is on the bottom of the row, while the other info is at the top of the row.  Ideally, I think a center vertical aligned makes the most sense.

RecentTopics.png
Title: Re: Avatars Display Integration
Post by: Pipke on January 23, 2023, 09:59:52 AM
Quote from: Senkusha on January 23, 2023, 05:54:16 AMIs there an easy way to fix this vertical alignment issue?  The topic is on the bottom of the row, while the other info is at the top of the row.  Ideally, I think a center vertical aligned makes the most sense.

[url="https://www.simplemachines.org/community/index.php?action=dlattach;attach=285343;type=preview;file"]RecentTopics.png[/url]

can you set/turn the avatars back on @recent posts @ your website, this way i can inspect the code and maybe help you.
Title: Re: Avatars Display Integration
Post by: Senkusha on January 24, 2023, 01:38:19 PM
Sure!
Title: Re: Avatars Display Integration
Post by: Pipke on January 24, 2023, 03:06:36 PM
@Senkusha ...  Ok lets do this: fingers crossed ;)

open in your theme\css folder the file costum.css
find at line 891, replace the rule.

Code (replace) Select
/* Recent Flex Grid Thingy thing thing */
.recent_grid_column {
box-shadow: 0 16px 20px rgba(255, 255, 255, 0.15) inset;
background: var(--windowbg);
background: linear-gradient(180deg, var(--windowbg) 70%, var(--windowbg2) 100%);
flex-basis: 100%;
padding: 0px 0px 0px 9px;
margin: 0px;
text-align: left;
font-size: 1em;
}

@media screen and (min-width:800px) {
 .recent_grid_row, .recent_grid_row span {
display:flex;
flex-direction:row;
flex-wrap:nowrap;
align-items: center;
 }
 .recent_grid_flex {
flex:1
 }
 .recent_grid_row {
border-top: 1px solid var(--borderbg2);
 }
}

good luck with the edit.
Title: Re: Avatars Display Integration
Post by: Senkusha on January 25, 2023, 07:56:17 AM
Thank you!!!
Title: Re: Avatars Display Integration
Post by: Marina3 on February 09, 2023, 02:12:51 AM
Errors in /Sources/AvatarsDisplayIntegration.php (92):

Undefined array key "adi_avatar_curved".
Undefined array key "adi_avatar_square".
Undefined array key "adi_avatar_circle".

SMF 2.1.3 and php 8.1.
Title: Re: Avatars Display Integration
Post by: Pipke on February 09, 2023, 06:13:00 AM
Quote from: Marina3 on February 09, 2023, 02:12:51 AMErrors in /Sources/AvatarsDisplayIntegration.php (92):

Undefined array key "adi_avatar_curved".
Undefined array key "adi_avatar_square".
Undefined array key "adi_avatar_circle".

SMF 2.1.3 and php 8.1.

Hmm i cannot reproduce that error(tested with php 8.2), wich action triggers this error and can you post the complete error from the log?
Title: Re: Avatars Display Integration
Post by: neurons on March 16, 2023, 03:32:09 PM
Seamless installation with 2.1.3. + PHP 8.2 + Boru_RC4 custom theme. Awesome mod, thank you!
Title: Re: Avatars Display Integration
Post by: Shades. on March 18, 2023, 10:40:54 AM
SMF 2.1.3
Avatars Display Integration 1.5.4

Hey @Pipke,

When I have these 3 fields ticked:


and try to go into board=1.0 I'm getting this error and can't even view the board:

QuoteError
Type of error
Database
Error message
Database Error: '******_******.memf.email_address' isn't in GROUP BY
File
/home/******/public_html/******/Sources/MessageIndex.php
Line
361
URL of page causing the error
https://******.com/index.php?board=1.0

Backtrace information
#0: smf_db_error()
Called from /home/******/public_html/******/Sources/Subs-Db-mysql.php on line 494
#1: smf_db_query()
Called from /home/******/public_html/******/Sources/MessageIndex.php on line 361
#2: MessageIndex()
Called from /home/******/public_html/******/index.php on line 192

But if I untick them it works everywhere else just fine. Any ideas on this please?

Thanks,
Shades 8)
Title: Re: Avatars Display Integration
Post by: Pipke on March 19, 2023, 07:00:42 AM
@Shades. i have no idea, the first thing i thought that some user doesnt have any email in the profile and is missing from the db, but i tested that and that is not the case i think. Maybe someone else know whats going on here. It has todo with the first member poster memf.email_address AS first_member_mail with setting Display avatar first poster on the Unread, Update and Message index
Title: Re: Avatars Display Integration
Post by: Speed King on March 31, 2023, 09:06:35 AM
About avatar size in Likes popup, it's not defined in AvatarsDisplayIntegration.css file.
I made these changes...

Find:

/* likes popup */
#likes .adi_item_context .avatar { 
padding: 0;
display: inline-flex;
margin: 0 4px 4px 0;
}

Replace with:


/* likes popup */
#likes .adi_item_context .avatar { 
padding: 0;
display: inline-flex;
margin: 0 4px 4px 0;
width: 48px;
height: 48px;
}
Title: Re: Avatars Display Integration
Post by: marcosbr on June 23, 2023, 08:59:04 PM
Pt translation:
Title: Re: Avatars Display Integration
Post by: Pipke on June 24, 2023, 02:41:31 PM
Quote from: marcosbr on June 23, 2023, 08:59:04 PMPt translation:


thx for that, ill add it into next update for mod if i dont forget.
Title: Re: Avatars Display Integration
Post by: gevv on September 14, 2023, 04:34:47 PM

Hi,

@Pipke  Is there a solution to this problem (https://www.simplemachines.org/community/index.php?topic=583323.0)?



I come from here  (https://www.simplemachines.org/community/index.php?topic=582940.msg4160100;boardseen#new)  ;D

+
Disabling first poster from settings didn't work. Topic solved icon does not appear


Title: Re: Avatars Display Integration
Post by: Pipke on September 14, 2023, 05:22:04 PM
Quote from: gevv on September 14, 2023, 04:34:47 PMHi,

@Pipke  Is there a solution to this problem (https://www.simplemachines.org/community/index.php?topic=583323.0)?



I come from here  (https://www.simplemachines.org/community/index.php?topic=582940.msg4160100;boardseen#new)  ;D

+
Disabling first poster from settings didn't work. Topic solved icon does not appear




quick fix for that conflict is here (https://www.simplemachines.org/community/index.php?msg=4160108)
Title: Re: Avatars Display Integration
Post by: peter_mein on September 15, 2023, 03:06:10 PM
Hello
Sometimes the following error occurs.
See appendix
Title: Re: Avatars Display Integration
Post by: Pipke on September 15, 2023, 05:07:27 PM
Quote from: peter_mein on September 15, 2023, 03:06:10 PMHello
Sometimes the following error occurs.
See appendix


fix here (https://www.simplemachines.org/community/index.php?msg=4160130)
Title: Re: Avatars Display Integration
Post by: peter_mein on October 14, 2023, 05:52:07 AM
Hello
When I display avatar last poster on the Board index the original picture is displayed. See attachment. For all other functions, the correct avatar is displayed.
This happens only with guests who are not registered.


Title: Re: Avatars Display Integration
Post by: Pipke on October 15, 2023, 03:05:13 PM
Quote from: peter_mein on October 14, 2023, 05:52:07 AMHello
When I display avatar last poster on the Board index the original picture is displayed. See attachment. For all other functions, the correct avatar is displayed.
This happens only with guests who are not registered.

I cannot reproduce that, on my test forum all works well.
Title: Re: Avatars Display Integration
Post by: Arskrigitsioniets on November 19, 2023, 06:46:45 PM
Firstly, thanks for the mod, it just works and makes forum much more pretty  :)

But there is a small css flaw, it breaks the evenness of lines when the forums are empty. Not so critical, but you could fix it to make the mod even more cool (I use default theme, just some color rework, so you will be able to reproduce it on Curve from 2.1.4 SMF).
Title: Re: Avatars Display Integration
Post by: Pipke on November 21, 2023, 03:47:40 PM
Quote from: Arskrigitsioniets on November 19, 2023, 06:46:45 PMFirstly, thanks for the mod, it just works and makes forum much more pretty  :)

But there is a small css flaw, it breaks the evenness of lines when the forums are empty. Not so critical, but you could fix it to make the mod even more cool (I use default theme, just some color rework, so you will be able to reproduce it on Curve from 2.1.4 SMF).

Thanks for finding that. I've update the mod with a fix for it.

Mod updated, the latest version is now 1.5.5
- Fixed css style rule for redirection boards and empty(no topics inside) boards on index
- Updated languages Dutch and Russian
- Added language Portuguese_pt
- Added collaboration with the 'Topic Solved' mod
Title: Re: Avatars Display Integration
Post by: Speed King on November 22, 2023, 12:09:20 AM
Quote from: Pipke on February 15, 2020, 07:43:21 PMAvatars Display Integration

For SMF 2.1.x (Hook install)
Tested only with the SMF default theme...but should work with other themes aswell!


If another theme is used, and if you want to make changes to the mod behavior for that theme, it's needed AvatarsDisplayIntergration.css file to be copied to ../Themes/{theme_name}/css folder
Title: Re: Avatars Display Integration
Post by: Speed King on November 22, 2023, 02:13:20 PM
With new version 1.5.5 installed, if avatars are enabled in "Who's online" list, a strange text is displayed next to user names:

data-adi="buffer_remove_this;">

Click => (https://i.postimg.cc/hfjdvp0D/2023-11-22.png) (https://postimg.cc/hfjdvp0D)
Title: Re: Avatars Display Integration
Post by: Pipke on November 22, 2023, 04:07:08 PM
Quote from: Speed King on November 22, 2023, 02:13:20 PMWith new version 1.5.5 installed, if avatars are enabled in "Who's online" list, a strange text is displayed next to user names:

data-adi="buffer_remove_this;">

Click => (https://i.postimg.cc/hfjdvp0D/2023-11-22.png) (https://postimg.cc/hfjdvp0D)

thanks for finding that, ive updated the mod with a fix.

Version 1.5.6 - Nov 22, 2023
- Fixed who's online page buffer bug
Title: Re: Avatars Display Integration problem
Post by: thekr1szten on November 30, 2023, 07:52:22 AM
Hey!
I just installed this mod, but now my avatars are in a wrong place.
(https://media.discordapp.net/attachments/1167441981958524970/1179766735621079050/image.png?ex=657afa64&is=65688564&hm=8a5a65dcaa9928dd09fc5e62fba783750664a9c8217666d4c203c70a0521682d&=&format=webp&quality=lossless&width=524&height=498)

(https://media.discordapp.net/attachments/1167441981958524970/1179767461298581654/image.png?ex=657afb11&is=65688611&hm=c3d2c29d88221cb39e01aadad3fc2124189a6106e2044b3bfdfe30e7f47557e9&=&format=webp&quality=lossless)
Title: Re: Avatars Display Integration
Post by: Senkusha on November 30, 2023, 12:45:08 PM
I saw there was an update to this mod, and I thought, "YAY, the empty board issue's fixed!"  But, I guess not?AvatarEmptyBoard.png
Title: Re: Avatars Display Integration
Post by: Pipke on November 30, 2023, 01:34:58 PM
@thekr1szten and @Senkusha this strange behavior for your site is because you both are using a theme that is not the default, my mod is based on the default behavior. If the theme you are using has made a lot of tweaks from the default theme this can happen, you can edit the mod's .css file to make it look good.
Title: Re: Avatars Display Integration
Post by: thekr1szten on November 30, 2023, 01:37:04 PM
Thank you, i try it. O:)
Title: Re: Avatars Display Integration
Post by: Senkusha on November 30, 2023, 01:39:24 PM
Okay.  Thanks for the clarification!  :)  I'll look into it.
Title: Re: Avatars Display Integration
Post by: Recursos on March 06, 2024, 08:16:56 AM
Very nice theme.
I would like to have "square" avatars instead of "round" ones.
But I can't find settings for this.
Coul u help?
Title: Re: Avatars Display Integration
Post by: Speed King on March 06, 2024, 02:02:59 PM
Quote from: Recursos on March 06, 2024, 08:16:56 AMVery nice theme.
I would like to have "square" avatars instead of "round" ones.
But I can't find settings for this.
Coul u help?

In Admin panel, go to Forum => Attachments and avatars => Avatar settings
Uncheck "Avatar layout shape" option.
Title: Re: Avatars Display Integration
Post by: Recursos on March 06, 2024, 02:19:11 PM
Quote from: Speed King on March 06, 2024, 02:02:59 PMIn Admin panel, go to Forum => Attachments and avatars => Avatar settings
Uncheck "Avatar layout shape" option.

Thank you.
But I cannot find that option.
This is what Avatar Settings shows me:

Browse Files Attachment Settings Avatar Settings Attachment Directories File Maintenance
 Server-stored avatars
Membergroups allowed to select a server stored avatar Select permissions for each groupAvatars directory  /home/vol1_2/...etc../htdocs/avatars
Avatars URL  https://etc.com/avatars
 External avatars
Membergroups allowed to select an external URL Select permissions for each group Download avatar at given URL
Maximum width of external avatar
(0 for no limit) 100
Maximum height of external avatar
(0 for no limit) 100
 If the avatar is too large...
Resize it in the users' browser
 Uploadable avatars
Membergroups allowed to upload an avatar to the server Select permissions for each groupMaximum width of uploaded avatar
(0 for no limit) 100
Maximum height of uploaded avatar
(0 for no limit) 100
Resize oversized large avatars
(requires GD module or ImageMagick with IMagick or MagickWand extension)
Use PNG for resized avatars Re-encode potentially dangerous avatars
The extensive security checks can result in a large number of rejected avatars. Perform extensive security checks on uploaded avatars
Upload directory
This should be a valid and writable directory, different from the server-stored directory.
/home/vol1_2/etc./htdocs/custom_avatar
Upload URL https://etc.com/custom_avatar
Gravatars (Globally Recognized Avatars)
Enable Gravatars for forum users?Force Gravatars to be used instead of normal avatars?Allow storing an extra email address for Gravatars?
Maximum allowed rating?
PG rated (Parental Guidance)
Default image to show when an email address has no matching Gravatar
Title: Re: Avatars Display Integration
Post by: Kindred on March 06, 2024, 07:02:34 PM
You can't just copy paste like that..  it's a mess because it includes all of the tooltips and none of the spacing
Title: Re: Avatars Display Integration
Post by: Speed King on March 06, 2024, 11:37:45 PM
Quote from: Recursos on March 06, 2024, 08:16:56 AMVery nice theme.
I would like to have "square" avatars instead of "round" ones.
But I can't find settings for this.
Coul u help?

Do you have latest version of Avatars Display integration mod installed?
Title: Re: Avatars Display Integration
Post by: Recursos on March 07, 2024, 04:16:10 AM
Quote from: Speed King on March 06, 2024, 11:37:45 PMDo you have latest version of Avatars Display integration mod installed?

AvatarsDisplayIntegration_v1.5.6.zip
Title: Re: Avatars Display Integration
Post by: Pipke on March 08, 2024, 02:13:02 PM
Quote from: Recursos on March 06, 2024, 08:16:56 AMVery nice theme.
I would like to have "square" avatars instead of "round" ones.
But I can't find settings for this.
Coul u help?

you can find that setting at admin->forum->attachments and avatars->avatar settings
when you there find the option: Avatar layout shape
then set the select box to: Square
then save it and your done.
Title: Re: Avatars Display Integration
Post by: Recursos on March 16, 2024, 08:38:39 AM
Quote from: Pipke on March 08, 2024, 02:13:02 PMyou can find that setting at admin->forum->attachments and avatars->avatar settings
when you there find the option: Avatar layout shape
then set the select box to: Square
then save it and your done.

(https://i.ibb.co/J7fW3y1/Display-Avatar-Integration-Options.png)

Thank you, but that is my problem, I can't find "select box to: Square".
Title: Re: Avatars Display Integration
Post by: Speed King on March 16, 2024, 03:11:00 PM
Uncheck "Avatar layout shape" option and see if that helps.
Title: Re: Avatars Display Integration
Post by: Recursos on March 17, 2024, 08:44:47 AM
Quote from: Speed King on March 16, 2024, 03:11:00 PMUncheck "Avatar layout shape" option and see if that helps.

(https://i.ibb.co/zGqwG4f/Display-Avatar-Integration-Options-Unchecked.png)

Unchecked, but same thing.
The SMF 2.1.4 instalation is out-of-the-box, no Themes and no other mods.
"square shape", could I get it by editing aome php file?
Title: Re: Avatars Display Integration
Post by: Pipke on March 17, 2024, 05:51:00 PM
@Recursos What i see in your screenshot is weird, the avatar layout shape setting should be a selectbox not a checkbox?
see my screenshot that is how it should be, you can try to reinstall the mod and see if that helps.


Title: Re: Avatars Display Integration
Post by: Recursos on March 18, 2024, 06:10:50 AM
Quote from: Pipke on March 17, 2024, 05:51:00 PM@... the avatar layout shape setting should be a selectbox not a checkbox...
First time I see that!
Looking into:
AvatarsDisplayIntegration_v1.5.5.zip\AvatarsDisplayIntegration.php
this is the code:
...
  array('check', 'adi_avatar_shape'),
  array('select', 'adi_icon_overlay', array('both' => $txt['adi_icon_both'], 'online' => $txt['adi_icon_online'], 'none' => $txt['adi_none'])),
...

So what I have is indeed a "check" and not a "select". How comes?
Downloaded a previous version, "AvatarsDisplayIntegration_v1.5.5.zip", but the code is the same.

As a last resort in "AvatarsDisplayIntegration.css" edited line 221:
[data-adi~="circle"] {
   border-radius: 100%;
}
100% edited to 0%
And now the avatars are squared.

Thanks for you help,
Rec
Title: Re: Avatars Display Integration
Post by: Speed King on March 18, 2024, 07:52:56 AM
Quote from: Pipke on March 17, 2024, 05:51:00 PM@Recursos What i see in your screenshot is weird, the avatar layout shape setting should be a selectbox not a checkbox?
see my screenshot that is how it should be, you can try to reinstall the mod and see if that helps.


I have version 1.5.6 installed and in admin panel there is a checkbox, not select box:

Click => (https://i.postimg.cc/5YZdqYCb/2024-03-18.png) (https://postimg.cc/5YZdqYCb)

Unchecking this option makes avatars squared :)
Title: Re: Avatars Display Integration
Post by: Recursos on March 18, 2024, 08:25:42 AM
Quote from: Speed King on March 18, 2024, 07:52:56 AMI have version 1.5.6 installed and in admin panel there is a checkbox, not select box:

Click => (https://i.postimg.cc/5YZdqYCb/2024-03-18.png) (https://postimg.cc/5YZdqYCb)

Unchecking this option makes avatars squared :)
Amazing! not the same behaviour here.
Title: Re: Avatars Display Integration
Post by: Steve on March 18, 2024, 12:06:36 PM
Clear your browser cache and check with another browser.
Title: Re: Avatars Display Integration
Post by: Recursos on March 18, 2024, 12:57:58 PM
Quote from: Steve on March 18, 2024, 12:06:36 PMClear your browser cache and check with another browser.
Tried both, Windows 11 and Android, same results.
As the php code reads:
 array('check', 'adi_avatar_shape'),
this is really a "check box", not a "select option", I guess this was as expected.
Title: Re: Avatars Display Integration
Post by: Pipke on March 18, 2024, 04:55:26 PM
Quote from: Recursos on March 18, 2024, 12:57:58 PM
Quote from: Steve on March 18, 2024, 12:06:36 PMClear your browser cache and check with another browser.
Tried both, Windows 11 and Android, same results.
As the php code reads:
 array('check', 'adi_avatar_shape'),
this is really a "check box", not a "select option", I guess this was as expected.

Found the culprit, the v1.5.6 had wrong versions of php files in the package!
if you download the newest version 1.5.7 it should be all ok.

Changelog
Version 1.5.7 - Mar 18, 2024
- Fixed v1.5.6 wich had different versions of files
Title: Re: Avatars Display Integration
Post by: Steve on March 18, 2024, 04:57:40 PM
@Recursos - I just installed this on my vanilla test forum and the shape is a dropdrown, not a checkbox. I installed the latest version which is 1.5.7 ... any reason you don't want the latest version?


Edit: @Pipke beat me to it!  :P
Title: Re: Avatars Display Integration
Post by: Recursos on March 18, 2024, 06:03:38 PM
Quote from: Steve on March 18, 2024, 04:57:40 PM@Recursos - I just installed this on my vanilla test forum and the shape is a dropdrown, not a checkbox. I installed the latest version which is 1.5.7 ... any reason you don't want the latest version?


Edit: @Pipke beat me to it!  :P

>> any reason you don't want the latest version?

...it was not available.

[SOLVED]
Thank you very much,
Rec