Advertisement:

Author Topic: Avatars on Board and/or MessageIndex  (Read 47583 times)

Offline Pipke

  • Full Member
  • ***
  • Posts: 456
    • [NRNS]
Re: Avatars on Board and/or MessageIndex
« Reply #160 on: December 28, 2017, 05:36:34 PM »
Thank you for this beautiful mod, but it do not use proxy in avatar images in the forum's home
Solution?
I've been using this mod for a month now and I like it. :)

It just doesn't seem to be compatible with PHP 7.1. On PHP 7.0.26 the mod works fine, but if I try using PHP 7.1.12, the forum index breaks:


Both fixed in updated v2.0, thx for reporting!

Version 2.0 - Dec 28, 2017
- Fixed: Illegal string offset 'value' (due > PHP 7.1)
- Added: Proxy for external avatar urls

Offline maglix04

  • Semi-Newbie
  • *
  • Posts: 15
Re: Avatars on Board and/or MessageIndex
« Reply #161 on: December 29, 2017, 06:15:53 AM »
You are great! Thank you!

Offline Dav999

  • Jr. Member
  • **
  • Posts: 197
  • Gender: Male
Re: Avatars on Board and/or MessageIndex
« Reply #162 on: December 29, 2017, 08:33:58 PM »
Thanks for the update! :D

Offline coltp45

  • Semi-Newbie
  • *
  • Posts: 74
    • Futbol Argento
Re: Avatars on Board and/or MessageIndex
« Reply #163 on: April 30, 2018, 02:25:19 AM »
Hi, its posible to use SSL with this mods?

Im using a external image proxy.

Offline Pipke

  • Full Member
  • ***
  • Posts: 456
    • [NRNS]
Re: Avatars on Board and/or MessageIndex
« Reply #164 on: April 30, 2018, 03:11:01 AM »
Hi, its posible to use SSL with this mods?

yes

Offline Wauking

  • Newbie
  • *
  • Posts: 1
Re: Avatars on Board and/or MessageIndex
« Reply #165 on: August 16, 2018, 07:41:53 AM »
Hey, great mod and I have it working just fine however I get a "by abm" above almost each post on the main index. The picture below shows what I mean, any idea how to fix?


Offline Pipke

  • Full Member
  • ***
  • Posts: 456
    • [NRNS]
Re: Avatars on Board and/or MessageIndex
« Reply #166 on: August 16, 2018, 12:50:13 PM »
Hey, great mod and I have it working just fine however I get a "by abm" above almost each post on the main index. The picture below shows what I mean, any idea how to fix?



can you post your site url (with access for guests) or the theme your using with download link or where i can see a preview.

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,316
    • GenXcommunity
Re: Avatars on Board and/or MessageIndex
« Reply #167 on: December 01, 2018, 05:21:13 PM »
Hey Pipke.

I just installed the 2.0 version using the DokuzHarf theme.

https://custom.simplemachines.org/themes/index.php?lemma=2870

I have the "abm" on the board index for that theme as well. This theme also has the generic icon profile image in the last post area so not sure if that has anything to do with it. I did try removing that generic icon code from the theme's index.css though and that didn't seem to remove the abm, so not too sure.

Please see attachment

Offline Pipke

  • Full Member
  • ***
  • Posts: 456
    • [NRNS]
Re: Avatars on Board and/or MessageIndex
« Reply #168 on: December 02, 2018, 10:23:15 AM »
Hey Pipke.

I just installed the 2.0 version using the DokuzHarf theme.

https://custom.simplemachines.org/themes/index.php?lemma=2870

I have the "abm" on the board index for that theme as well. This theme also has the generic icon profile image in the last post area so not sure if that has anything to do with it. I did try removing that generic icon code from the theme's index.css though and that didn't seem to remove the abm, so not too sure.

Please see attachment

Replace the attached file in Sources folder, it should fix the issue only for the DokuzHarf theme, if not let me know.

Offline br360

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 2,316
    • GenXcommunity
