Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Newbie Questions (http://www.greenguysboard.com/board/forumdisplay.php?f=5)
-   -   POTD question (http://www.greenguysboard.com/board/showthread.php?t=37289)

Webcutie 2007-01-05 03:31 PM

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 2007-01-09 10:45 AM

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!

JK 2007-01-09 10:43 PM

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.
}
?>


oast 2007-01-11 07:14 PM

Then, with Apache's mod rewrite, you could make it look like a 'proper' graphic file such as or

Code:

RewriteRule ^potd/(webcutie|anothersite|thissite)([0-9]+)\.jpg$  /potd.php?site=$1&type=$2 [L]


All times are GMT -4. The time now is 10:19 AM.

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