#39196
12/09/2000 11:45 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
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: ------------------ I got also UBB hacks database
|
|
|
#39198
12/10/2000 2:48 AM
|
Joined: Dec 2000
Posts: 595
Member
|
Member
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
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
|
|
|
#39200
12/10/2000 5:30 AM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
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 ------------------ I got also UBB hacks database
|
|
|
#39202
12/10/2000 8:13 AM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
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
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 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
Joined: Oct 2000
Posts: 966 |
Ahhaaaa.. good work.. Hope I can get this to work right, would LOVE this hack.. ------------------
|
|
|
#39205
12/11/2000 12:30 AM
|
Joined: Jul 2000
Posts: 610
Member
|
Member
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
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
Joined: Jul 2000
Posts: 610 |
Still same blank page ------------------ I got also UBB hacks database
|
|
|
#39208
12/19/2000 9:51 PM
|
Joined: Dec 2000
Posts: 595
Member
|
Member
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
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
|
|
|
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.
|
|
Posts: 808
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|