Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Projects > The Bug Tracker > Bug

Notices

Cannot update user avatars Issue Tools
issueid=2 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
Project The Bug Tracker
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}'"
Reply
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?
Reply
03-31-2012 11:55 AM
Administrator, Lead Coder
 
Oh sorry about that, you need to replace the entire $query.
Reply
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.
Reply
Reply

Issue Tools
Subscribe to this issue

All times are GMT -5. The time now is 06:47 PM.

Currently Active Users: 450 (0 members and 450 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636