Advertisement:

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

Offline dansal

  • Semi-Newbie
  • *
  • Posts: 16
    • LaArmada
Re: Avatars on Board and/or MessageIndex
« Reply #140 on: August 02, 2017, 06:03:34 PM »
I want to minimize my topic, in the list of forums, and in the section of details make a unique link where the avatar, date and title of the message. To make it more comfortable to use with a mobile device.

It is a small community where almost everyone has their full profile

Offline razzy

  • Semi-Newbie
  • *
  • Posts: 22
  • Gender: Female
Re: Avatars on Board and/or MessageIndex
« Reply #141 on: August 18, 2017, 06:31:12 PM »
Hello. I was directed to post my small issue here, as I posted in the wrong place yet again.  :-[

Anyways. It's installed just fine, and is pretty slick. I love it. It's a fantastic mod.

Although once a category has been posted in, it shows 'abm' above the who posted last bit. I could try reading through the code to see if I cant find where that bugger is, but I was hoping someone knew about the issue already and could help.

Thank you. =)
I am nerd, hear me rawr.

Offline Pipke

  • Jr. Member
  • **
  • Posts: 377
    • NRNS-GAMES
Re: Avatars on Board and/or MessageIndex
« Reply #142 on: August 18, 2017, 07:00:20 PM »
 
Hello. I was directed to post my small issue here, as I posted in the wrong place yet again.  :-[

Anyways. It's installed just fine, and is pretty slick. I love it. It's a fantastic mod.

Although once a category has been posted in, it shows 'abm' above the who posted last bit. I could try reading through the code to see if I cant find where that bugger is, but I was hoping someone knew about the issue already and could help.

Thank you. =)


As it looks your using an other theme then default, wich theme is that and can you post your forum url with mod installed so i can take a look and maybe solve it for you.

