1
Splifswift
Avatar Not Saving In User Profile
  • 2011/3/18 16:38

  • Splifswift

  • Just popping in

  • Posts: 5

  • Since: 2010/3/26


I am having issues with user profile avatars being saved. When I try to select a avatar and click submit it says it has been saved but when i look its not there.

I have also checked in PhPMyAdmin and it is not saving in the SQL Database either so not too sure where i am going wrong. I have well i am sure i have checked all the boxes that need to be checked and have uploaded and installed all the avatars through the admin panel.

I mass uploaded the avators into the server then saved them one by one in the admin panel of xoops.

2
dannie
Re: Avatar Not Saving In User Profile
  • 2011/4/14 15:30

  • dannie

  • Just popping in

  • Posts: 36

  • Since: 2004/2/10


Did this get resolved? I am having the same problem. It says the avatar is saved but when I check phpadmin, the avatar is still blank.gif.

3
dannie
Re: Avatar Not Saving In User Profile
  • 2011/4/14 16:32

  • dannie

  • Just popping in

  • Posts: 36

  • Since: 2004/2/10


I am looking at the code in profile/edituser.php and it seems that the XOOPS_UPLOAD_PATH is wrong. It is searching for the avatar pic in uploads when in fact the path should be uploads/avatars/. This needs to be fixed.

4
dannie
Re: Avatar Not Saving In User Profile
  • 2011/4/14 16:48

  • dannie

  • Just popping in

  • Posts: 36

  • Since: 2004/2/10


in userinfo.php I changed

$avatar = "";
if ($thisUser->getVar('user_avatar') && "blank.gif" != $thisUser->getVar('user_avatar')) {
$avatar = XOOPS_UPLOAD_URL . "/" . $thisUser->getVar('user_avatar');
}


to:
$avatar = "";
if ($thisUser->getVar('user_avatar') && "blank.gif" != $thisUser->getVar('user_avatar')) {
$avatar = XOOPS_UPLOAD_URL . "/avatars/" . $thisUser->getVar('user_avatar');
}

and now the picture shows up in the user profile.

now if only I can get the change user avatar working.

5
dannie
Re: Avatar Not Saving In User Profile
  • 2011/4/14 17:11

  • dannie

  • Just popping in

  • Posts: 36

  • Since: 2004/2/10


in edituser.php

wherever you see
XOOPS_UPLOAD_URL . '/'

change it to:
XOOPS_UPLOAD_URL . '/avatars/'


and also
XOOPS_UPLOAD_PATH . '/'
change to:
XOOPS_UPLOAD_PATH . '/avatars/'

This will make the avatars show up in the change avatar form BUT after you click the submit button, it still won't change the avatar so I don't know how to fix that.

I changed the user avatar in phpadmin. Since I am still testing out the new xoops that's not too much of a hassle but if you have a working site, you will definitely need a real fix.

6
Peekay
Re: Avatar Not Saving In User Profile
  • 2011/4/14 22:21

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


There appears to be a bug tracker for the latest Xoops here

http://sourceforge.net/tracker/?group_id=41586&atid=430840

It would be useful to post your issue there so the dev team can investigate it.
A thread is for life. Not just for Christmas.

7
timgno
Re: Avatar Not Saving In User Profile
  • 2011/4/15 8:56

  • timgno

  • Module Developer

  • Posts: 1504

  • Since: 2007/6/21


View bottom commets on this news

8
dannie
Re: Avatar Not Saving In User Profile
  • 2011/4/28 16:08

  • dannie

  • Just popping in

  • Posts: 36

  • Since: 2004/2/10


I found this post which solved the problem. thanks!

Login

Who's Online

282 user(s) are online (181 user(s) are browsing Support Forums)


Members: 0


Guests: 282


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits