Welcome, Guest. Please Login or Register.
October 31, 2024, 11:36:52 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  Avatar Upload « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Avatar Upload  (Read 18072 times)
sh00le
Noobie
*
Posts: 27


I love Counter Strike.

Avatar Upload
« on: December 10, 2002, 07:58:33 PM »
Reply with quote

First of all, sorry for my english.. :(

Ok, let's get down to business..

This little mod that I write that is making possible that users can upload their own avatars in Profile section..

Size of avatars (in KB) could be changed in Form Preferences and Settings or in Settings.php

Please if you have spare time and will download this mod and test it..

Thanks...

Avatar Upload
Logged
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:Avatar Upload
« Reply #1 on: December 10, 2002, 08:00:31 PM »
Reply with quote

Better move it to Mod Settings, because the Board Settings should not be changed.
Logged

mamba
Noobie
*
Posts: 3


Dendroaspis polylepis

WWW
Re:Avatar Upload
« Reply #2 on: December 10, 2002, 09:54:53 PM »
Reply with quote

Quote from: sh00le on December 10, 2002, 07:58:33 PMFirst of all, sorry for my english.. :(

no prob... :)

QuoteOk, let's get down to business..

This little mod that I write that is making possible that users can upload their own avatars in Profile section..

Size of avatars (in KB) could be changed in Form Preferences and Settings or in Settings.php

Please if you have spare time and will download this mod and test it..

Thanks...

Avatar Upload

Nice one :)
Logged
sh00le
Noobie
*
Posts: 27


I love Counter Strike.

Re:Avatar Upload
« Reply #3 on: December 10, 2002, 10:00:46 PM »
Reply with quote

Quote from: Daniel D. on December 10, 2002, 08:00:31 PMBetter move it to Mod Settings, because the Board Settings should not be changed.

Ok... I will make that tommorow.. :)

And ask again somebody to test my little mod... :)
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:Avatar Upload
« Reply #4 on: December 11, 2002, 06:16:27 AM »
Reply with quote

fantastic! I tried to make this mod and got stuck in the environment variables. You did excellently! However, in your next release may i suggest that you kick a custom error msg when the user attempts to upload something bigger than the image defined size, else the user may get confused as to why the upload is not working.  Also, maybe you can change the admin control to define width and highth parameters instead of file size. Finally for security purposes, perhaps you can consider allowing the admin define where these user avatars are uploaded.

Thanks a million and more for your efforts on this, I know how hard it was to make this up and it's been a very long awaited feature!
Logged

sh00le
Noobie
*
Posts: 27


I love Counter Strike.

Re:Avatar Upload
« Reply #5 on: December 11, 2002, 09:21:21 AM »
Reply with quote

Ahem.. :(
Well, this mod I was writing for about 3 hours.. :)
1/2 hour used for php coding and testing and another 2 and half hours browsing this forum, reading how to make a mod, making mod, trying to make package that works etc.. :)

But, Ok.. :) We will see how forum admins will use this "a very long awaited feature".. :)

I will see what I can do with image control, and other..
You will be notified.. :)

BTW, there is new version of avatar upload..
Now, size of avatar could be changed in Mod Settings

Temp download link
« Last Edit: December 11, 2002, 10:00:34 AM by sh00le » Logged
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:Avatar Upload
« Reply #6 on: December 11, 2002, 12:57:52 PM »
Reply with quote

cool Mod!!! My Boardmembers ask daily after something like that  :D

Great job!!

I try it tonight or tomorrow morning!!

Surfy
Logged
Surfy
Sr. Member
****
Posts: 458


I'm a llama!

Re:Avatar Upload
« Reply #7 on: December 11, 2002, 01:00:30 PM »
Reply with quote

Some sugestions:

- If a Userpic with the same name exists, then the original File should not be overwritten!!

- The Admin should can give heigh and with of the Pic

- Your Mod is very great  :o  ;D
Logged
sh00le
Noobie
*
Posts: 27


I love Counter Strike.

Re:Avatar Upload
« Reply #8 on: December 11, 2002, 01:16:13 PM »
Reply with quote

- If a Userpic with the same name exists, then the original File should not be overwritten!!

