Module: User Avatar
Posted by Maurice Makaay
April 14, 2010 11:27AM |
Admin Registered: 16 years ago Posts: 8,532 |
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
Did you dump the $PHORUM['TMP']['MESSAGES'] data within that loop to see if the avatar info was there?
Maurice Makaay
Phorum Development Team



Re: Module: User Avatar April 14, 2010 11:40AM |
Registered: 13 years ago Posts: 11 |
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} ({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>
{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} ({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>
Re: Module: User Avatar April 14, 2010 12:22PM |
Admin Registered: 18 years ago Posts: 9,239 |
and the user didn't set in the controlpanel to disable avatars?
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de


Re: Module: User Avatar April 14, 2010 12:38PM |
Registered: 13 years ago Posts: 11 |
Re: Module: User Avatar April 14, 2010 12:41PM |
Admin Registered: 18 years ago Posts: 9,239 |
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
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Edited 1 time(s). Last edit at 04/14/2010 12:41PM by Thomas Seifert.
Btw., you know that you are using an old version which possibly contains security issues?
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de


Edited 1 time(s). Last edit at 04/14/2010 12:41PM by Thomas Seifert.
Re: Module: User Avatar April 14, 2010 12:54PM |
Registered: 13 years ago Posts: 11 |
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 :-)
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 12:56PM |
Admin Registered: 18 years ago Posts: 9,239 |
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
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de


Re: Module: User Avatar April 14, 2010 01:24PM |
Registered: 13 years ago Posts: 11 |
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.
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 10:11PM |
Registered: 12 years ago Posts: 753 |
August 09, 2010 10:19PM |
Admin Registered: 16 years ago Posts: 8,532 |
The module authors had no use for it.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Sorry, only registered users may post in this forum.