Previous Thread
Next Thread
Print Thread
Rate Thread
#39195 12/09/2000 11:28 PM
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
^^

This is an utility to use with the Avatar Mod.

Need to have CGI and Image::Size modules intalled on the server. These can be found on http://www.cpan.org

http://banco.jogosonline.com.br/avatars/uploadavatar.zip

Demo
http://banco.jogosonline.com.br/avatars/uploadavatar.htm

User: test
Pass: test
(gif, 60x60, max 50kb).

Thanks guys that helped me with this one.

signing out. tired

------------------
=^_^=

Sponsored Links
#39196 12/09/2000 11:45 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Cool! Nice job.

------------------

Hack Developer of the Ultimate Bulletin Board.
Due to time limitation, I do not offer support Via. E-mail or AIM. Please post on the forums.

Regards,
MasterMind

#39197 12/10/2000 2:44 AM
Joined: Jul 2000
Posts: 610
Member
Member
Offline
Joined: Jul 2000
Posts: 610
Great idea,

I got some problems if i try to upload a image
I get an ISE with this error:
Quote
quote:
------------------

I got also UBB hacks database

#39198 12/10/2000 2:48 AM
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
you need to install the module Image::Size

www.cpan.org

need to ask your server admin to set it so it can be used like "use Image::Size;"

just to be easier
http://www.cpan.org/authors/id/R/RJ/RJRAY/Image-Size-2.91.tar.gz

this is the one i used

------------------
=^_^=

This message has been edited by CopyCat on December 10, 2000 at 01:52 AM

#39199 12/10/2000 3:19 AM
Joined: Jul 2000
Posts: 610
Member
Member
Offline
Joined: Jul 2000
Posts: 610
Hmmm,
Is there a way to let work this without installing the module Image::Size

Becouse i am on a free webserver since my server is down couple months ago.

------------------

I got also UBB hacks database

Sponsored Links
#39200 12/10/2000 5:30 AM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
I believe there is a way to install it yourself, on your own server..

------------------

Hack Developer of the Ultimate Bulletin Board.
Due to time limitation, I do not offer support Via. E-mail or AIM. Please post on the forums.

Regards,
MasterMind

#39201 12/10/2000 8:04 AM
Joined: Jul 2000
Posts: 610
Member
Member
Offline
Joined: Jul 2000
Posts: 610
Yeap i saw the file above but my own server is NT and it gives to much problems on UBB with hacks.
I am looking for a new webspace and a new domain name, this board i have is for testing. On hypermarts servers.

But i think it works without that module to but you just cant check the file sizes, but i cant figgur out yet how it works [Linked Image]

------------------

I got also UBB hacks database

#39202 12/10/2000 8:13 AM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
For some reason I can't access my stupid UNIX server library, so I can't install the Image::Size module...

------------------

Hack Developer of the Ultimate Bulletin Board.
Due to time limitation, I do not offer support Via. E-mail or AIM. Please post on the forums.

Regards,
MasterMind

#39203 12/10/2000 10:27 AM
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
well, i heard this pms are just libraries

dunno if it can be uploaded, chmod 744, then "require (library);" on them instead "Use Image::Size;". I didnt try it, if you guys want to test.

mark said something about this
Quote
quote:
Im also concerned about the temporary file CGI.pm creates. Dunno if the script must delete it or if its deleted automatically after the script ends.

Answering Spawn about the use or not of image::size, you cant check the file width and height sizes AND cant check if the file is an image or not. The user will have the ability to upload anything he likes to your server, renamed to GIF or JPG, that is. Image::Size is used also to check to the bit if the file is an image.

Some threads:
any quick code to discover if a file is jpg or gif?
that atachment hack is too complicated...
Image info

------------------
=^_^=

This message has been edited by CopyCat on December 10, 2000 at 10:09 AM

#39204 12/10/2000 1:50 PM
Joined: Oct 2000
Posts: 966
Member
Member
Offline
Joined: Oct 2000
Posts: 966
Ahhaaaa.. good work..

Hope I can get this to work right, would LOVE this hack..

------------------

Sponsored Links
#39205 12/11/2000 12:30 AM
Joined: Jul 2000
Posts: 610
Member
Member
Offline
Joined: Jul 2000
Posts: 610
CopyCat,

I tryed your and Marks idea.
Made an Image directory in my cgi directory and put CGI.pm and Size.pm in there with #!/usr/bin/perl/Image and chmod them to 755

This give me a blank screen when i try to upload.

I tryed the another idea:
I place Size.pm and CGI.pm in my cgi directory chmod them to 755 and require the bolth files in the uploadavatar.pl.

This also give me a blank page when i try to upload a avatar.

------------------

I got also UBB hacks database

#39206 12/11/2000 12:43 AM
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
mm

im pretty sure your server has CGI.pm installed already (because most servers that provide perl cgi have this one).

Did you tried to use
use lib '/whatever/path/to/Image';
then "Use Image::Size"?
maybe just "use lib '/whatever/path/to';"

oh and put 744 on them, i think both are only for reading.

ps: maybe size.pm requires other files in that zip too

------------------
=^_^=

This message has been edited by CopyCat on December 10, 2000 at 11:45 PM

#39207 12/11/2000 3:16 AM
Joined: Jul 2000
Posts: 610
Member
Member
Offline
Joined: Jul 2000
Posts: 610
Still same blank page [Linked Image]

------------------

I got also UBB hacks database

#39208 12/19/2000 9:51 PM
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
just updating this (ubbdev had some problems and the backup was old)

- added toggle to use member's usernames instead member numbers
- added script deleteavatar.pl (standalone script)
- added toggle to send deleteavatar link with e-mail
- fixed "bug" with option 'do not use width height control' (width and height of image shown after uploading was broken)
- added toggle 'dont use size.pm'; you cant do many things without it though

------------------

#39209 01/19/2001 11:37 PM
Joined: Dec 2000
Posts: 30
Member
Member
Offline
Joined: Dec 2000
Posts: 30
how would i make this so only admins and moderators could upload their customs, while regular users use the normal selection

#39210 01/20/2001 12:03 AM
Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
now you can

- Added toggle Only Administrators and Moderators can send Custom Avatars

just download again the zip
http://banco.jogosonline.com.br/avatars/uploadavatar.zip

old versions:
http://banco.jogosonline.com.br/avatars/uploadavatar13.zip
http://banco.jogosonline.com.br/avatars/uploadavatar12.zip

see if its working..

------------------

it's a matter of time and knowledge


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
hatter
hatter
USA
Posts: 69
Joined: January 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 20221218)