It can't be...
Try it..
Or, do I have a bug in mod?! :(


BTW what is with getimagesize function?! Is this working?! I would like to use that to check image with and heigh..

And later I will ask some other things..
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:Avatar Upload
« Reply #9 on: December 11, 2002, 04:20:29 PM »
Reply with quote

Getimagesize function is a left over from the perl yabb import code structer I believe and as of last reported it did not work as it was expected to. If you go to force width and hiegth in the settings what happened ( this may or may not have been corrected, to date I have not seen any reports saying it had been) is the image was forced to be that width and hiegth unconditionally. So if I had a 100x100 image, and I enabled image h and w and set it to 300 x 300, that image now becomes 300 x 300.
Logged

sh00le
Noobie
*
Posts: 27


I love Counter Strike.

Re:Avatar Upload
« Reply #10 on: December 11, 2002, 06:38:08 PM »
Reply with quote

Aha... cool.. :)

Ok, a few questions..

- error reporting?!
(Yes or No) Should users know why their avatar is not loaded?

- custom avatar directory?!
Why?! Is it really necessary? What you get with that? And finally, who makes those directories? Admin via FTP, or mod itself?!
Logged
Wiziwig
Sr. Member
****
Posts: 407


Programmer and Users Liason and Manager

WWW
Re:Avatar Upload
« Reply #11 on: December 11, 2002, 07:16:04 PM »
Reply with quote

Absolutly the users should know why their avatar was not loaded, you think about it.. you are a typical "not knowledged" user struggling with this "new supposidly cool" web site. You find yourself in a profile edit and try to upload a image of yourself, nothing happens. Well gee, that sucks, let's whine at the webadministrator. Why we are at it, let's go and complain to our buddys about this site.

Custom avatar directory,
1. consider that most of us admins have the yabbse directory chmod'd 750 or lower, and that we dont want our users to file browse the directorys.
2. Why force us to mix user images that we will want to keep track of and delete when neccessary with yabbse avatar images.

Because of those two reasons we should have the user images in a seperate directory that the webadmin would create via ftp outside of yabbse.


Quote from: sh00le on December 11, 2002, 06:38:08 PMAha... cool.. :)

Ok, a few questions..

- error reporting?!
(Yes or No) Should users know why their avatar is not loaded?

- custom avatar directory?!
Why?! Is it really necessary? What you get with that? And finally, who makes those directories? Admin via FTP, or mod itself?!
Logged

Lamper
Noobie
*
Posts: 5


ICQ - 173261418tomerdean516@hotmail.com WWW
Re:Avatar Upload
« Reply #12 on: December 27, 2003, 07:34:42 PM »
Reply with quote

Not good.

First I got the file as a winamp file.

Second I couldnt find some of the code that you said to search for.

Can you please send me those files needed to make it run, I have a new board so I dont have to worry about previous mods, I need the modded files:

Sources/Profile.php
Settings.php
Sources/Admin.php
english.lng

Thanks :)
Logged
Black Hawk
Jr. Member
**
Posts: 83


YaBB SE RULEZ!!

WWW
Re:Avatar Upload
« Reply #13 on: December 29, 2003, 08:25:30 PM »
Reply with quote

Quote from: Lamper on December 27, 2003, 07:34:42 PM
Not good.

First I got the file as a winamp file.

Second I couldnt find some of the code that you said to search for.

Can you please send me those files needed to make it run, I have a new board so I dont have to worry about previous mods, I need the modded files:

Sources/Profile.php
Settings.php
Sources/Admin.php
english.lng

Thanks :)


First off, the winamp file. It's default for me, I don't even need to change it, because I run it from boardmod. Run it in Notepad if you will. Second, I had the same problem, all of the steps, it couldn't find the code. Third; those files you need to get from your site, because they have all of the links and all to your site, not his. Hope I helped!
Logged

Always fear the hawk...
mandy
Noobie
*
Posts: 1


I'm a llama!

Re:Avatar Upload
« Reply #14 on: January 14, 2004, 02:55:20 PM »
Reply with quote

Your second link doesn't work!
can u fix it or send me the files?
Thanks!!
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  Avatar Upload « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.026 seconds with 20 queries.