Offline aegersz

  • Sophist Member
  • *****
  • Posts: 1,117
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: Avatars on Board and/or MessageIndex
« Reply #143 on: August 18, 2017, 07:00:30 PM »
this mod ground my system to a halt on numerous occasions but i'm giving it another go because it's a beauty ! fingers crossed.
SMF 2.0: 135+ mods installed (the full list can be seen at http://forum.drugs-and-users.org/index.php/topic,3301)

Offline razzy

  • Semi-Newbie
  • *
  • Posts: 22
  • Gender: Female
Re: Avatars on Board and/or MessageIndex
« Reply #144 on: August 19, 2017, 01:48:13 PM »
I'm using a Dziner theme called Gearbox2.0. Will pm the link. =)
I am nerd, hear me rawr.

Offline Pipke

  • Jr. Member
  • **
  • Posts: 377
    • NRNS-GAMES
Re: Avatars on Board and/or MessageIndex
« Reply #145 on: August 20, 2017, 09:13:11 AM »
I'm using a Dziner theme called Gearbox2.0. Will pm the link. =)

note that this fix is only for Gearbox2.0 theme.
open file Sources/abm_code.php

find in that file on line 393
Code: [Select]
'~<p>abm<!----></p>~',

replace by
Code: [Select]
'~abm<!---->~',

save file and reupload it.



Offline razzy

  • Semi-Newbie
  • *
  • Posts: 22
  • Gender: Female
Re: Avatars on Board and/or MessageIndex
« Reply #146 on: August 20, 2017, 02:38:27 PM »
Easily located the file and line 393. replaced the code exactly how you said and the 'abm' is still showing where it was before.

I'll open the file to edit again, and see if I'm missing something.


combing through this file, and not really seeing anything outside the ordinary. (given I'm not well versed in .php. i make things pretty. lol)

Only thing around the area that made me wonder, is this...  $abm ='';

Code: [Select]
// remove the 'abm_id={}' text
$context['html_headers'] .= '
<style type="text/css">
.lastpost img {
color: rgba(0,0,0,0);
font-size: 1px;
}
.subject img {
color: rgba(0,0,0,0);
font-size: 1px;
}
</style>';

  $abm ='';

// Find in messages the outprinted topics
I am nerd, hear me rawr.

Offline Pipke

  • Jr. Member
  • **
  • Posts: 377
    • NRNS-GAMES
Re: Avatars on Board and/or MessageIndex
« Reply #147 on: August 20, 2017, 03:53:20 PM »
@razzy ive tested in chrome and firefox, the fix i posted should do the job, do you use any other browser?
Can you attach the file with the edit you made.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,119
  • Gender: Male
    • Kindred-999 on GitHub
Re: Avatars on Board and/or MessageIndex
« Reply #148 on: August 20, 2017, 08:17:58 PM »
Clear your server and browser cache
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline razzy

  • Semi-Newbie
  • *
  • Posts: 22
  • Gender: Female
Re: Avatars on Board and/or MessageIndex
« Reply #149 on: August 22, 2017, 02:22:33 PM »
I'm going to have to see about working all this out. Something has gone very wrong with me trying to rush through this. The board package manager says the mod isnt there, but the mod settings still show in the Modification Settings.

So I logged into the Cpanel, and it shows the zip file still there. So I downloaded it and unzipped it to magically find it empty...?

the kicker, is the mod still shows up in the board and on display. I'll post again once I figured out wth is going on. Thank you for the help so far and I'm sorry for this as I've been out of designing anything for several years now.
I am nerd, hear me rawr.

Offline razzy

  • Semi-Newbie
  • *
  • Posts: 22
  • Gender: Female
Re: Avatars on Board and/or MessageIndex
« Reply #150 on: August 22, 2017, 02:47:40 PM »
So the fix suggested by Pipke works flawlessly now. Big huge thank you for everything, including your patience.

Somehow the entire mod's zip was blanked. I havent used .zip in ages, until recently I've always used .rar and because of that I somehow erased everything but the fixed php file. lol

and Also thank you Kindred, that was a very sound suggestion.

<3<3
I am nerd, hear me rawr.

Offline MartiMedia

  • Semi-Newbie
  • *
  • Posts: 25
Re: Avatars on Board and/or MessageIndex
« Reply #151 on: September 26, 2017, 07:09:29 PM »
Hi @Pipke, do you still have version 1.4 of the mod available for download? That version produced an error, and it seems to have slipped back into version 1.9 but probably it's my fault manually merging sources. I'd like to compare 1.4 with 1.5 (which I still have a copy of and where the bug was solved).
More detail: it's the 'Wrong value type sent to the database. Array of integers expected. (id)' in function abm_mod_setup (maybe you have the code snippet that changed there with the 1.4->1.5 change?)

Cheers, I hope someone can help me (I'm no PHP coder..)

Marti

Offline Pipke

  • Jr. Member
  • **
  • Posts: 377
    • NRNS-GAMES
Re: Avatars on Board and/or MessageIndex
« Reply #152 on: September 27, 2017, 08:12:27 AM »
@MartiMedia i would like to know how you got that error on v1.9 and where.

Offline MartiMedia

  • Semi-Newbie
  • *
  • Posts: 25
Re: Avatars on Board and/or MessageIndex
« Reply #153 on: September 28, 2017, 06:07:32 PM »
Smart me, I just cleared the logs a few days ago (and reported this error), and now I don't seem to be able to reproduce it atm. I recall it had to do with the 'last poster' and having no avatar, but not sure.. Anyway, if you still have the 1.4 package I can compare it with 1.5 to look for that difference. I'm at 1.9 on my production site, but somehow a code snippet from 1.4 seems to have slid back in (my reasoning may be wrong of course) by some manual edits I did. I'll post when the error is raised again, but in the meanwhile, can you post or mail me the 1.4 version? That would be great.. Thanks for always being helpful Pipke..

Offline Pipke

  • Jr. Member
  • **
  • Posts: 377
    • NRNS-GAMES
Re: Avatars on Board and/or MessageIndex
« Reply #154 on: September 29, 2017, 08:00:31 AM »
I'll post when the error is raised again

ok ill wait for that then if it happens agian, in meanwhile this is solved.

can you post or mail me the 1.4 version?

i dont have that version anymore.

Offline Mochi

  • Newbie
  • *
  • Posts: 7
Re: Avatars on Board and/or MessageIndex
« Reply #155 on: November 19, 2017, 10:37:54 AM »
Hello.  :)

How can I hide the avatars from guests?

Offline Pipke

  • Jr. Member
  • **
  • Posts: 377
    • NRNS-GAMES
Re: Avatars on Board and/or MessageIndex
« Reply #156 on: November 19, 2017, 12:07:49 PM »
Hello.  :)

How can I hide the avatars from guests?

in file Sources/abm_code.php

Code: (find) [Select]
if (isset($context['current_action']) && !empty($context['current_action']))

Code: (replace by) [Select]
if ($context['user']['is_guest'])
return;

if (isset($context['current_action']) && !empty($context['current_action']))

and

Code: (find) [Select]
if (isset($_REQUEST['xml']))
return $avatar;

Code: (replace by) [Select]
if ($context['user']['is_guest'])
return $avatar;

if (isset($_REQUEST['xml']))
return $avatar;

Offline Mochi

  • Newbie
  • *
  • Posts: 7
Re: Avatars on Board and/or MessageIndex
« Reply #157 on: November 19, 2017, 12:56:30 PM »
Thank you! It works fine!  :)

Offline maglix04

  • Newbie
  • *
  • Posts: 9
Re: Avatars on Board and/or MessageIndex
« Reply #158 on: December 06, 2017, 02:16:59 PM »
Thank you for this beautiful mod, but it do not use proxy in avatar images in the forum's home
Solution?