News:

Wondering if this will always be free?  See why free is better.

Main Menu

Avatars Display Integration

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

Previous topic - Next topic

FrizzleFried

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


Pipke

@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:
"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! ☕

Pipke

#102
@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)
"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! ☕

FrizzleFried


Pipke

Mod updated
Changelog
Version 1.5.2 - Mar 1, 2022
- Fixed responsive css for boardindex
"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! ☕

alex_cipher

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?

Pipke

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.
"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! ☕

alex_cipher

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


Bugo


pikeman

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.

Pipke

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
You cannot view this attachment.
"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! ☕

alex_cipher

Thank you!

I just replaced the file and will have a look during the day and then I give feedback.  :)

alex_cipher

After 1 hour there are several errors but now in line 313.

gevv

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

You cannot view this attachment.

ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Pipke

@alex_cipher can you try again with the attached file.
You cannot view this attachment.
"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! ☕

Pipke

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

You cannot view this attachment.



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!
"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! ☕

gevv

Thanks. I tried it didn't work (cleared browser cache, i tried in diff browser. css script compression off)
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

gevv

My mistake i added div "adi_item_topic_last" problem solved

Thanks
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

alex_cipher

Quote from: Pipke on March 07, 2022, 03:45:32 PM@alex_cipher can you try again with the attached file.
You cannot view this attachment.

I haven't had any errors with this file so far! Thank you very much!  :)

gevv

ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Advertisement: