Page 2 of 3

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 9:10 am
by lknhan
Hi nassim99!
Still error, can't fix.
Thanks

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 9:18 am
by nassim99
lknhan wrote:Hi nassim99!
Still error, can't fix.
Thanks
i think you did not update the extension
pls check!

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 9:22 am
by lknhan
I have updated but error, all forums can't show avatar, so I just delete it.
And add: old version.

Now, problems are:
- Show avatar: http://cailuongvietnam.vn/forum/viewforum.php?f=5
- no show avatar: http://cailuongvietnam.vn/forum/viewforum.php?f=6

Mean: some forums OK, but some forum can't show avatar...

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 9:41 am
by draky
lknhan wrote:nassim99 check help me.
http://cailuongvietnam.vn/forum/viewforum.php?f=6
And see hehe, avatar not broken: http://cailuongvietnam.vn/forum/viewtop ... =6&t=60778
I can see some avatars on your forum index...

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 11:34 am
by cece74
Help !

Image

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 2:07 pm
by nassim99
lknhan wrote:I have updated but error, all forums can't show avatar, so I just delete it.
And add: old version.

Now, problems are:
- Show avatar: http://cailuongvietnam.vn/forum/viewforum.php?f=5
- no show avatar: http://cailuongvietnam.vn/forum/viewforum.php?f=6

Mean: some forums OK, but some forum can't show avatar...
cece74 wrote:Help !
new update
hope it fixes all the problems
pls test !

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 2:13 pm
by cece74
Error my site, code:

<img src="http://.test.mysite.com///styles/prosilver/theme/images/no_avatar.gif" with="35px" height="35px" alt="Marea">

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 5:32 pm
by Niknovel

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 5:41 pm
by nassim99
cece74 wrote:Error my site, code:

<img src="http://.test.mysite.com///styles/prosilver/theme/images/no_avatar.gif" with="35px" height="35px" alt="Marea">
i did a fix
can you try again
and don't forget to Purge the cache.
thanks for testing.

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 5:49 pm
by nassim99
Niknovel wrote:Last Post Avatar
and why bring it here?
that is not my extension and the coding is different !!

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 6:12 pm
by cece74
Now it's perfect! Thank You!

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 7:00 pm
by Niknovel
nassim99 wrote: and why bring it here?
that is not my extension and the coding is different !!
Why reinvent the wheel if it has already been invented...

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 7:30 pm
by nassim99
Niknovel wrote:
Why reinvent the wheel if it has already been invented...
first i didn't knew there was an extension like that
second that is a last post avatar, mine is topic poster avatar !

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 7:56 pm
by draky
Best would be 2 ext in one : and admin can choose which avatar to display : author or last poster :p

Re: [BETA] topic avatar : author avatar in viewforum

Posted: Thu Jan 15, 2015 10:46 pm
by PayBas
From what I can tell, this extension needs some work.

The biggest problem is that the avatar is retrieved for each row individually. That means 1 extra query for each row. This increases the amount of queries significantly, and can make your board much slower.

I would suggest that you collect all the first-poster user-IDs and query the DB for the avatars in a single query.

It requires a bit more complex code, but I don't think the extension team will validate your extension in its current form.