Previous Thread
Next Thread
Print Thread
Hop To
#239309 09/07/2010 1:34 AM
Joined: Mar 2007
Posts: 36
Likes: 1
B
BB
Offline
Newbie
Newbie
B Offline
Joined: Mar 2007
Posts: 36
Likes: 1
Hi,

Uploading an avatar isn't working. Not sure if it's a bug or a config issue. Here are the details:

When a user uploads an avatar on the "Edit Profile" page the response is "Your settings have been updated."

The uploaded file does not appear in either images/avatars directory of in uploads.

The HTML code of the response page with "Your current avatar" shows that it's trying to find the profile image in server root / .

UBB version is 7.5.6.

The following directories are world writable:
images/avatars
uploads

Users are allowed to upload avatar.

Thanks much for your help!

BB #239310 09/07/2010 6:31 AM
Joined: Jan 2008
Posts: 514
addict
addict
Joined: Jan 2008
Posts: 514
I have had this problem before as well. Mine was a permissions issue to the user_avatars folder (I think it is found in the images folder). Quick way to find it is go to the CP go down to tools, and look for permissions.... it will do a check for the permissions to see if it can read/write to the file.

Dunny

BB #239315 09/07/2010 11:33 AM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
1. you can have the uploaded avatar folder anywhere on your site
2. the KEY is making the path (HDD directory location) and the URL (web URI to get to that directory) match

sooo.. for example, lets take someone who is hosted on Mindraven as a case in point.

lets assume they are going to make it it's own dir under the threads install (which is already in the 'forums' directory)

lets assume the domain is named teehee.com

lets also assume the avatars will be stored in a directory called 'avvys' under the 'forums' directory

so the HDD path will be: /home/teehee/public_html/forums/avvys (no trailing slash)

then the URL to the avatars will be http://teehee.com/forums/avvys

then CHMOD the avvys dir to 777 and you will be good to go

when you setup the avatar paths, you can pre-test that it is working also, by going to http://teehee.com/forums/admin/profiles.php and click to test the avatar upload storage directory

note: replace 'teehee.com' with your domain and 'forums' with the actual path to your forums like 'forum', 'ubbthreads', 'community' whatever..

also the /home dealio is for the Mindraven servers (CentOS). some other paths are setup different (but very similar). You'd get the idea how it works by going to your cpanel paths like: http://teehee.com/forums/admin/paths_db.php to see the subtle differences there.

smile

BB #239319 09/07/2010 12:29 PM
Joined: Mar 2007
Posts: 36
Likes: 1
B
BB
Offline
Newbie
Newbie
B Offline
Joined: Mar 2007
Posts: 36
Likes: 1
Thank you, Dunny & Sirdude!

I check perms and they all are OK. I haven't changed any default locations. What is the default location of user avatars?

cache (OK)
cache_builders/custom (OK)
gallery/default/full (OK)
gallery/default/medium (OK)
gallery/default/thumbs (OK)
gallery/index.html/full (OK)
gallery/index.html/medium (OK)
gallery/index.html/thumbs (OK)
images/avatars/default (OK)
images/forumimages/default (OK)
images/graemlins/default_dark (OK)
images/graemlins/default (OK)
images/icons/default_dark (OK)
images/icons/default (OK)
images/markup_panel/default_dark (OK)
images/markup_panel/default (OK)
images/news/default_dark (OK)
images/news/default (OK)
images/news/.svn (OK)
images/moods/default_dark (OK)
images/moods/default (OK)
includes (OK)
languages/english (OK)
languages/english/admin (OK)
sessions (OK)
styles (OK)
templates/default (OK)
tmp (OK)

BB #239320 09/07/2010 12:36 PM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
default location of uploaded avatars is prolly BLANK for a new install..

you'll need to go to the http://teehee.com/forums/admin/profiles.php

link in your control panel and set it up

note: 'teehee.com/forums' should be replaced with YOUR boards location

BB #239321 09/07/2010 12:46 PM
Joined: Mar 2007
Posts: 36
Likes: 1
B
BB
Offline
Newbie
Newbie
B Offline
Joined: Mar 2007
Posts: 36
Likes: 1
Thank you, Sirdude! That did it.

If developers are reading this, may I suggest assigning a default location for the user avatars.

Thanks everyone!

BB #239322 09/07/2010 1:24 PM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
Glad you got it working! smile

BB #239323 09/07/2010 1:30 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Reading the php config and spewing out some "assumed" default directories might be a good idea (for new installs) actually...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
BB #239327 09/07/2010 1:57 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
v8 will have default directories created for file uploads and avatars for new installs.

BB #239329 09/07/2010 6:58 PM
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Well I hope that we can override the default directories.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
BB #239330 09/07/2010 7:23 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Well, I doubt rick would lock us into anything... And default usually means they can be changed...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
BB #239331 09/07/2010 7:30 PM
Joined: Jan 2008
Posts: 514
addict
addict
Joined: Jan 2008
Posts: 514
yeah but just to get under Ruben's skin I say the first release locks it just for him... we will call the first version Ruben install tongue

Dunny

BB #239332 09/07/2010 7:34 PM
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
He He He.
Yea it is just I don't like being tied to a specific directory.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (ahmed047), 624 guests, and 172 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)