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
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-11-2007, 05:57 AM   #1
NinjaSteve
Too lazy to set a custom title
 
Industry Role:
Join Date: Dec 2003
Posts: 11,089
Pic of the day script?

Does anybody know of a good 'picture of the day' script? I'm looking for it to pull either random pics or pics in order out of 365 (not just 31 pics max). I am having problems locating one. Thanks.
__________________
...
NinjaSteve is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 07:39 AM   #2
Click Obey
Confirmed User
 
Join Date: Jan 2007
Posts: 196
Bump for you. Ive been looking for a similar script also.
__________________
Convert your clicks with Swank Dollars ICQ - 472 856 761
Click Obey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 07:53 AM   #3
Violetta
Affiliate
 
Violetta's Avatar
 
Join Date: Jul 2004
Posts: 28,735
Woj is selling one... do a search on his name! (or just look at every thread's 50th post)
__________________
M&A Queen
Violetta is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 07:54 AM   #4
NinjaSteve
Too lazy to set a custom title
 
Industry Role:
Join Date: Dec 2003
Posts: 11,089
Thanks I'll do a search. I would think there's a good free one out there especially with openads available.
__________________
...
NinjaSteve is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 07:55 AM   #5
wateva
So Fucking Banned
 
Join Date: Jul 2007
Posts: 492
good luck on finding a free one....
wateva is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 10:48 PM   #6
NinjaSteve
Too lazy to set a custom title
 
Industry Role:
Join Date: Dec 2003
Posts: 11,089
Anybody else?
__________________
...
NinjaSteve is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 10:54 PM   #7
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
i wrote this simple tutorial for gfy , very simple cut and paste code , if you have any questions let me know

http://www.gofuckyourself.com/showthread.php?t=765730
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 10:55 PM   #8
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
ps the tutorial shows how to do several diff methods all in one but you dont need to set it up like that you can use it just for pictures if you want
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 11:05 PM   #9
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Here. I'm bored, so I wrote a very trivial one for you. This isn't pretty
simple, but it'll work with any version of PHP4 and PHP5 with no problems.

If called normally, it will use the day of the year as the picture of the day, prefixing zeros as required for 3 numbers (001.jpg, 010.jpg, 111.jpg).

If you set "$rand=TRUE;" it will pick randomly between pictures 001.jpg to 365.jpg. If this file is missing, it will attempt to output "missing.jpg".

Code:
<?php
// DumbPic Script by GrouchyAdmin. <[email protected]>.
// You are free to use this code, but please leave this notice
// in place.
$rand=FALSE;
$dayNow=sprintf("03d", date("z")) . ".jpg";
header("Content-type: image/jpeg");
if ($rand)
$dayNow = sprintf("%03d", rand(1,365)) . ".jpg";
  header("Content-type: image/jpeg");
if (file_exists("$dayNow")) {
 @readfile("$dayNow");
} else {
 @readfile("missing.jpg");
}
?>
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 11:06 PM   #10
Az A Bay Bay
Confirmed User
 
Join Date: Sep 2007
Posts: 1,129
good luck....
__________________

Home of Ed Powers and america's next hot pornstar
Az A Bay Bay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 11:06 PM   #11
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by SmokeyTheBear View Post
i wrote this simple tutorial for gfy , very simple cut and paste code , if you have any questions let me know

http://www.gofuckyourself.com/showthread.php?t=765730
Hah. Figures that you'd beat me by the time I opened a terminal.

Edit: If you use my simple script, call it as: <img src="script.php"> - I originally had it test for ?rand in the URL passing, but decided you'd probably want either/or.
__________________

Last edited by GrouchyAdmin; 10-11-2007 at 11:07 PM..
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 11:06 PM   #12
Az A Bay Bay
Confirmed User
 
Join Date: Sep 2007
Posts: 1,129
tRyin to find a
fRee one "(
__________________

Home of Ed Powers and america's next hot pornstar
Az A Bay Bay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 11:15 PM   #13
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Upon second thought, I put it back. If you want random, call as "script.php?rand", otherwise it will use the current day of the year.

Code:
<?php
// DumbPic Script by GrouchyAdmin. <[email protected]>.
// You are free to use this code, but please leave this notice
// in place.
// Set $rand to TRUE to choose randomly between 001.jpg and 365.jpg.
$rand=isset($_REQUEST['rand']) ? TRUE : FALSE;
$picNow=($rand) ? sprintf("%03d", rand(1,365)) : sprintf("03d", date("z")) . ".jpg";
header("Content-type: image/jpeg");
if (file_exists("$picNow")) {
 @readfile("$picNow");
} else {
 @readfile("missing.jpg");
}
?>
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-11-2007, 11:31 PM   #14
EDepth
Confirmed User
 
Join Date: Nov 2005
Location: Seattle, WA
Posts: 510
The best solution would be to setup a cron job that runs every night, that copies the fullsize image + thumbnails from a private directory to a public directory. So, you name your images 1-31.jpg (or 1-365.jpg), thumbnails like tn[1-31]_widthxheight.jpg. The last thing you want to do is have a bunch of php code running over and over again for an image load (especially if you are determining which thumbnail to load via php)

so,

PHP Code:
<?php
// get the day of the month
$today date("d");

// copy the fullsize image and name it as image.jpg 
copy("/blah/privatepath/".$today.".jpg","/blah/publicpath/image.jpg");

// repeat the following for each thumbnail
copy("/blah/privatepath/tn".$today."_88x88.jpg","/blah/publicpath/tn_88x88.jpg");

?>
So now, your potd html page can just link to image.jpg (no php needed) + your affiliates can link to tn_88x88.jpg without linking to a php page to load a thumbnail...
__________________
ICQ: 275335837
EDepth 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



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.