SMF Version: 1.1.14
Site: www.thecbg.org
Whenever anyone goes to their profile on the site and selects to upload an avatar and hits change profile they are left without an avatar but if I go to the user uploaded avatars directory on the server the image is there (and I can even access it in my browser) but for some reason it won't switch them over to using their avatar in the custom avatar directory instead they seem to be stuck in the standard avatar directory.
Did this all start happening after you installed a mod, or anything?
What mods do you have (God, I wish I had £1 for every time I've had to ask that!)
Do things work, if you/they use the SMF default theme? (God, I wish I had £1 for every time I've had to ask that, too!)
Lainaus käyttäjältä: K@ - syyskuu 08, 2011, 03:20:02 IP
Did this all start happening after you installed a mod, or anything?
What mods do you have (God, I wish I had £1 for every time I've had to ask that!)
Do things work, if you/they use the SMF default theme? (God, I wish I had £1 for every time I've had to ask that, too!)
I couldn't tell you if it started happening right after I installed a mod (though I could try uninstalling them and see where that gets me).
The mods I'm using are:
- Dice Roller BBcode 1.3
- Hide post count 1.0
- Spam Me Not Mod 1.02
- Custom Action Mod 2.04
- SMF 1.0.7 / 1.1 RC2 Update 1.0
- SMF 1.1.14 Update 1.0
- TinyPortal 1.103
- Anti Bot: Unrecognizable Form 1.1
- Custom BBCode 2.00
- Spoiler BBCode 1.1.3
Also I just tried the default theme and the problem remains.
Don't know if this will help but here's my settings.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg838.imageshack.us%2Fimg838%2F7186%2Funledhm.png&hash=b86c30a6765180daebcdcec445f3842a9c12912f)
I just made a discovery. If I tell it to upload an avatar it uploads the avatar to the uploaded avatars directory I gave it. However the html for their avatar image is pointing not to the avatars directory but to the home directory of my SMF install (public_html). I confirmed this by placing the uploaded avatar into said directory and it instantly showed up. The question is, how do I get it to stop pointing to that directory and look at the right one?
http://wiki.simplemachines.org/smf/Attachments_and_Avatars#Uploadable_avatars
What directory do you have set for uploaded avatars?
From the screeny, it looks like a directory named "avatarsuserow" something.
I'd suggest changing that to "Attachments directory" to see what happens.
Lainaus käyttäjältä: K@ - syyskuu 09, 2011, 03:49:30 IP
From the screeny, it looks like a directory named "avatarsuserow" something.
I'd suggest changing that to "Attachments directory" to see what happens.
Hmm that works. So at least I can use the attachments directory though I would really like to use a directory for avatars separate from that. Perhaps there's something I'm doing wrong (actually since it isn't working right chances are pretty good that that's the case haha).
Oh as a side question I'm trying to set it up so that external oversized avatars get resized so that their width and height is below 100px. I've tried all the options and so far it isn't working right. The let HTML resize them works on the preview picture that appears right after you upload an avatar but on the forums themselves the avatar gets resized to 100x90 (really annoying for people with avatars that have a different aspect ratio then 10:9). I tried the JavaScript option but it does nothing at all. And the download and resize it option using the GD module results in pictures actually getting scaled up. A picture that is 80 wide might get scaled up to around 120 wide or even as high as 400.
does the directory you want to use for avatars actually exist on the server?
Lainaus käyttäjältä: Illori - syyskuu 09, 2011, 06:11:59 IP
does the directory you want to use for avatars actually exist on the server?
Yes it does and it is chmod'd to 777
Gonna give this a quick bump here.
Bumping. I know people are busy but I'd really like an answer if at all possible.
I was trying to have a look through the code to see when the avatar directory gets updated.
I have found this information is stored in the attachment directory modsetting (it is actually used as an array, if there is more than one directory).
But I'm a little bit lost. I'll have to ask the customizers and the devs.
I'm pretty sure you need to enter the value in the Upload Url box ..... in the picture its blank and needs to be http://www.thecbg.org/avatarsuserown (or whatever the directory is that you created).
Lainaus käyttäjältä: Spuds - syyskuu 12, 2011, 06:08:23 IP
I'm pretty sure you need to enter the value in the Upload Url box ..... in the picture its blank and needs to be http://www.thecbg.org/avatarsuserown (or whatever the directory is that you created).
I had tried this first actually. However when it did not work I tried doing it without the URL and got the same results before submitting the image (hence why the image lacks that).
Would you mind sending me a temp admin account so I can take a look at this?
Lainaus käyttäjältä: IchBin™ - syyskuu 13, 2011, 11:00:50 AP
Would you mind sending me a temp admin account so I can take a look at this?
Information PM'd :)
Nomadic,
I fixed a bunch of errors. It looks like you added some custom menu items but didn't quite do it right. Any time you add a text string using the $txt variables you need to make sure they look like this:
$txt['cbgname']
Notice the single quotes. Single quotes are only for strings. If you put a number in it, there is no need for single quotes.
$txt[124]
Anyway, I fixed several of those. I also changed your TP frontpage setting because you had set to display 0 items which causes a division by zero error in the log. If you don't want any articles or posts to show on the frontpage, just choose a different front page option like articles only, and tick all your articles to not show on the frontpage. Either way, it shouldn't be throwing an error now.
As for your avatar problem, at this point I can only guess that one of your 13 mods is conflicting with this. The problem is that it is not saving the custom URL text box on that admin page. You'll notice that once you save it and refresh the page, the URL is gone. At this point I don't have the time to go through all the mod changes on your site to find out what the cause is. As a work around you can try this though.
Open up phpMyAdmin on your host and go to the database for your forum, click on the smf_settings table. Add a row to that table. The variable row should have this text in it:
custom_avatar_url
And the value should be http://www.cbg.org/avatarsusers
Then save that row. Go back to your admin page and see if the database insert you did worked.
Let me know how it goes.
Yes I know about the string quotes thing, my guess is that it was like that because I copy pasted a bunch of things to save time and didn't notice the single quotes issue. Thanks for fixing that though. Also thanks for fixing the division by 0 problem I was getting as that was getting annoying but I couldn't seem to figure out what was causing it. Anyhow I'll give your suggestion a try and manually edit the database.
One final thing, I noticed that the format for people's profiles to the left is messed up. It looks like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg21.imageshack.us%2Fimg21%2F967%2Fprofilenb.png&hash=bd9eaaa0fe4fe9e5a2546dbff5ff9cac141dbeb2)
It should be:
Username
custom title
avatar image
user rank
user rank image
Posts should be hidden but I think that's because something you did disabled my no post count mod (easy enough to reinstall though). Anyhow do you have any idea what all you did that caused this formatting issue and perhaps a way to fix it?
EDIT: I just checked the database and custom_avatar_url already exists in it with the value http://www.thecbg.org/avatarsusers so that isn't it.
Sorry about the profile change, I put in a new Display.template.php file to test some things and forgot to restore it back to normal. That should be fixed now and should be showing exactly how you had it before with posts hidden too.
As for the avatar URL in the settings table, it would seem something is removing it from the $modSettings array "I think". If you want, I can take a little further look at that today to see if I can find the cause.
Lainaus käyttäjältä: IchBin™ - syyskuu 19, 2011, 12:56:51 IP
Sorry about the profile change, I put in a new Display.template.php file to test some things and forgot to restore it back to normal. That should be fixed now and should be showing exactly how you had it before with posts hidden too.
As for the avatar URL in the settings table, it would seem something is removing it from the $modSettings array "I think". If you want, I can take a little further look at that today to see if I can find the cause.
That would be awesome, you've been a huge help so far man but if you want to give it a look that'd help alot. :)
Well it looks like it was TinyPortal. There was some code in the mod that was setting the custom_avatar_url to empty. I've commented it out and everything seems to be working. I'll add that to my list of bugs to fix for TP. Thanks for letting me take a look at it. Feel free to remove all the access that you setup for me.
-IchBin
Wow! Great work, IchBin.
Nomadic -- OK to mark this one solved?
Lainaus käyttäjältä: IchBin™ - syyskuu 19, 2011, 04:37:08 IP
Well it looks like it was TinyPortal. There was some code in the mod that was setting the custom_avatar_url to empty. I've commented it out and everything seems to be working. I'll add that to my list of bugs to fix for TP. Thanks for letting me take a look at it. Feel free to remove all the access that you setup for me.
-IchBin
Awesome thanks a ton for fixing this. :)
Good job, Ichy! :)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Fc011.gif&hash=a034aba3103313f96a663eebd1627b4e1e193b2f)