Uploading avatar problems

Need some help with the script?

Uploading avatar problems

Postby Natasha » Sat Mar 24, 2007 7:12 am

I just converted my regular cutenews to cutenews.ru. I'm trying to get the user avatar to show up in the comments but it just doesn't show up. Also, in my personal settings I "upload" the image but it disappears when viewing the settings again.



Any help would be much appreciated.
Natasha
 
Posts: 6
Joined: Tue Jul 18, 2006 9:41 pm

Postby Ramon » Sat Mar 24, 2007 7:22 pm

You could try to CHMOD /data/userpics to 777 again
Image
Ramon
 
Posts: 599
Joined: Wed Oct 12, 2005 8:51 pm
Location: Hoogeveen, NL

Postby Natasha » Sat Mar 24, 2007 10:28 pm

still doesn't work.
Natasha
 
Posts: 6
Joined: Tue Jul 18, 2006 9:41 pm

Postby scottdallas » Sun Mar 25, 2007 12:41 am

Is it actually uploading and storing on the FTP?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Natasha » Sun Mar 25, 2007 2:47 am

nope. It just says...saved and then when I go back to the page, the field is blank again. And nothing uploads into my ftp either. I tried uploading images in my news and that works. For some reason just the avatar is having the problem of uploading.
Natasha
 
Posts: 6
Joined: Tue Jul 18, 2006 9:41 pm

Postby Falconer » Sun Apr 22, 2007 3:09 pm

Hey, at least you -have- a field for the personal avatar...



We haven't used Avatars until now, but there's no avatar field, no upload option... nothing... Anyone any idea?
Falconer
 
Posts: 50
Joined: Wed Feb 01, 2006 10:51 pm

Postby Ramon » Sun Apr 22, 2007 4:45 pm

System Settings -> Avatar in comments: to Yes
Image
Ramon
 
Posts: 599
Joined: Wed Oct 12, 2005 8:51 pm
Location: Hoogeveen, NL

Postby Falconer » Sun Apr 22, 2007 6:57 pm

Hey, thanks Ramon ;)



Strange though, cause one would expect that that setting would affect only comments... But, it's there, can't complain. Thanks!
Falconer
 
Posts: 50
Joined: Wed Feb 01, 2006 10:51 pm

Postby Falconer » Sun Apr 22, 2007 7:03 pm

Ah, and then I end up with the same problem as Natasha... :(
Falconer
 
Posts: 50
Joined: Wed Feb 01, 2006 10:51 pm

Postby Skullbock » Sun Oct 14, 2007 8:32 pm

I had the same problem, so i looked up into the code and found the error.

I don't know why, but sometimes when using a "file" input in a form, it does send the file, but the $_POST variable associated is empty, so the script doesn't know that u hhave uploaded the file.

To solve this, open inc/mod/personal.mdu and replace

if($newavatar) {

with

if(!empty($_FILES['newavatar']['name'])){

and it should work.

Bye :P
Skullbock
 
Posts: 1
Joined: Thu Oct 11, 2007 8:45 pm

Postby SolidSnake2003 » Wed Nov 14, 2007 7:58 am

I tried that code, and it didnt work
User avatar
SolidSnake2003
 
Posts: 68
Joined: Tue Jul 31, 2007 3:26 am

Postby Ned Flanders » Fri Jun 26, 2009 11:27 pm

Neither for me :cry:
User avatar
Ned Flanders
 
Posts: 55
Joined: Mon May 11, 2009 10:28 pm
Location: Holy Kingdom

Postby sevo » Sun Jan 31, 2010 12:23 pm

Hello.

Someone solve that problem??
My avatar didn't save and I have to past a link to avatar in each post...

Thanks for help
sevo
 
Posts: 3
Joined: Fri Jan 29, 2010 10:41 pm

Postby jasamja » Fri Jun 04, 2010 11:32 pm

I have same problem, any idea how to solve this?
jasamja
 
Posts: 11
Joined: Fri Jun 04, 2010 6:37 pm

same problem with user avatar uploads!

Postby afxback » Mon Jun 21, 2010 10:13 pm

Hello
I have the same problem with user avatar uploads. When I try to update my personal settings or try to edit and update other users and chose a user avatar to upload, the script dose not upload user avatar. I have to go to PHPmyadmin and open user table and add "jpg" in avatar fileds of each users I want to update. This is killing me!
I have set user avatar settings to: width 1000 hight 1000. The userpics and data folders are marked:
Writing permissions for cache Yes
Writing permissions for userpics Yes
Writing permissions for upimages Yes

I downloaded again the latest version but still it dose not work. I think the old versions of the script was working because I used this script since 2006 and avatar upload worked fine. Recently I updated the script with the latest one and it started not to upload user avatar. The worse thing, It removes user's avatar previously uploaded, when i try to update any user information.

This is a bug and please help us to give a solution.

EDIT and Solution:
Anybody has this problem should apply the Skullbock solution both to Personal.mdu and editusers.mdu files. It works for me now after I changed the code in those files.
regards
afxback
 
Posts: 134
Joined: Fri Nov 11, 2005 4:59 pm


Return to Help



Who is online

Users browsing this forum: No registered users and 0 guests

cron