Firefox PHP

Module: User Avatar

Posted by Maurice Makaay 
Re: Module: User Avatar
April 14, 2010 05:27AM
Did you put that img src inside the {LOOP MESSAGES}?
Did you dump the $PHORUM['TMP']['MESSAGES'] data within that loop to see if the avatar info was there?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: User Avatar
April 14, 2010 05:40AM
sure:

{LOOP MESSAGES}
{IF NOT MESSAGES->parent_id 0}
<a name="msg-{MESSAGES->message_id}"></a>
{/IF}
<?php
print_r($PHORUM['TMP']['MESSAGES']);
?>
<!--- some custom html --->

{IF MESSAGES->user_avatar}
<td style="width: 130px; padding: 15px;">
<img src="{MESSAGES->user_avatar}" alt="{MESSAGES->author}"/>
</td>
{/IF}
<td style="vertical-align: top; padding-top: 15px;">
{IF MESSAGES->subject}<strong>{MESSAGES->subject}</strong>{ELSEIF TOPIC->subject}<strong>{TOPIC->subject}</strong>{/IF}&nbsp;({IF MESSAGES->URL->PROFILE}<a href="{MESSAGES->URL->PROFILE}">{/IF}{MESSAGES->author}{IF MESSAGES->URL->PROFILE}</a>){/IF}<br><span class="small">{MESSAGES->datestamp}</span>
</td>
Attachments:
open | download - tmp_messages.txt (3 KB)
Re: Module: User Avatar
April 14, 2010 06:22AM
and the user didn't set in the controlpanel to disable avatars?


Thomas Seifert
Re: Module: User Avatar
April 14, 2010 06:38AM
no, avatars are enabled for all users i tried.
Re: Module: User Avatar
April 14, 2010 06:41AM
and the settings for that module in the admin are set to what?

Btw., you know that you are using an old version which possibly contains security issues?


Thomas Seifert



Edited 1 time(s). Last edit at 04/14/2010 06:41AM by Thomas Seifert.
Re: Module: User Avatar
April 14, 2010 06:54AM
the module is enabled of course. i've changed the max. files to 1 and the dimensions to 100x100, erveryone is allowed to use and to disable the avatars.
the upload works and if i change {MESSAGES->user_avatar} to {USER->user_avatar} the avatar is shown (to myself only of course).

i know, but i'm not really frightened :-)
Re: Module: User Avatar
April 14, 2010 06:56AM
dunno, the module takes no special settings beside the ones named above and simply adds the avatars. I can only think of some other module interfering in the read hook.


Thomas Seifert
Re: Module: User Avatar
April 14, 2010 07:24AM
we have enabled:

Announcements
BBCode
HTML Phorum Mod
Impersonate User (version 1.0.5)
Mark All Forums Read (version 1.0.8)
New message notification module (version 1.01)
Recent Messages (version 2.0.13)
User Avatar (version 3.0.4)

i switched them all to "off" - except the avatar - and nothing changed.
Avatars not available for LIST template?
August 09, 2010 04:11PM
I am curious why the LIST template had not been considered by the module authors for displaying avatars. Some people prejudge posts by looking at avatars like some people do it with wine by looking at bottle labels.
Re: Avatars not available for LIST template?
August 09, 2010 04:19PM
The module authors had no use for it.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login