Avatars on Board and/or MessageIndex

Started by Pipke, April 05, 2016, 06:27:00 PM

Previous topic - Next topic

spidometrs

Hi guys!

Modul for my forum does not work consistently.
Once avatars shows and 20 times does not show.
Now the modul is installed, but does not show the avatars.
See screenshot.

I want to add an avatar just to the left of the list.
See screenshot.

Can you tell me how to do it?

I created the code and add it to MessageIndex.template.php file, but it does not display user avatars.


if ((filter_var($topic['first_post']['member']['avatar'], FILTER_VALIDATE_URL) === false) || (empty($topic['first_post']['member']['avatar'])))
echo'', $topic['first_post']['member']['id'] ? '<a href="' .$topic['first_post']['member']['href']. '">' : '', '<img style="',$abm_img_style,' border-radius:',$modSettings['abm_avatar_layout'] ? '50' : '0','%;" src="'.$settings['images_url']. '/abm_avatar.gif" alt="[?]" />', $topic['first_post']['member']['id'] ? '</a>' : '';
  else
echo'<a href="' ,$topic['first_post']['member']['href'], '"><img style="',$abm_img_style,' border-radius:',$modSettings['abm_avatar_layout'] ? '50' : '0','%;" src="'. $topic['first_post']['member']['avatar'].'" alt="[?]" /></a>';


Can you fix the code?

Thank you very much in advance!

spidometrs

#101
I did everything myself.
And every time you need to clear the cache.
SMF 2.0.11 has a problem with the cache.
For this module, the cache should be turned off.

Wonderful module.
Thanks to the author!

vicente947

I still having amb text on boardindex:



Im using:

Manas Theme

And this mods:


Pipke

@vicente947 can you post your forum url with mod installed so i can take a look and maybe solve it for you.
"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! ☕

vicente947

Quote from: Pipke on December 07, 2016, 10:18:46 AM
@vicente947 can you post your forum url with mod installed so i can take a look and maybe solve it for you.

hxxp:teamworkers.co.nf/ [nonactive]

Pipke

Quote from: vicente947 on December 07, 2016, 10:19:18 AM
Quote from: Pipke on December 07, 2016, 10:18:46 AM
@vicente947 can you post your forum url with mod installed so i can take a look and maybe solve it for you.

http://teamworkers.co.nf/

ok ill check it later today when i'm home.
"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! ☕

vicente947

Quote from: Pipke on December 07, 2016, 10:21:38 AM
Quote from: vicente947 on December 07, 2016, 10:19:18 AM
Quote from: Pipke on December 07, 2016, 10:18:46 AM
@vicente947 can you post your forum url with mod installed so i can take a look and maybe solve it for you.

hxxp:teamworkers.co.nf/ [nonactive]

ok ill check it later today when i'm home.


Thx man :)

Pipke

@vicente947, it seems you fixed it yourself? the abm is gone?
"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! ☕

Ian Mc

Mod has installed with no problems at all and works perfectly but for one exception. Despite having "Show avatar of last poster on the BoardIndex" disabled, the avatars are still showing there. Have done all the usual refreshes, cache cleared etc but they won't go away! Just wondered if you could give me any pointers?

I'm using a custom responsive theme so I'm wondering if this could be the problem. With having a left hand row of Simple Portal blocks on the Board Index the inclusion of the avatars just squeezes things up a bit too much!

Many thanks.

Pipke

Quote from: Ian Mc on January 10, 2017, 07:55:12 AM
Mod has installed with no problems at all and works perfectly but for one exception. Despite having "Show avatar of last poster on the BoardIndex" disabled, the avatars are still showing there. Have done all the usual refreshes, cache cleared etc but they won't go away! Just wondered if you could give me any pointers?

I'm using a custom responsive theme so I'm wondering if this could be the problem. With having a left hand row of Simple Portal blocks on the Board Index the inclusion of the avatars just squeezes things up a bit too much!

Many thanks.

thx for the report ;) I have fixed the issue/bug, mod updated to v1.8

Quote
Version 1.8 - Jan 10, 2017
- Fixed: Admin setting "Show avatar of last poster on the 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! ☕

Ian Mc


AlexanderBrown

I too am having this issue with "abm" issue on my board. I don't see a solution for the person who had it previously, is this a known issue with a solution?



The link to my forum is hxxp:www.sioncraft.net [nonactive]

Pipke

Quote from: AlexanderBrown on January 29, 2017, 05:00:58 PM
I too am having this issue with "abm" issue on my board. I don't see a solution for the person who had it previously, is this a known issue with a solution?



The link to my forum is http://www.sioncraft.net


this is caused by that your using other theme then default, the theme your using uses another layout of the last columns, can you uninstall the mod, this way i can watch how this theme is setup in the last columns elements.
"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! ☕

caboose014

the 'abm' text looks like its a mistake in the code. There are lines of code where it looks like abm is suppose to be commented out

abm<!---->

Where I believe this should be

<!--abm-->

I found and replaced this manually in the 'aim_code.php' file (in the sources folder) and the text has gone.

Argon3000

Avatars on Board not work. What to do?
Avatars on MessageIndex - ОК.

Theme - default.
qrz.center/community/
SMF 2.0.15, PortaMx-SEF 1.54

Kindred

did you actually install it into your theme?
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Argon3000

Quote from: Kindred on February 12, 2017, 02:28:29 PM
did you actually install it into your theme?

Yes.
Avatars on Board - NOT WORK.
Avatars on MessageIndex - ОК.

SMF Default Theme - Curve. SMF 2.0.13, PortaMx-SEF 1.54.

SMF 2.0.15, PortaMx-SEF 1.54

Pipke

Quote from: Argon3000 on February 13, 2017, 12:28:02 AM
Quote from: Kindred on February 12, 2017, 02:28:29 PM
did you actually install it into your theme?

Yes.
Avatars on Board - NOT WORK.
Avatars on MessageIndex - ОК.

SMF Default Theme - Curve. SMF 2.0.13, PortaMx-SEF 1.54.



this is caused by that your theme last column is setup different then its default, can you uninstall the mod, this way i can watch how it is setup in the last columns elements.
"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! ☕

Argon3000

Quote from: Pipke on February 13, 2017, 02:20:29 PM
this is caused by that your theme last column is setup different then its default, can you uninstall the mod, this way i can watch how it is setup in the last columns elements.

Uninstall mod Avatars on Board and/or MessageIndex.
SMF 2.0.15, PortaMx-SEF 1.54

Argon3000

Quote from: Pipke on February 13, 2017, 02:20:29 PM
...last column is setup different then its default, ...., this way i can watch how it is setup in the last columns elements.

Theme - default.
In advance thank you.
SMF 2.0.15, PortaMx-SEF 1.54

Advertisement: