User Avatar Module
Posted by CH
Re: User Avatar Module June 29, 2007 02:24PM |
Registered: 19 years ago Posts: 609 |
Problem with this avatar module is that it only works if the forum is set with Public Read Permission enabled in your forum setting.
If you disable read permission on Public then the avatar will no longer be displayed in the Control Center even if you uploaded them to your control center unless you go to a forum that have Public Read Permission enable then go to Control Center from that forum and avatars will appear in the avatar setting.
So those with phorum that is set up for registered members only forums will not be able to use this module until this bug is resolved or you need to set the forum with at least public read permission enabled.
Bill
If you disable read permission on Public then the avatar will no longer be displayed in the Control Center even if you uploaded them to your control center unless you go to a forum that have Public Read Permission enable then go to Control Center from that forum and avatars will appear in the avatar setting.
So those with phorum that is set up for registered members only forums will not be able to use this module until this bug is resolved or you need to set the forum with at least public read permission enabled.
Bill
Re: User Avatar Module July 28, 2007 05:04PM |
Registered: 17 years ago Posts: 4 |
Re: User Avatar Module July 28, 2007 06:38PM |
Registered: 19 years ago Posts: 609 |
Re: User Avatar Module July 28, 2007 07:40PM |
Registered: 17 years ago Posts: 4 |
Re: User Avatar Module July 29, 2007 06:31PM |
Registered: 17 years ago Posts: 4 |
I've got an error:
Warning: getimagesize(http://forum.mysite.com/file.php?0,file=3) [function.getimagesize]: failed to open stream: Connection timed out in /var/phorum/include/controlcenter/mod_user_avatar.php on line 63
Warning: Cannot modify header information - headers already sent by (output started at /var/phorum/include/controlcenter/mod_user_avatar.php:63) in /tmp/tpl-default-header-toplevel_stage2-36b5cb6180063f87ad9de9e62a925982.php on line 5
How can I fix it?
Edited 1 time(s). Last edit at 07/29/2007 06:32PM by Shaltay.
Warning: getimagesize(http://forum.mysite.com/file.php?0,file=3) [function.getimagesize]: failed to open stream: Connection timed out in /var/phorum/include/controlcenter/mod_user_avatar.php on line 63
Warning: Cannot modify header information - headers already sent by (output started at /var/phorum/include/controlcenter/mod_user_avatar.php:63) in /tmp/tpl-default-header-toplevel_stage2-36b5cb6180063f87ad9de9e62a925982.php on line 5
How can I fix it?
Edited 1 time(s). Last edit at 07/29/2007 06:32PM by Shaltay.
Re: User Avatar Module July 30, 2007 02:49AM |
Admin Registered: 20 years ago Posts: 8,532 |
The avatar mod was unable to read forum.mysite.com/file.php?0,file=3 in time. See if you can open the image when entering that URL in your web browser.
Do you get this message on every request or is it an occassional message? Either PHP is not working correctly in loading the image via a http request or the webserver is not performing well, causing the timeout to appear.
Either way, I don't know how to fix this.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Do you get this message on every request or is it an occassional message? Either PHP is not working correctly in loading the image via a http request or the webserver is not performing well, causing the timeout to appear.
Either way, I don't know how to fix this.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: User Avatar Module July 30, 2007 05:57AM |
Registered: 17 years ago Posts: 4 |
Quote
mmakaay
Either PHP is not working correctly in loading the image via a http request or the webserver is not performing well, causing the timeout to appear.
Yes, I can open image from the browser but WEB-server cant get it. It seems to Me problems in DNS causing that. Thanks for help.
Re: User Avatar Module July 30, 2007 03:54PM |
Registered: 18 years ago Posts: 29 |
Very nice modules, I like the newer version and had the old one operating for a while.
On the new version today, I found it helpful to mix up the read.tpl so it aligns better by adding an extra table and putting the username and avatar in that so it doesn't float away. Here's the code, you might have to look for what I moved, I removed some divs for alignment.
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
{IF MESSAGES->mod_user_avatar}
<img src="{MESSAGES->mod_user_avatar}" align="right">
{/IF}
<strong>
{IF MESSAGES->parent_id 0}
{MESSAGES->subject}{MESSAGES->new}
{ELSE}
{MESSAGES->subject}{MESSAGES->new}
{/IF}
</strong>
<br />
{LANG->Postedby}: <strong>{MESSAGES->linked_author}</strong> ({MESSAGES->ip})<br />
{LANG->Date}: {MESSAGES->datestamp}<br />
<br /><br />{MESSAGES->body}<br><br>
</td>
</tr>
</table>
On the new version today, I found it helpful to mix up the read.tpl so it aligns better by adding an extra table and putting the username and avatar in that so it doesn't float away. Here's the code, you might have to look for what I moved, I removed some divs for alignment.
<table border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
{IF MESSAGES->mod_user_avatar}
<img src="{MESSAGES->mod_user_avatar}" align="right">
{/IF}
<strong>
{IF MESSAGES->parent_id 0}
{MESSAGES->subject}{MESSAGES->new}
{ELSE}
{MESSAGES->subject}{MESSAGES->new}
{/IF}
</strong>
<br />
{LANG->Postedby}: <strong>{MESSAGES->linked_author}</strong> ({MESSAGES->ip})<br />
{LANG->Date}: {MESSAGES->datestamp}<br />
<br /><br />{MESSAGES->body}<br><br>
</td>
</tr>
</table>
Re: User Avatar Module September 22, 2007 08:50PM |
Registered: 17 years ago Posts: 38 |
Argl... it´s pure horror... please help me!
First I tried the avatar-module with multiple avatars, shown in the module-section on this site (listet below this version). Because of many problems with this old version, I tried this one.
In the control panel I can see the avatar-menue. Ok. I also can activate my own avatar.
I did everything written in the readme.txt, just added my own german language-file.
My default-view is the "thread-view", not flat. In flat-mode I can see the avatar, but not in thread-mode (I added the code in read.tpl AND read-thread.tpl; and of course i uploaded them ;-) ). When i open a currently written post in thread-mode, i just see the red "X" (Internet Explorer), and with firefox just a red "x" for 0,5 seconds. Whats wrong? Please help me before getting totally confused :-/
Thank you!
Thorsten
First I tried the avatar-module with multiple avatars, shown in the module-section on this site (listet below this version). Because of many problems with this old version, I tried this one.
In the control panel I can see the avatar-menue. Ok. I also can activate my own avatar.
I did everything written in the readme.txt, just added my own german language-file.
My default-view is the "thread-view", not flat. In flat-mode I can see the avatar, but not in thread-mode (I added the code in read.tpl AND read-thread.tpl; and of course i uploaded them ;-) ). When i open a currently written post in thread-mode, i just see the red "X" (Internet Explorer), and with firefox just a red "x" for 0,5 seconds. Whats wrong? Please help me before getting totally confused :-/
Thank you!
Thorsten
Re: User Avatar Module September 23, 2007 08:28AM |
Admin Registered: 20 years ago Posts: 8,532 |
Did you use "MESSAGES" instead of "MESSAGE" in the template code for read_threads.tpl? It should be "MESSAGE".
If this is not the problem, then what code did you add?
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Edited 1 time(s). Last edit at 09/23/2007 08:30AM by mmakaay.
If this is not the problem, then what code did you add?
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Edited 1 time(s). Last edit at 09/23/2007 08:30AM by mmakaay.
Sorry, only registered users may post in this forum.