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 09-16-2007, 03:53 PM   #1
million
Confirmed User
 
Join Date: Apr 2006
Location: Pornyland
Posts: 789
good free/cheap gallery builder?

Hey guys, Im looking for a script to build galleries like those you put inside a directory and it builds a gallery with the pics inside (it should also resize them). I've been looking in hotscripts but haven't found one I like yet.

Ideas?
__________________
<sig spot goes here>
million is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-16-2007, 05:30 PM   #2
million
Confirmed User
 
Join Date: Apr 2006
Location: Pornyland
Posts: 789
bumpityyyy!
__________________
<sig spot goes here>
million is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-16-2007, 07:24 PM   #3
million
Confirmed User
 
Join Date: Apr 2006
Location: Pornyland
Posts: 789
Ok, last chance or I will go back to hotscripts
__________________
<sig spot goes here>
million is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2007, 12:41 AM   #4
AGS-17
Confirmed User
 
Join Date: May 2005
Posts: 1,402
bump...!!!
AGS-17 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2007, 01:35 AM   #5
Avery
Confirmed User
 
Join Date: Feb 2007
Posts: 450
Good luck mate.
__________________
Avery is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2007, 05:21 AM   #6
tenderobject
Need Designs? 312352846
 
Industry Role:
Join Date: Dec 2004
Location: Somewhere
Posts: 11,688
uugallery for wordpress plugin and arylia.. thats all i know not cheap/free though
__________________


NEED DESIGNS?!?
tenderobject is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2007, 05:28 AM   #7
bobby666
boots are my religion
 
bobby666's Avatar
 
Join Date: Nov 2005
Location: Heart of europe
Posts: 21,765
try arles image webpage creator

and it's free
__________________
bobby666 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2007, 05:37 AM   #8
tolik
Confirmed User
 
Join Date: Jun 2001
Location: inside my brain
Posts: 2,035
sent you message via icq.
__________________
LONGBUCKS-Teen, Mature, Reality, Gay sites.
Free hosting (cgi/php/mysql/cron etc). FHGs. Free content.Great rebills. Support icq - 313-882-945


Webmaster friendly high recommended programs to promote (personal experience):
RoyalCash-Teen ProfitX -Video SmokinCash-Amateur,Lesbo,Squirting
tolik is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-17-2007, 05:50 AM   #9
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Here is one... just copy and paste into a file named index.php and upload it to each directory that has pics (chmod the directory to 777). Has automatic paging and everything built in ;)

PHP Code:
<?php

#########################################################
# Set the following configuration variables if you don't#
# want to use the defaults. We suggest giving the script#
# a test-run with the defaults to see how it looks, then#
# deleting the auto generated thumbnails and making any #
# desired changes to the settings. When you load up the #
# script again, new thumbs will be generated.           # 
#########################################################

# Path to HTML template which contains the %output% token, if you
# want to use your own template. Defaults to built-in template.
# If you create your own, just stick %output% in the HTML file
# wherever you want the gallery output to appear.

$template "";

# Here are the width and height settings for thumbnails. In most
# cases you will want to specify a value for one of these, and set
# the other one to 0, this enables the auto ratio calculations.
# If you set both to nonzero values, your thumbnails will all
# be generated at the exact same height/width but they'll end up
# looking "warped" and out of proportion. You MUST set at least 
# one, either the height or the width.

# Desired width of thumbnails (or 0 for auto)
$thumbw 200;

# Desired height of thumbnails (or 0 for auto)
$thumbh 0;

# The thumbnails will be displayed in a table. The following 
# variables control the appearance of the table.

# $perrow = number of thumbnails to display in each row
$perrow 3;

# $perpage = number of images to display per page, this 
# really should be some multiple of $perrow
$perpage 9;

# Size of the border for the table, in pixels
$tableborder 0;

# Width of the table
$tablewidth "90%";

# Cell spacing for the table, in pixels
$cellspacing 3;

# Color of the table
$bgcolor "#f0f0f0";

# Font to use for displaying the table
$fontface "Verdana, Arial";

# Font size
$fontsize 2;

# You can have information about each image displayed below
# its thumbnail in the table. Use the following settings to
# toggle these displays on or off by setting to 1 or 0.

# Display file name
$showname 1;

# Display image coordinates
$showcoords 1;

# Display file size in KB
$showsize 1;

# If you want PHP to include() a header before displaying
# the gallery page, set the full system path here, e.g.
# /home/foo/public_html/gallery/header.php
$header '';

# If you want PHP to include() a footer after displaying
# the gallery page, set the full system path here, e.g.
# /home/foo/public_html/gallery/footer.php
$footer '';

# By default, thumbnails displayed in the gallery will link
# directly to the fullsize JPG. If you'd rather have them
# point somewhere else (for example to your own script that
# checks a user's cookie or tracks how many times each pic
# has been viewed), you can take advantage of the $linkurl
# variable. The %picname% token will be replaced automatically.
# For example you might want the thumbnails to link to 
# "/your/site/viewpic.php?image=%picname%" where viewpic.php
# is a script you wrote that counts the view and displays the
# image specified by %picname%
# If you do not need this capability, leave the default
# value, the default will work for most people.

$linkurl "%picname%";

#########################################################
# End of configuration variables                        #
#########################################################

set_time_limit(0);

#If there's no template file, use the default
if(!$template){
  
$template .= <<<EOT
<title>Displaying Gallery</title><body bgcolor="#FFFFFF"><center>
<hr noshade size="1"><font face="
$fontface" size="$fontsize">Click a thumbnail to view the full-size 
image</font></center><p align="center"><font face="
$fontface" size="$fontsize">%output%</font></p>
EOT;
}
else{
  
$template implode(""file($template));
}

