Previous Thread
Next Thread
Print Thread
Rate Thread
#218390 06/09/2002 4:47 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
My users are begging for avatars they can upload, because many don't have websites, or they use hosts that you can't directly link to pics from so they can't have avatars. Just something simple like VB uses is all that's needed. Just allow people to go to their profile, select the upload option, pick the file, make sure it fits within the given requirements, and its all set.

That's all I ask

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Do you mean so they can use that for their "picture" in their profile? If so the option to upload a graphic such as .jpg or .gif or .png is already an option. In your config.inc.php find these lines and edit accordingly:

// If allowing pictures you can also let users upload these pictures to your
// server. By specifying a path this will allow users to upload .gif, .jpg
// or .png files to that directory. You must make the directory
// world_writeable as well. If no path specified, then users will need to
// provide a url to their picture.
$config['avatars'] = "/users1/c/chattersonline.com-03029/public_html/test/images";

// If a path was specified above, we need to know the full url to that
// directory (Partial url will not work)
$config['avatarurl'] = "http://www.chattersonline.com/test/images";

// If allowing users to upload their pictures, enter the maximum size
// in bytes.
$config['avatarsize'] = "20000";


Or is this something else such as an "avatar gallery" that you are suggesting?


Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
actually, let me try that. That would probably work. I don't see the need for a gallery really since most people want to post pictures of their vehicles, who wants to have someone elses vehicle under their name? haha

Thanks for the help!

[EDIT] edited out my own stupidity

Last edited by msula; 06/09/2002 9:17 PM.
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
ok, got that working.. now one last question and I'll shut up

It now says "Your picture (80x80 max pixels, may be smaller) (.gif, .jpg, .png accepted)
" just above where to select your image. I want to disable the pixel requirement and make it say no bigger than 12000 bytes or whatever my filesize may be instead.

I looked through the config file, don't see that anywhere

Joined: Jan 2000
Posts: 796
MTO Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
You may set the maximum width and height for the pictures in "Edit Theme Settings".

The problem is, I believe that setting to something higher is dangerous because if I am not wrong, when displaying the pictures in your posts, the maximum width and height is put into it.
Maybe there should be another option, asking what weight and height to show the pictures in. Not necessarily the width and height you allow to upload.

Sponsored Links
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
Joined: Feb 2002
Posts: 1,759
thanks, I forgot where to change that again


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)