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/23/2009 | Read message |
August 03, 2007 02:34PM |
Registered: 22 years ago Posts: 868 |
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 10:45AM by Maurice Makaay.
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 10:45AM by Maurice Makaay.
April 05, 2008 11:06PM |
Registered: 16 years ago Posts: 98 |
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
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
April 06, 2008 05:52AM |
Admin Registered: 20 years ago Posts: 8,532 |
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
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



April 06, 2008 10:54PM |
Registered: 16 years ago Posts: 98 |
Re: Module: Avatar July 01, 2008 03:10PM |
Registered: 19 years ago Posts: 54 |
July 01, 2008 03:47PM |
Admin Registered: 20 years ago Posts: 8,532 |
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
Maurice Makaay
Phorum Development Team



Re: Module: Avatar May 23, 2009 04:47PM |
Registered: 15 years ago Posts: 1 |
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)
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)
May 23, 2009 06:42PM |
Admin Registered: 20 years ago Posts: 8,532 |
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
I'll have to look into this module to see why this is happening.
Maurice Makaay
Phorum Development Team



May 23, 2009 06:56PM |
Admin Registered: 20 years ago Posts: 8,532 |
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
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



Re: Module: Avatar May 23, 2009 07:43PM |
Admin Registered: 22 years ago Posts: 9,240 |
Sorry, only registered users may post in this forum.