Author : Lonewolf


Reply
Reply
 
Thread Tools Display Modes
blankslatejoe's Avatar
Old (#1)
A few months ago someone posted a PHP file that would take a bunch of random images in a web directory and display them in a nice simple table with clickable thumbnails. Does anyone remember or have a link to the file?
-joe
Offline , dedicated polycounter, 1,853 Posts, Join Date Oct 2004, Location Boston Suburbs  
   Reply With Quote

thnom's Avatar
Old (#2)
I don't think it was mine but at one point I released (I believe) the code to this.

http://www.heads.thnom.com/female.php

The code to this works like that.. I shall find the code and post that; does the job even if it isn't the one you are thinking about
Offline , polygon, 624 Posts, Join Date Oct 2004, Location Leeds, England  
   Reply With Quote

thnom's Avatar
Old (#3)
<font class="small">Code:</font><hr /><pre>

&lt;?php
//for every file in IMG_DIR, export to txt and load up thumbnail
$IMG_DIR = "thumbs/female/";
$LINK_URL = "female/";
$eTxt=file('female.txt');

//$files = (scandir($LINK_URL));
$currentDir = "female";
$currentFile = fopen("female.txt", "w+");

if ($handle = opendir($currentDir)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." &amp;&amp; $file != "..") {
fwrite($currentFile, "$file\n");
}
}
closedir($handle);
}

foreach ($eTxt as $imageName) {
?&gt;
&lt;a href="&lt;?php echo $LINK_URL,$imageName ?&gt;"&gt;&lt;img src="&lt;?php echo $IMG_DIR,$imageName ?&gt;" width="75" height="75" border="0" alt="&lt;?php echo $imageName ?&gt;"&gt;&lt;/a&gt;

&lt;?
}
?&gt;</pre><hr />

In this instance the thumbnail directory acts as the main bit of code to displaying images.
Offline , polygon, 624 Posts, Join Date Oct 2004, Location Leeds, England  
   Reply With Quote

Eric Chadwick's Avatar
Old (#4)
Hey Joe, whaddaya know...
http://boards.polycount.net/showflat...age=0&amp;vc=1
Offline , Polycount.com Editor, 6,763 Posts, Join Date Oct 2004, Location Boston USA  
   Reply With Quote

blankslatejoe's Avatar
Old (#5)
fannntastic. thanksto both of you--these were exactly what I was looking for!
Offline , dedicated polycounter, 1,853 Posts, Join Date Oct 2004, Location Boston Suburbs  
   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright 1998-2012 A. Risch