#Open the cwd and build a list of JPG files
$jpegs = array();
$directory opendir(getcwd());
while(
$filename readdir($directory)){
  
#ignore . and .. as well as existing thumbnails
  
if((strlen($filename) > 2) && (strcasecmp(substr($filename05), 'thumb') != 0)){
    
$localext substr($filename, -3);
    if(
strcasecmp($localext'jpg') != 0)
      continue;
    else{
      
array_push($jpegs$filename);
    }
  }
}

sort($jpegs);
reset($jpegs);

#Now that we have the files, we need to create thumbs if
#they don't exist
foreach($jpegs as $var){
  if(!
file_exists("thumb$var")){
    if(!isset(
$pleasehold)){
      
$pleasehold 1;
      echo 
"<font face='$fontface' size='$fontsize'><b>One moment please...</b><br><br>New images were found in this gallery, and thumbnails must be made for them.<br><br>Processing images: ";
      
flush();
    }
    echo 
"<font face='$fontface' size='$fontsize'>$var... </font>";
    
flush();
    
makejpegthumb("$var"$thumbw$thumbh"thumb$var"100);
  }
}
if(
$pleasehold){
  echo 
"<font face='$fontface' size='$fontsize'><br><br><b>Thumbnails created!</b></font><br>";
}

#Build the navigation links
$nav "<center><font face='$fontface' size='$fontsize'>";
#$numlinks = round(count($jpegs)/$perpage, 0);
$numlinks = (int)ceil(count($jpegs)/$perpage);
$linkstart 1;
for(
$i=1$i<=$numlinks$i++){
  
$nav .= "<a href='$_SERVER[PHP_SELF]?start=$linkstart' title='Go to page $i'>Page $i</a> ";
  
$linkstart += $perpage;
}
$nav .= '</font></center><br>';

$output "$nav\n";

#It's time to display the gallery!
$picnum = (isset($_GET[start])) ? (($_GET[start] == 0) ? $_GET[start] - 1) : 0;
$output .= <<<EOT
<!-- Begin Table -->\n\n<table width="$tablewidth" bgcolor="$bgcolor" border="$tableborder" cellspacing="$cellspacing" align="center">
EOT;
for(
$i=0$i<(int)($perpage/$perrow); $i++){
  
$output .= '<tr>';
  for(
$j=0$j<$perrow$j++){
    
$output .= "<td align='center' valign='middle'>";
    if(
file_exists($jpegs[$picnum])){
      
$target str_replace('%picname%'$jpegs[$picnum], $linkurl);
      
$output .= "<a href='$target' target='_blank'><img src='thumb$jpegs[$picnum]' border='0' alt='Click to view $jpegs[$picnum]'></a>";
      if(
$showname == 1){
        
$output .= "<br><font face='$fontface' size='$fontsize'>$jpegs[$picnum]</font>";
      }
      if(
$showcoords == 1){
        
$coords getimagesize($jpegs[$picnum]);
        
$output .= "<br><font face='$fontface' size='$fontsize'>$coords[0] x $coords[1]</font>";
      }
      if(
$showsize == 1){
        
$output .= "<br><font face='$fontface' size='$fontsize'>" sprintf("%.02f", (float)(filesize($jpegs[$picnum]) / 1024)) . 'KB</font>';
      }
      
$output .= "\n";
    }
    
$picnum++;
  }
  
$output .= '</tr>';
}
$output .= "</table><br>$nav\n\n";

$template str_replace('%output%'$output$template);
if(
$header){
  include(
$header);
}
echo 
$template;
if(
$footer){
  include(
$footer);
}

#Make a JPG thumbnail of a source image
function makejpegthumb($infile$ou***oord$outycoord$outfile$quality){
  
$insize getimagesize("$infile");

  
$inxcoord $insize[0];
  
$inycoord $insize[1];
  
$inresource imageCreateFromJPEG("$infile");

  if(
$ou***oord == 0){
    
#auto-width: calculate new width based on ratio of old to new height
    
$ratio = (float)($outycoord $inycoord);
    
$ou***oord $inxcoord $ratio;
  }
  else if(
$outycoord == 0){
    
#auto-height: calculate new height based on ratio of old to new height
    
$ratio = (float)($ou***oord $inxcoord);
    
$outycoord $inycoord $ratio;
  }

  
$outresource imagecreatetruecolor($ou***oord$outycoord);

  
$target_pic imagecopyresampled($outresource$inresource0000$ou***oord$outycoord$inxcoord$inycoord);
  
imagejpeg($outresource"$outfile"$quality);
}

?>
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-23-2007, 05:08 AM   #10
million
Confirmed User
 
Join Date: Apr 2006
Location: Pornyland
Posts: 789
Thanks buddy, looks like it will work and the code looks pretty clean too
__________________
<sig spot goes here>
million is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-23-2007, 05:12 AM   #11
million
Confirmed User
 
Join Date: Apr 2006
Location: Pornyland
Posts: 789
Damn, GFY is slow today, I thought my FF was being stupid so pressed the button 3 times, sorry about that :S
__________________
<sig spot goes here>
million is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-23-2007, 05:12 AM   #12
million
Confirmed User
 
Join Date: Apr 2006
Location: Pornyland
Posts: 789
Thanks to you also bobby666, I will try that program. Thanks guys!
__________________
<sig spot goes here>
million 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.