Help - Search - Member List - Calendar
Full Version: want a correct value
Krazy Letter Forums > Members stuff > Computer Programs > PHPKImageHost > Help!
NetDeAMoN
Hello All

I want to know the correct value of the filed in Admin section that is

Days before inaccessed files are deleted? = ?????

because after 2,3 days a default image shown instead of the orignal image.

what value or number of days i must enter there to prevent the images forever ?


any help will be appritiated in this regard

netdeamon@gmail.com
Red89GT
You can put any number you want. For instance I have mine set to 30 days of no activity.
lappy512
If you don't want to get them deleted, just put in a insanely high number, eg, 99999.
NeTdEaMoN
QUOTE(lappy512 @ Feb 11 2006, 09:44 PM)
If you don't want to get them deleted, just put in a insanely high number, eg, 99999.
*



YEs I already did many 9s 999999999999999999999999

one thing more when some one upload a pic script give him a HTML and BBCODE

thos code is for thumb images

i mean script always give him a code of thumb image not the actual file


how to fix this ?
Mynck
QUOTE(NeTdEaMoN @ Feb 12 2006, 02:57 AM)
YEs I already did many 9s  999999999999999999999999

one thing more when some one upload a pic script give him a HTML and BBCODE

thos code is for thumb images

i mean script always give him a code of thumb image not the actual file
how to fix this ?
*



That number is probably higher than the variable can hold. tongue.gif
And that can't be fixed. The image is kept inside a database, so there isn't a file. Right, lappy?
subc
the images are not kept inside any database, but on the 'uploads' folder. they are the numbers without extension that show up there. Also the thumbs are kept in that place.

The extension is added whenever someone views the files with the script.
Guest
Yep, those are created using .htaccess.

Another way is to delete fakecron.php, that will prevent images from being deleted (because that's what it does), and remove it from footer.php.
Guest
That was Lappy512, by the way.
NeTdEaMoN
QUOTE(Guest @ Feb 12 2006, 05:39 PM)
That was Lappy512, by the way.
*




Boss my question is still there, That after uploading a image it always give me the code of thumb image .

i.e


HTML:
CODE
<a href='http://www.mydomain.com/image-upload/view/149'><img src='http://www.mydomain.com/image-upload/thumb/149.jpeg'></a>


BBCODE :
CODE
[url=http://www.mydomain.com/image-upload/view/149][img]http://www.mydomain.com/image-upload/thumb/149.jpeg[/img][/url]


it must be give the code of actual sized file like

BBCODE :
CODE
[url=http://www.mydomain.com/image-upload/view/149][img]http://www.mydomain.com/image-upload/149.jpeg[/img][/url]



now plz tell me how to fix it.
Threatcon
edit process.php

FIND:
CODE
<br/>BBCODE: <input type="text" name="thetext" size="40" value="[url=<?php echo $siteurl; ?>view/<?php echo $id; ?>][img]<?php echo $siteurl; ?>thumb/<?php echo $id; ?>.jpeg[/img][/url]"></FORM>


REPLACE WITH:
CODE
<br/>BBCODE: <input type="text" name="thetext" size="40" value="[url=<?php echo $siteurl; ?>image/<?php echo $id; ?>.jpeg][img]<?php echo $siteurl; ?>thumb/<?php echo $id; ?>.jpeg[/img][/url]"></FORM>



wink.gif
lappy512
http://www.mydomain.com/image-upload/image/123.jpeg

Theatacon, I think you misunderstood, you made the thumbnail directly link to the image. He wants the image to link to the viewer? If I understand right?

And NeTdEaMoN, I'm providing a free service. Please do not make demands. Try and look at the code yourself. it's in process.php, near the end of the file.
Threatcon
CODE
<br/>BBCODE: <input type="text" name="thetext" size="40" value="[url=<?php echo $siteurl; ?>view/<?php echo $id; ?>][img]<?php echo $siteurl; ?>image/<?php echo $id; ?>.jpeg][/img][/url]"></FORM>


Like so then to link the full size image to the view.php image.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.