Firefox PHP

Avatar Module

Posted by Chris Eaton 
Re: Phorum Avatar Light Module v1.0
May 22, 2006 05:04PM
the read.tpl files,....
Attachments:
open | download - read.tpl (3.8 KB)
Re: Avatar Module
May 23, 2006 12:19PM
Quote
Steel Rat
Would like to know if anyone has ANY avatar module running on 5.1.11. I went through all the steps for this one, but it's not even close to working.<br />

I have this working perfetto, even if not many of my users use it.

PM me for a url or specific question.

I have followed the instructions on the readme and in this thread so no magic though.

---
-=[ Panu ]=-
Re: Phorum Avatar Light Module v1.0
May 25, 2006 09:20AM
Hi, I instaled phorum 5.1.12 before few days and I try your avatar module too.

It's working good, thanks for you good job ;-). Now I want translate it to czech for our users. I create czech.php from english.php file in mods/avatar/lang/ and translate some lines, but on pages I see original english words from avatar module.

I have instaled Czech language file for whole phorum and this working.

Have you any idea what I am made wrong?

UPDATE: I solve it. Mod language file must have same name as global phorum language filename (/include/lang/). I had /include/lang/czech-5.1.10.php and /mods/avatar/lang/czech.php.



Edited 1 time(s). Last edit at 06/01/2006 04:35AM by lisicky.
Re: Avatar Module
May 25, 2006 10:24AM
Quote
Panu
<br />
I have this working perfetto, even if not many of my users use it.
<br />

<br />
PM me for a url or specific question.
<br />

<br />
I have followed the instructions on the readme and in this thread so no magic though.<br />
<br />
-=[ Panu ]=-

Thanks, Panu.

I'll have to give it another try. Which of the download files did you use for this?

Steel Rat
[infinite-realities.com]
Re: Avatar Module
May 27, 2006 05:39PM
Oh I'm not sure. avatar.php says version: 2.1.1 I think it's the latest downloadeble from this thread.

---
-=[ Panu ]=-
Re: 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: Avatar Module
July 05, 2006 05:34PM
Hello, Wonderful script here :D

I've been playing around with the templates on my forum and recently my friends sent me this thing
{USERINFO->custom profile}
It's quite nice having the other Custom profiles listed over the menu bar..but i cant get Avatars to appear..:(

This is what i have..Please help :D
{IF USERINFO->mod_avatar}<img src="{USERINFO->mod_avatar}" alt="{LANG->mod_avatar->Avatar}" />
{ELSE}
<img src="/templates/default/images/noavvie.gif">
{/IF}
<br><font size=4 color=white>{USERINFO->username}</font><br>
{IF USERINFO->gender}Gender:{USERINFO->gender}<br>{/IF}
{IF USERINFO->font}Font: <font face="{USERINFO->font}">{USERINFO->font}</font><br>{/IF}
{IF USERINFO->size}Font Size: <font size="{USERINFO->size}">{USERINFO->size}</font><br>{/IF}
{IF USERINFO->color}Font Color: <font color="{USERINFO->color}">{USERINFO->color}</font><br>{/IF}
{IF USERINFO->glow_j}Glow: <font color="{USERINFO->glow_j}">{USERINFO->glow_j}</font><br>{/IF}<br>
But the Avatar's output is always this..
<img src="Array" alt="Avatar" />
<br><font size=4 color=white>james</font><br>
Gender:Male<br>Font: <font face="Parry Hotter">Parry Hotter</font><br>Font Size: <font size="5">5</font><br>Font Color: <font color="white">white</font><br>Glow: <font color="#8EAABE">#8EAABE</font><br>

Can someone help correct it?? :D

Evilhogwarts Rocks Socks..^_^
Re: Avatar Module
August 23, 2006 04:21PM
Quote
Panu
Oh I'm not sure. avatar.php says version: 2.1.1 I think it's the latest downloadeble from this thread.

Panu,

Thats the same version I installed. I get strange results (posted some recent errors to the wrong topic, will get them here in a moment.)

Ok, here are the results I'm getting:

I have the module installed and enabled, and have set the options, and created the custom profile field, even turned off the HTML checkbox (FYI, doing this caused the HTML in my signature to become HTML encoded, meaning all the < and > were changed to &gt; and such, but anyway).

I upload an image file which is within the file dimensions. Then when I go to the Avatar control panel I get the following error at the top of the page:

Warning: getimagesize(http://www.hdrpg.com/projecthdrpg/file.php?0,file=84): could not make seekable - [www.hdrpg.com] in /home/hdrpgco/public_html/projecthdrpg/include/controlcenter/mod_avatar.php on line 90

And no uploaded images appear available.

On that same control panel section, the Block Avatars checkbox is checked, and will not remain unchecked no matter what.

Also, in the Edit My Files section, if I click on an uploaded file I get a plain page back with only this:

"[www.hdrpg.com];

Should it be showing me the uploaded image instead?

Steel Rat
[infinite-realities.com]



Edited 1 time(s). Last edit at 08/23/2006 04:29PM by Steel Rat.
Re: Avatar Module
August 23, 2006 04:51PM
More info. Based on the statement by TS77 that the filesystem storage mod doesn't really work, I disabled that. And now I am able to see uploaded files.

However. For one brief moment I was able to see the uploaded image file in the Avatar control center, and I added a label to it, and saved, and now I CAN'T see that file in the Avatar control center any more.

And that darn "Block display of Avatars" checkbox still remains checked.

This is REALLY frustrating.

At least i'm not getting the "Warning: getimagesize" error any more, but the module still isn't working for me.

Steel Rat
[infinite-realities.com]
Re: Avatar Module
August 26, 2006 11:38PM
My conclusion on this problem is that the module isn't saving the information properly. From checking the checkbox and it not saving, to setting a label on an avatar and there being no indication a label was set when I hit save changes.

I have the custom profile field setup as mod_avatar, length 1000, and the HTML box unchecked, as the documentation says. All the files are copied where they should be, and I triple-checked the template edits (thought those wouldn't affect the control panel saving info.

What should the data in the custom field look like? When I look at it in phpMyAdmin, it looks like it's incimplete, but I don't know if it's following a format. Here is an example (I broke it up here so it would wrap properly):

1_SER:a:2:{s:7:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp
;quot;avatars&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;quot;
;a:1:{i:16;a:3:{s:8:&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp
;quot;avatarid&amp;am

That's one user's data field. Another has a special character in place of the "1" at the beginning, a little box chracter, like a return or something.

I even deleted the custom field and re-created it with a lower value, but it looks exactly the same.

Steel Rat
[infinite-realities.com]
Sorry, only registered users may post in this forum.

Click here to login