Firefox PHP

User Avatar Module

Posted by CH 
Re: User Avatar Module
June 02, 2006 04:23PM
{IF URL->INDEX}<a class="PhorumNavLink" href="{URL->INDEX}">{LANG->ForumList}</a>"
{/IF}{IF URL->TOP}<a class="PhorumNavLink" href="{URL->TOP}">{LANG->MessageList}</a>"
{/IF}{IF URL->POST}<a class="PhorumNavLink" href="{URL->POST}">{LANG->NewTopic}</a>"
{/IF}<a class="PhorumNavLink" href="{URL->SEARCH}">{LANG->Search}</a>" {IF LOGGEDIN
true}{IF ENABLE_PM}<a class="PhorumNavLink" href="{URL->PM}">{LANG->PrivateMessages}</a>"
{/IF}{/IF}<a class="PhorumNavLink" href="{URL->LOGINOUT}">{LANG->LogOut}</a>

This is one line in my cc_index.tpl - The linebreak was for layout (in this forum) purposes only



Edited 1 time(s). Last edit at 06/02/2006 05:58PM by Baja.
Re: User Avatar Module
June 03, 2006 04:57PM
yes the problem is the getimagesize function, i'm on free.fr and it's not possible to access to url,

how could we do ?
Re: User Avatar Module
June 03, 2006 06:37PM
I have a solution / client side

{IF MESSAGES->mod_avatar}
<img src="{MESSAGES->mod_avatar}" alt="{LANG->mod_avatar->Avatar}"
valign="30" halign="10" onload="javascript:if(width>120)width=120;"/>
{/IF}

just put an onload control in your template to verfify, it's working on IE 6

it's maybe possible to get the max size from the module avatar ?

Philippe
Re: User Avatar Module
June 09, 2006 04:07AM
I have installed this Add-on and I got this error message when I tried to config my avatar in the control center

Where can add this setting allow_url_fopen = on
I heard that setting the "allow_url_fopen" to "On" is dangerous

Warning: getimagesize(http://.../phorum/file.php?0,file=2) [function.getimagesize]: failed to open stream: Connection timed out in .../.../mod_user_avatar.php on line 72

Warning: Cannot modify header information - headers already sent by (output started at ..../.../mod_user_avatar.php:72) in .../.../tpl-martha_with_settings-header-toplevel_stage2-59929bc7e31cf4bae8761a780229c250.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /.../phorum/include/controlcenter/mod_user_avatar.php:72) in /.../phorum/cache/tpl-martha_with_settings-header-toplevel_stage2-59929bc7e31cf4bae8761a780229c250.php on line 6



Edited 5 time(s). Last edit at 06/09/2006 08:00AM by hazman.
Re: User Avatar Module
June 09, 2006 10:10AM
that's normal,...

use javascript in your template
Re: User Avatar Module
June 09, 2006 11:33AM
Ok that's the question

Any help is welcome
About the field called "mod_avatar"
June 22, 2006 01:09AM
Quote

In Readme.txt
To use this module, the following must be done:
...
- In Phorum's "Custom Profiles" option, create a field called "mod_avatar".
Don't forget to turn "HTML disabled" to "no"
Re: User Avatar Module
August 19, 2006 10:00AM
Something really strange is happening:

on the Avatar Options at the User Control Panel, Block display of Avatars (you will not see avatars on any post): remains checked no matter what. In other words I remove the check but when I save it returns checked. How to solve this problem?
Re: User Avatar Module
August 19, 2006 10:03AM
add the needed custom field.


Thomas Seifert
Re: User Avatar Module
August 19, 2006 05:18PM
The readme.txt file instructed to add on the Custom Profiles the field "mod_user_avatar". Done this. Or you meant something else perhaps?
Sorry, only registered users may post in this forum.

Click here to login