PDA

View Full Version : Jewish bear upload script - HELP.



Jahova
01-07-2008, 04:11 PM
This code, I beleive;

$notices[] = 'Thanks for uploading! Your uploaded file can be found here: <a href="' . $fulldir . 'img/' . $genName . $extension .'">' . $fulldir . 'img/' . $genName . $extension . '</a>';

Makes the image's url show up when I upload my image.
This works fine and I am having no problems.

What I want is, to change this, so the url shows up in a box like..
http://uploadpicz.com/images/N7PHTSX.png

And also add another one of them below it, which will show.
[IMGhttp://www.url.com/image/IMG] with the ][ ya know.

Yeah, so please help, I am offering rep =D

Trigs
01-07-2008, 04:39 PM
<textarea cols=20 rows=2> <? echo '<a href=\"' . $fulldir . 'img/' . $genName . $extension.'</a>'"; ?> </textarea>

Jahova
01-07-2008, 05:08 PM
Unfortunatley, that is not working and is messed up.

Agnostic Bear
01-07-2008, 05:18 PM
<textarea cols=20 rows=2> <? echo '<a href=\"' . $fulldir . 'img/' . $genName . $extension.'</a>'"; ?> </textarea>

Desist coding.

Tom:
$notices[] = 'Thanks for uploading! Your uploaded file can be found here: <input type="text" value="' . $fulldir . 'img/' . $genName . $extension . '">';

Jahova
01-07-2008, 05:26 PM
One more Q. -
When I upload an image.
The image link and thumbnail are both broken as they show image.PNG
Notice the capital .PNG - And on my webserver they are lowercase.
This makes the links break, but when I visit the image with a lowecase .png they work.

I don't know how to fix it, but please help =D

Jebbo
01-07-2008, 09:20 PM
where it says the alound image extentions copy and paste all the extentions eg. .jpg, .png, .gif and paste them next to them and change the ones you just pasted with .JPG, .PNG, .GIF and it should work.

Jahova
02-07-2008, 03:27 PM
Thanks guys, +REP.

Want to hide these adverts? Register an account for free!