Re: Avatars on Board and/or MessageIndex
« Reply #169 on: December 02, 2018, 01:59:30 PM »
Worked great Pipke. Thank you :)

Offline Hero2019

  • Semi-Newbie
  • *
  • Posts: 54
Re: Avatars on Board and/or MessageIndex
« Reply #170 on: February 14, 2019, 06:42:47 AM »
Hi,

Could you please adapt this mod to the RC1?

Thanks in advance.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,191
    • StoryBB/StoryBB on GitHub
Re: Avatars on Board and/or MessageIndex
« Reply #171 on: February 14, 2019, 06:46:48 AM »
Hi,

Could you please adapt this mod to the RC1?

Thanks in advance.

Given that I think RC1 has most of the code required to do this...
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Hero2019

  • Semi-Newbie
  • *
  • Posts: 54
Re: Avatars on Board and/or MessageIndex
« Reply #172 on: February 14, 2019, 06:58:10 AM »
Unfortunately, I do not see an adjustment option for RC1.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,191
    • StoryBB/StoryBB on GitHub
Re: Avatars on Board and/or MessageIndex
« Reply #173 on: February 14, 2019, 09:07:12 AM »
I don’t have an RC1 install handy, and if it is in RC1 it won’t be in the same place and I think it may need a tweak to enable it since I think it is forcibly disabled (but hey, using something that is essentially still pre-release software can mean quite big bugs)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Online SychO

  • Customizer
  • Sr. Member
  • *
  • Posts: 859
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Avatars on Board and/or MessageIndex
« Reply #174 on: February 14, 2019, 10:45:19 AM »
I don’t have an RC1 install handy, and if it is in RC1 it won’t be in the same place and I think it may need a tweak to enable it since I think it is forcibly disabled (but hey, using something that is essentially still pre-release software can mean quite big bugs)

Code: [Select]
// Set the following variable to true if this theme wants to display the avatar of the user that posted the last post on the board index.
$settings['avatars_on_boardIndex'] = false;

I'm not sure but once you set it to true I believe you still have to edit the template files to output the avatar, setting it to true only loads the data

Imazighen

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,191
    • StoryBB/StoryBB on GitHub
Re: Avatars on Board and/or MessageIndex
« Reply #175 on: February 14, 2019, 10:51:43 AM »
Huh, could have sworn it was functional entirely just for the hack to the theme index. Or maybe I fixed this a year ago in my fork and never realised.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Suki

  • Kaizoku Jotei
  • Developer
  • SMF Super Hero
  • *
  • Posts: 15,384
  • Oh, wouldn't it be great if I *was* crazy?
    • MissAllSunday on GitHub
    • SMF mods
Re: Avatars on Board and/or MessageIndex
« Reply #176 on: February 14, 2019, 10:58:57 AM »

I'm not sure but once you set it to true I believe you still have to edit the template files to output the avatar, setting it to true only loads the data

Yes, that setting is there to avoid doing source edits, set it to true on your theme's index.template and you will have access to avatars data on board index.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Look at them. They're just asking for it. Maybe the human race deserves to be wiped out.

Offline gecitli

  • Jr. Member
  • **
  • Posts: 224
    • webtiryaki.com
Re: Avatars on Board and/or MessageIndex
« Reply #177 on: February 14, 2019, 11:06:26 AM »
index.template.php

find
Code: [Select]
// Set the following variable to true is this theme wants to display the avatar of the user that posted the last post on the board index.
 $settings['avatars_on_boardIndex'] = false;

replace

Code: [Select]
// Set the following variable to true is this theme wants to display the avatar of the user that posted the last post on the board index.
 $settings['avatars_on_boardIndex'] = true;

Boardindex.template.php

find

Code: [Select]
<p>', $board['last_post']['last_post_message'], '</p>
replace
Code: [Select]
<p>'.$board['last_post']['member']['avatar']['image'].' ', $board['last_post']['last_post_message'], '</p>

http://www.webtiryaki.com
Free & Premium Responsive Themes for SMF.