Help - Search - Member List - Calendar
Full Version: Nice script suggestion
Krazy Letter Forums > Members stuff > Computer Programs > PHPKImageHost
Gekkie
* As mentioned before would be cool if each filename gets its own name instead of 1 / 2 ect.

* The install box of the sitename is now limited to 30 ? was to small for my image location i suggest you increase the maxsize to 50/60 characters

* Possible to create a new dir every day ? say /upload/year/month/day
/upload/2005/12/1/image

* Next to that its a great script !!!
Gekkie
Changed some things :

header.php add this code before </head>
CODE

<script type="text/javascript">

function highlight(field) {
field.focus();
  field.select();
}
-->
</script>


then open process.php find :
CODE

<FORM action="nowhere" method="post">
HTML: <input type="text" name="thetext" size="40" value="<a href='<?php echo $siteurl; ?>view/<?php echo $row['id']; ?>'><img src='<?php echo $siteurl; ?>thumb/<?php echo $row['id']; ?>.jpeg'></a>">
<br/>BBCODE: <input type="text" name="thetext" size="40" value="[url=<?php echo $siteurl; ?>view/<?php echo $row['id']; ?>][img]<?php echo $siteurl; ?>thumb/<?php echo $row['id']; ?>.jpeg[/img][/url]"></FORM>
<br/>URL: <a href='<?php echo $siteurl; ?>image/<?php echo $row['id']; ?>.jpeg'><?php echo $siteurl; ?>image/<?php echo $row['id']; ?>.jpeg</a>


replace it by
CODE

<input onclick="highlight(this);" style="width: 500px;" size="70" value="<a href='<?php echo $siteurl; ?>view/<?php echo $row['id']; ?>'><img src='<?php echo $siteurl; ?>thumb/<?php echo $row['id']; ?>.jpeg'></a>" type="text"> Thumbnail for Websites<br><br>

<input onclick="highlight(this);" style="width: 500px;" size="70" value="[URL=<?php echo $siteurl; ?>view/<?php echo $row['id']; ?>][IMG]<?php echo $siteurl; ?>thumb/<?php echo $row['id']; ?>.jpeg[/IMG][/URL]" type="text"> Thumbnail for forums (1)<br><br>

<input onclick="highlight(this);" style="width: 500px;" size="70" value="[url=<?php echo $siteurl; ?>view/<?php echo $row['id']; ?>][img=<?php echo $siteurl; ?>thumb/<?php echo $row['id']; ?>.jpeg][/url]" type="text"> Thumbnail for forums (2)<br><br>

<input onclick="highlight(this);" style="width: 500px;" size="70" value="[URL=http://<?php echo $siteurl; ?>][IMG]<?php echo $siteurl; ?>view/<?php echo $row['id']; ?>[/IMG][/URL]" type="text"> Hotlink for forums (1)<br><br>

<input onclick="highlight(this);" style="width: 500px;" size="70" value="[url=<?php echo $siteurl; ?>][img=<?php echo $siteurl; ?>image/<?php echo $row['id']; ?>.jpeg][/url]" type="text"> Hotlink for forums (2)<br><br>

<input onclick="highlight(this);" style="width: 500px;" size="70" value="&lt;a href=&quot;<?php echo $siteurl; ?>&quot;&gt;&lt;img src=&quot;<?php echo $siteurl; ?>image/<?php echo $row['id']; ?>.jpeg&quot; border=&quot;0&quot; alt=&quot;Image Hosted by <?php echo $siteurl; ?>&quot; /&gt;&lt;/a&gt;" type="text"> Hotlink for Websites<br><br>

<input onclick="highlight(this);" style="width: 500px;" size="70" value="<?php echo $siteurl; ?>image/<?php echo $row['id']; ?>.jpeg" type="text"> <a href="<?php echo $siteurl; ?>image/<?php echo $row['id']; ?>.jpeg" target="_blank">Show</a> image to friends<br><br>  


You can see it in action here :
http://www.lindsaylohan.nl/imagehost0.6/

Still testing other things.

lappy512
cool, I'll add that to the next version!

I am not working on this project right now, but I'll start working on it again in one to two weeks; just want a stable version to stay right now. smile.gif

The dirs aren't actually created, they are "made" using mod_rewrite.

The only problem I see right now is that it would be easier to remember bla/image/243.jpeg, than 2a68979b6897ab6987.jpeg. Also, users need to know that whenever they upload something, it's always visible to others, no matter what.
Gekkie
QUOTE(lappy512 @ Dec 2 2005, 08:27 AM)
cool, I'll add that to the next version!

I am not working on this project right now, but I'll start working on it again in one to two weeks; just want a stable version to stay right now. smile.gif

The dirs aren't actually created, they are "made" using mod_rewrite.

The only problem I see right now is that it would be easier to remember bla/image/243.jpeg, than 2a68979b6897ab6987.jpeg. Also, users need to know that whenever they upload something, it's always visible to others, no matter what.
*



A major problem with putting everthing in 1 dir that it can get huge. Say 100.000 images + thumbs almost impossible to list them all. isn't it possbile to give the image the name of the current image + the id.
Gekkie
Number of vieuws: 10
Size of image: 111.26 kb

Added the amount of download and the filesize in kb biggrin.gif
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.