![]() |
I'm having a problem with my avatars not uploading from the usercp. I have no problem uploading from the admin screen. I'm looking at this code in the member.php file to find the bug
PHP Code:
|
*superbump*.. please?
|
Like I said, I can upload a user's avatar from the Admin Screen but not the usercp. I compared the update avatar codes from user.php and member.php and they're downright the same but for some reason when I attempt to update from the usercp I keep getting the error_avatarbadurl template.
Somebody should have some ideas as to what may be going on here. |
Do you happen to have my avatar on homepage / welcome panel hack installed? I remember (Sinecure?) having a problem with this as well, because of collision with the $avatarurl variable.
|
actually, yes I do. How was this problem remedied?
|
Ok then in whatever hack you got replace $avatarurl with $hackavatarurl (in both files and templates), so it won't ruin the $avatarurl used for uploading avatars. :)
|
Thanks. The only avatar hack I have installed is the Welcome Panel one. I changed the root/index.php file to read
PHP Code:
|
1 Attachment(s)
do this:
01. replace the code with this: PHP Code:
03. run tplavhm.php (made specially for you :)) in /root/forum/admin. it will install the 2 templates. your problem is solved. ;) NOTE: Firefly, maybe you should include this mod into your hack. it works better and it will not conflict with any script mod in index.php.... let me know what you think. |
Nakkid, I appreciate the help. But still no go. I still keep getting the error-url message :( :(
I changed the code in root/index.php to the one given above. Ran the template php file, templates were installed but still no luck on uploading the avatars. Has me wondering where this error is coming from... |
hmmm i see that you run 2.2.1. i know the index.php was not changed in 2.2.2. i would do this:
backup the database and run a clean install of 2.2.2 my believe is that your database is corrupted somehow. it's impossible the code mentionned above won't work. so far there are only 2 people who runned into this prob: you and sinecure? hmmm wierd. let me know... |
I understand that means adding all the hacks again.. ack! But, if my dbase is corrupted, then when I reload my dbase won't I get the same problem? Does the dbase back up also back up the templates, styles, etc?
Plus, I'm still able to upload avatars from the admin screen. The only problems are in the usercp. If the user does not have a custom avatar, it appears to work on uplpoad but instead displays the "noavatar.gif" file instead. If the user currently has a custom avatar, it returns the url error. |
I upgraded to 2.2.2 and still no freaking dice :( We need some help here, folks, please. Ack!
|
*bump*
|
can you do a clean install of the board? AS A TEST BOARD? implement the hack and try it. you will se that you don't have any problems anymore.
|
Oh my god! I got it working and I have to say I am guilty of extreme oversight.... I did all of the above code changes in my root/index.php only and neglected to make the changes in my global.php. That was the whole stinking problem and now it's all better. God, I love the elation of figuring out a problem that has been nagging at you for a long while... Beer anyone?
|
YESSSSS.. i love heineken ;) congrats
|
Thanks for your help, Nakkid
|
you are more then welcome mark ;)
|
Hey!
Make me the third user to encounter this bug. I did have the avatar on homepage hack installed but wasn't using it - it was messing up my table layout.... lets see if I can get things working quicker |
well - after a period of complete MySQL meltdown and permissions nightmare, I am now getting this error
There has been an error in the upload. Please ensure that the file has been correctly selected and that the upload has taken place successfully. I'm stuck now |
Quote:
Thank you very much for your help, Sirs! |
All times are GMT. The time now is 05:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|