News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Avatars Display Integration

Started by Pipke, February 15, 2020, 07:43:21 PM

Previous topic - Next topic

Speed King

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 =>

Unchecking this option makes avatars squared :)

Recursos

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 =>

Unchecking this option makes avatars squared :)
Amazing! not the same behaviour here.

Steve

Clear your browser cache and check with another browser.
DO NOT pm me for support!

Recursos

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.

Pipke

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
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

Steve

@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
DO NOT pm me for support!

Recursos

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


dmnlksm

@Pipke hello! Thank you for this mod!  :)

When we want to see those who like a posted message, there is a shapeshift in the avatars.

https://ibb.co/VQ9qnwP [nofollow]

I'm using the original theme. How can we solve this issue?

Pipke

Quote from: dmnlksm on July 29, 2024, 07:04:07 AM@Pipke hello! Thank you for this mod!  :)

When we want to see those who like a posted message, there is a shapeshift in the avatars.

https://ibb.co/VQ9qnwP

I'm using the original theme. How can we solve this issue?
@your theme folder find file /css/AvatarsDisplayIntegration.css
Code (find) Select
#likes .adi_item_context .avatar {
    padding: 0;
    display: inline-flex;
    margin: 0 4px 4px 0;
}

Code ("replace with") Select
#likes .adi_item_context .avatar {
    padding: 0;
    display: inline-flex;
    margin: 0 4px 4px 0;
    height: 36px;
    width: 36px;
}
"If something is wrong, fix it if you can. But train yourself not to worry: Worry never fixes anything."

Click here to view my mods for SMF

Hey 👋 Did i helped... you like what i do. You can now buy me a coffee! ☕

dmnlksm

It worked! Thanks for the solution. :)

Myselfttt

#230


I installed the mod and encountered a problem.

If you enter like www.websitename . com Ex. www.siambot . com
I can't log in

But if I type a name without www. followed by the website name Ex. siambot . com
I can log in.

Where do I need to change the code to allow logging in both ways in Ex. www.siambot . com and siambot . com?

@Pipke

Diego Andrés

Quote from: Myselfttt on August 04, 2024, 09:15:10 PM

I installed the mod and encountered a problem.

If you enter like www.websitename . com Ex. www.siambot . com
I can't log in

But if I type a name without www. followed by the website name Ex. siambot . com
I can log in.

Where do I need to change the code to allow logging in both ways in Ex. www.siambot . com and siambot . com?

@Pipke

This is not an issue with the MOD.
As you well noticed, it's because you should only use a single URL for your forum. We recommend setting up a httaccess redirect so it always go to the URL the forum uses.
See this topic: https://www.simplemachines.org/community/index.php?topic=583922.0

SMF Tricks - Free & Premium Responsive Themes for SMF.

marcosbr

 You forgot to put portuguese_pt in package-info.


You cannot view this attachment.
Nothing in life is absolute. We are always learning... Did you know that?
https://amigosdaeletronica.com.br

marcosbr

Quote from: @rjen on March 09, 2022, 08:35:35 AMTip 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="';


 I'm having the same HTML error.  "End tag had attributes"
 Everything works normally, I've already tested it on a new installation!

Nothing in life is absolute. We are always learning... Did you know that?
https://amigosdaeletronica.com.br

mrc1

This mod doesn't work with the portuguese_brazilian language, please fix it.

marcosbr

I sent portugues_pt, but I can send the "br" to Pipke.
Nothing in life is absolute. We are always learning... Did you know that?
https://amigosdaeletronica.com.br

Advertisement: