Greenguy's Board


Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2007-01-05, 03:31 PM   #1
Webcutie
Rock stars ... is there anything they don't know?
 
Join Date: Jul 2006
Posts: 16
POTD question

I am trying to set up a POTD, Tried tons of scripts and finally got one to work.... it's very simple...
It's from here: tomsnewbiebooster.com/resources/picture-of-the-day/script.html

The question that I have is..... How do I make multiple thumbnails from that POTD for an affiliate program? I noticed a lot of people have it off of an php file.... like potd/thumbnails.php?size=88x88 or potd.php?site=sitename&type=thumb1 How do you do this exactly? Someone please help me or direct me to the right place!... Thanks a bunch!!
Webcutie is offline   Reply With Quote
Old 2007-01-09, 10:45 AM   #2
Webcutie
Rock stars ... is there anything they don't know?
 
Join Date: Jul 2006
Posts: 16
Anyone?

I am looking for someone to help me with this.... Maybe refer me to a place to buy a script or someone that will build me one.... or someone that can just tell me how to do it... Please! I'm going crazy over this!
Webcutie is offline   Reply With Quote
Old 2007-01-09, 10:43 PM   #3
JK
Well you know boys, a nuclear reactor is a lot like women. You just have to read the manual and press the right button
 
Join Date: Nov 2003
Posts: 157
For the following url: www.x.com/potd.php?site=webcutie&type=thumb1

you would need to have pictures in a folder named 'webcutie' (or whatever you have after ?site=), beginning with 'thumb1-' (or whatever you have &type=) before each of the 31 images.

/potd.php
/webcutie/thumb1-01.jpg
/webcutie/thumb1-02.jpg
/webcutie/thumb1-03.jpg
etc.

PHP Code:
<?php

$site 
$_GET['site'];
$type $_GET['type'];

$day date("d");

$date date("l jS F Y");

print (
"<CENTER><FONT FACE=arial, helvetica SIZE=4>Picture Updated: $date</FONT>");

print (
"<BR><BR>");

switch (
$day) {
    
case 
01:
print (
"<IMG SRC=$site/$type-01.jpg BORDER=2>");
break;
    
case 
02:
print (
"<IMG SRC=$site/$type-02.jpg BORDER=2>");
break;

case 
03:
print (
"<IMG SRC=$site/$type-03.jpg BORDER=2>");
break;

// etc. etc.
}
?>
__________________
To alcohol! The cause of, and solution to, all of life’s problems

Last edited by JK; 2007-01-09 at 11:38 PM.. Reason: typo
JK is offline   Reply With Quote
Old 2007-01-11, 07:14 PM   #4
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
Then, with Apache's mod rewrite, you could make it look like a 'proper' graphic file such as <img src="http://www.x.com/potd/webcutie88.jpg"> or <img src="http://www.x.com/potd/thissite150.jpg">

Code:
RewriteRule ^potd/(webcutie|anothersite|thissite)([0-9]+)\.jpg$  /potd.php?site=$1&type=$2 [L]
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -4. The time now is 12:33 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc