Firefox PHP

Module: Avatar

Posted by Sergej 
All files from this thread

File Name File Size   Posted by Date  
avatar.zip 11.2 KB open | download Sergej 05/24/2009 Read message
Module: Avatar
August 03, 2007 08:34PM
If you are going to install an Avatar module for the first time, then please use the more mature and maintained User Avatar Module


I had it fixed, and I tested it. It should work now.
Have fun with it.

mmakaay: Renamed the subject

mmakaay: Updated the module for compatibility with the CSRF protection in Phorum 5.2.11

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------



Edited 3 time(s). Last edit at 10/16/2010 04:45PM by Maurice Makaay.
Attachments:
open | download - avatar.zip (11.2 KB)
Re: Module: Avatar
April 06, 2008 05:06AM
Does this module work in 5.2.7 ?

I'm getting some serious errors with it:

WHEN UN-CHECKING "BLOCK DISPLAY OF AVATARS":

Fatal error: Call to undefined function phorum_user_save() in /path/to/phorum-5.2.7/include/controlcenter/mod_avatar.php on line 17

WHEN TRYING TO EDIT MY AVATARS (/forum/control.php?0,panel=mod_avatar):
Fatal error: Cannot use string offset as an array in /path/to/phorum-5.2.7/include/controlcenter/mod_avatar.php on line 73

Am I just installing too far ahead of this module?

Thanks,
Sean P
Re: Module: Avatar
April 06, 2008 11:52AM
phorum_user_save() is a function that does no longer exist in 5.2. It was from 5.1 and lower. If such call is in this code, then it needs fixing. Replacing the call with phorum_api_user_save() should do the trick.

Did you try my User Avatar module? That one was written from the ground up for 5.2. Maybe that one is easier to install.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Avatar
April 07, 2008 04:54AM
Maurice,

The "User Avatar" module worked beautifully, thanks!
Sp
Re: Module: Avatar
July 01, 2008 09:10PM
It is strange, sometime I have no image avatar



Some users say me, and in IE 6, than they see the avatar image when they are log out and they see a cross when they are log in.
Re: Module: Avatar
July 01, 2008 09:47PM
Right click the image, request its properties, copy the URL for the image. Then open the copied URL directly in the browser. That might show you an error message or so that reveals why the image is not shown.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Avatar
May 23, 2009 10:47PM
Just installed 5.2.11...

When I try to do "Save Changes" in the Avatar Options page, I get this message:
Possible hack attempt detected. The posted form data was rejected.

Did I miss something on the install?

Module is installed.
File uploads are on.
Custom profile set up.
Both files copied.
Control Center page altered to show Avatar page. (I get the avatar options page, so avatar seems to work otherwise)
(Was waiting to finish other sections until having avatar confirmed)
Re: Module: Avatar
May 24, 2009 12:42AM
That is reported by a new security feature in Phorum. To prevent CSRF hack attempts, POST forms should send a security token along with the rest of the form data. The token is checked to see if the user did the post or if somebody else is tricking the user into posting the form data.

I'll have to look into this module to see why this is happening.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Avatar
May 24, 2009 12:56AM
Try the updated package (I just uploaded avatar.zip).
The cc_mod_avatar.tpl template is changed. You can do the changes by hand too.

- find the <form ...> tags in the template.
- after each <form ...> (there are two), add {POST_VARS}


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Avatar
May 24, 2009 01:43AM
and I'd recomment to use the user_avatar module anyway.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Sorry, only registered users may post in this forum.

Click here to login