View Full Version : Cannot update user avatars
Hall of Famer
03-28-2012, 01:25 AM
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.
Hall of Famer
03-31-2012, 04:46 AM
Change line 157 from accountpost.php to the code below should suffice:
$query = "UPDATE {$prefix}users_profile SET avatar='{$avatar}' ,nickname='{$nickname}' , gender='{$gender}' , color='{$color}' , bio='{$bio}' , favpet='{$favpet}' , about='{$about}' WHERE username='{$loggedinname}'";
solskenn
03-31-2012, 07:21 AM
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?
Hall of Famer
03-31-2012, 11:55 AM
Oh sorry about that, you need to replace the entire $query.
solskenn
03-31-2012, 12:04 PM
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.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.