Cannot update user avatars
|
03-28-2012 01:25 AM
|
 |
Administrator, Lead Coder
|
|
Cannot update user avatars
Users cannot update their avatars in account.php
After a user enters the avatar field, the new avatar will not be replacing the old avatars. At this point the only way to update avatars is for admins to do it manually in phpmyadmin, which is painstaking. This glitch is affecting Mys v1.3.0 and the beta version.
|
|
Issue Details
|
Category Unknown
Status Fixed
Priority 10 - Lowest
Affected Version Mys v1.3.0
Fixed Version Mys v1.3.1
Users able to reproduce bug
0
Users unable to reproduce bug
0
Assigned Users
Hall of Famer
Tags
(none)
|
|
03-31-2012 04:46 AM
|
 |
Administrator, Lead Coder
|
|
|
Change line 157 from accountpost.php to the code below should suffice:
PHP Code:
$query = "UPDATE {$prefix}users_profile SET avatar='{$avatar}' ,nickname='{$nickname}' , gender='{$gender}' , color='{$color}' , bio='{$bio}' , favpet='{$favpet}' , about='{$about}' WHERE username='{$loggedinname}'";
|
03-31-2012 07:21 AM
|
 |
Member
|
|
|
I did that and everything went fine till I went to update my avatar, then I got this message:
Parse error: syntax error, unexpected T_STRING in /home/u787488258/public_html/accountpost.php on line 158
This is the coding I had before:
157. about='{$about}' WHERE username='{$loggedinname}'";
158. $adopts->query($query);
I only replaced line 157. Should I have also changed 158?
|
03-31-2012 11:55 AM
|
 |
Administrator, Lead Coder
|
|
|
Oh sorry about that, you need to replace the entire $query.
|
03-31-2012 12:04 PM
|
 |
Member
|
|
|
Okay ^,^ fixed.
I thought maybe I needed the new accountpost file.. so I tried that and it worked. I didn't change line 158 though cause this was before I saw your post.
|
All times are GMT -5. The time now is 04:46 AM.
Currently Active Users: 4549 (0 members and 4549 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members,
jolob.