#1 2002-12-11 12:13:50

Banned

JPG, GIF, PNG

Some people reported that they cant upload thier photo. I presume that this happens couse photo is in JPG format (not jpg with small fonts). I have looked in upload.php file where i could add big fonts (JPG) too, but its little hard for me to add that couse i m newbie in PHP. Can you please help me? 
Thanks alot,
Lucifix

** Broken link**

 

#2 2002-12-11 12:18:43

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13911

Re: JPG, GIF, PNG

in upload.php (version 1.2) line 34, replace

Code:

if ( $extension != 'gif' && $extension != 'jpg' && $extension != 'png' )

by

Code:

if ( $extension != 'gif' && $extension != 'jpg' && $extension != 'png' && $extension != 'GIF' && $extension != 'JPG' && $extension != 'PNG' )

Offline

 

#3 2002-12-11 12:27:54

Banned

Re: JPG, GIF, PNG

Thanks, that works now :)
One more thing... about e-mail.
I have tried to add my e-mail which is (Lucifix_ND@hotmail.com). But the script rejected it. I found out why. I am using big fonts ND (Lucifix_ND...)
So i have to typed Lucifix_nd@hotmail.com. I have figured that out, but some of new users wont :(
Got any idea where to change that? maybe in upload.php?
I think its in this line:

if( !ereg( "([_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)+)", $HTTP_POST_VARS['mail_address'] ) )
        {
            $error[$i++] = $lang['reg_err_mail_address'];
        }

I would change that when users uploads photo and when they register.
PS: i never get so quick and usefull help, but here...  :D 

Lucifix

 

#4 2002-12-11 12:37:37

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13911

Re: JPG, GIF, PNG

if you want case insensitivity, change ereg by eregi (i for insensitive). Chage it in upload.php and register.php

Offline

 

#5 2002-12-11 12:56:06

Banned

Re: JPG, GIF, PNG

one more thing  :oops: 

I would like to add one other funcion in menu on low left side where visitors see: register, find and information.

I would like to add link to login. like this:
register (register.php)
login (identification.php)
search (search.php)
information (....php)

In diapo.php maybe? or has anyone else asked the same question like i did, but i didnt find it in this forum.
TY,
Lucifix

 

#6 2002-12-11 12:59:08

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13911

Offline

 

#7 2002-12-11 22:16:15

darkcarnival
Member
2002-12-04
32

Re: JPG, GIF, PNG

i got a question that fits this post, is there a way to mod the upload.php script so it accepts .bmp pics? cause i found out some people tried sendin that type in and wouldnt let them.thanks.


a metal fan? check out Metal Station: http://metalstation.4gigs.com/

Offline

 

#8 2002-12-11 23:44:42

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13911

Re: JPG, GIF, PNG

bmp format is not support. Anyway it's totally forbidden on internet...

Offline

 

#9 2002-12-12 02:18:14

darkcarnival
Member
2002-12-04
32

Re: JPG, GIF, PNG

bmp format is not support. Anyway it's totally forbidden on internet...

internet...

ok so is there a way i can put that on there and any other kind of text?


a metal fan? check out Metal Station: http://metalstation.4gigs.com/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact