Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-05-2008, 09:02 PM   #1
d-null
. . .
 
d-null's Avatar
 
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
how difficult would this script be in php to write?

I am thinking of a standalone php script that would put up a neat column and row page of images that don't change, out of a folder of images that could be added too.... for example, if there are 9 images in the folder, it will display three rows of three columns, but if I later add more images to the folder, it will automatically display more rows so that all the pictures are displayed on the single page....

the script would have nothing to do with the adding of pictures, it would only need to look in that folder and work with what it finds there

how long would it take an average php programmer to script something like that?
__________________

__________________

Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
Check out the #1 WordPress SEO Plugin: CyberSEO Suite
d-null is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-05-2008, 09:13 PM   #2
jimbona
Confirmed User
 
Join Date: Jan 2007
Posts: 190
Heres a simple way to do it

PHP Code:
<?php
$i
=1;
$mid=3;
foreach (
glob("{*.jpg,*.JPG,*.gif,*.GIF}",GLOB_BRACE) as $file
{
   echo 
'<a href="./'.$file.'"><img src="./thumbs/'.$file.'" border="0" width="100" hspace="5" vspace="5"></a>';
   if(
$i == $mid)
   {
        echo 
"<br />";
       
$i=0;
   }
   
$i++;
}
?>
Drop the file into the same dir as you images in the structure of

/index.php
/thumbs/

for example.

All your images and thumbs need to have the same name.
Change $mid to the number of images you want per row.
__________________
Thanks
Paul
Thunder-Ball.net - Member
jimbona is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-05-2008, 09:15 PM   #3
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
An hour. That includes turning on the computer, getting coffee, getting distracted by a porn flick, and having two cigarette breaks.

I suppose it could be done in 5 minutes, but then the programmer would miss out on a cup of coffee, two cigarettes and a decent porn scene.
__________________
/(bb|[^b]{2})/
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-05-2008, 09:58 PM   #4
d-null
. . .
 
d-null's Avatar
 
Industry Role:
Join Date: Apr 2007
Location: NY
Posts: 13,724
thanks jimbona, I'll give that a try and let you know how I make out
__________________

__________________

Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
Check out the #1 WordPress SEO Plugin: CyberSEO Suite
d-null is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.