|
|
|||||||
| Register | FAQ | Calendar | Radio and TV | NP Shop | Search | Today's Posts | Mark Forums Read |
| Tutorials Tutorials and helpful articles made by ponders for ponders |
![]() |
![]() |
![]() |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Im addicted to Netpond
|
I keep seeing requests for potd scripts, so, i thought to share my own one with you guys. I'm sure that there are other ways to do it, probably better ones, but this is the best that my intellect and self-studies allow me to do, at the moment eheheh. And since i'm one of the few non-blondes dulls around, i will explain the whole process in a way that even the blondiest of the dulls can understand. I just assume that you own a website and know how to access it on your server using and FTP program.
1) GOAL -------- You want to create a script which automatically shows a different thumbnail every day. You want to be able to clcik on the thumbnail and to be redirected to a page with the full picture and sponsors banners. See an example at Sabrina Deep Blog - The Deep-throat Journal (top-left of the page). 2) PREPARE YOUR SERVER ------------------------- Let's assume your site is called yoursite.com. - Go inside your website root directory, using FTP. - Create a new folder and call it "potd" - Open the newly created folder - Create a new folder inside the newly created "potd" folder and call it "images" - Create a new folder inside the newly created "potd" folder and call it "thumbs" The reason why we are creating two different folders for the full image and for the thumbnail, rather than putting them all together, is because you might want to add different thumbs sizes in the future and in that case it is better to have the thunbs separated from the full pictures. 3) PREPARE THE PICTURES -------------------------- A- Select 31 pictures if you want the pictures to change every day in a month and then to start rotating again the next month or 365 pictures, if you want a different picture for every day of the year. Crop them with the same width and make sure that whatever width you choose they are not bigger than 640pixels in width. In this way they shall look nice in every browser 's platform and you shall be able to both use small and big pictures in height. - If you have chosen 31 pictures, name each of the pictures from number 1 to number 31 .jpg (1.jpg, 2.jpg, 3.jpg,.......31.jpg) - If you have chosen 365 pictures, name each of the pictures from number 1 to number 365 .jpg (1.jpg, 2.jpg, 3.jpg,.......365.jpg) B- For each picture, make a thumbnail of the size you want (but make sure that ALL the thumbnails have the same size in width and height lol) and name each thumbnail as follows: - For 31 thumbnails, name each of the thumbnails "t_" plus the number from 1 to 31 .jpg (t_1.jpg, t_2.jpg, t_3.jpg,.......t_31.jpg) - For 365 thumbnails, name each of the thumbnails "t_" plus the number from 1 to 365 .jpg (t_1.jpg, t_2.jpg, t_3.jpg,.......t_365.jpg) C- Upload all the pictures from A to the folder "images" on your server. D- Upload all the pictures from B to the folder "thumbs" on your server. 4) THE SCRIPTS ---------------- You need two very simple, but separated scripts. One is for calling the daily thumbnail on the page where you want to show the picture of the day, while the other one calls the full picture on the subsequent page with the sponsor's banner. A- The Thumbnail Script ------------------------ Create a new, blank text document and add the following into it: --- 31 DAYS --- If you have 31 pictures and thumbnails, this is the correct script. PHP Code:
Now, save the text document as "thumbs.php" --- 365 DAYS --- If you have 365 pictures and thumbnails, this is the correct script. As you may see the only things which changes is the $today variable. PHP Code:
Now, save the text document as "thumbs.php" B- The Full Picture Script ------------------------ --- 31 DAYS --- If you have 31 pictures and thumbnails, this is the correct script. PHP Code:
Now, save the text document as "index.php" --- 365 DAYS --- If you have 365 pictures and thumbnails, this is the correct script. As you may see the only things which changes is the $today variable. PHP Code:
Now, save the text document as "index.php" You can adjust the HTML part as you please as long as you leave what is above intact. Basically, you call the full picture automatically simply using the following inside your image tag: PHP Code:
-------------------- A- Simply upload the thumbs.php and index.php newly created files onto the "POTD" folder on your website. B- Use the following code to call the thumb of the day wherever you want to call it (your blog, site etc): PHP Code:
Of course it can be implemented for calling different thumbnail sizes and for adding webmasters codes to the url, but i wanted to explain how the basic thing is done. If you want to see more, just let me know and i'll find some time to add and explain the custom sponsor version of the script. |
|
|
|
|
|
#2 (permalink) |
|
Lets all help Meat find a wife
Join Date: Sep 2007
Posts: 222
Points: 10,775
|
THANK YOU VERY MUCH, this is exactly what i have been looking for. Question for you - can you use more than one instance of the script on the same page and have it display different / random pics. for instance a rotating gallery of 5 or 10 pics that changes everyday.
__________________
|
|
|
|
|
|
#3 (permalink) | |
|
Those with the biggest egos are insecure
Join Date: Jan 2003
Location: near Cape Cod, Massachusetts
Posts: 9,032
Points: 5,611
|
That's awesome, Sabrina! I have a script that does the same thing, but I didn't relish having to move it to yet another domain, set it all up, etc.
Crap, now I have another project to do lol. I need to grab images ..... and since my employee doesn't even have photo editing software, I have to do this all myself. __________________
Quote:
|
|
|
|
|
|
|
#5 (permalink) | ||||||
|
Im addicted to Netpond
|
Surely you can, althought you might have problems of speed in loading the page, but that depends on your server resources, really.
You can even fish different pics from the same package of pictures, simply creating more istances of both index.php and thumbs.php and just adding a number. For example if you wanna have two different pics of the day on the same page, fishing from the same set of pics, create a duplicate of both index.php and thumbs.php and on each of them substitute Quote:
Quote:
Quote:
Or if you want to have 3 potd fishing from the same package you can do the above and create a third istance of both thumbs.php and index.php and substitute: Quote:
Quote:
Quote:
Hope it's clear. |
||||||
|
|
|
|
|
#6 (permalink) |
|
so fresh and so clean
Join Date: Apr 2006
Location: I like You. See Sig
Posts: 14,467
Points: 195
|
awesome tutorial thanks
__________________
MY FAVORITE HOSTING: Unlimited sites, 1000GB of BW for just 9.95$ 99.9% uptime, 24/7 live support Here Check out new Netpond Sponsor: FlashCash - Instant payouts - you get 1 signup, you get paid instantly. No minimums, no need to leave money on the table
|
|
|
|
|
|
#8 (permalink) |
|
I Am Big, Bald And Ugly
|
WOW... awesome help for many !
Thanks. ;-) __________________
WHERE YOU SHOULD BE SENDING YOUR TRAFFIC: Dating/Escorts/Solo Girl - Coming Soon - Celebrity - Gay - Exit/404 CuriousToyBoy ==> Adult Who's Who ==> Ambush Interview ==> ICQ 293 070 684 |
|
|
|
|
|
#9 (permalink) |
|
Life is life ....
|
Amazing tutorial
i must try this __________________
Add your link on 160 sites for just $5 - ICQ 453-418-080 - Click here for more info Affiliate program reviews: - XXBLOGGER Affiliate programs VERY POPULAR CHEAP ADULT DOMAINS - START AT $10 - Get your own here
|
|
|
|
|
|
#13 (permalink) |
|
Who Dares Wins
|
Hey that is simply AMAZING to take the time to put all that together and share.
Nice one ![]() __________________
Re: coding/tech support/design: I am fully booked, regret NO new clients thank you. 3 great VOYEUR sites (my fave sponsor) | AEBN VOD Sponsor | Convert in style |
|
|
|
|
|
#17 (permalink) |
|
Worken on it...
Join Date: Sep 2007
Location: Houston, Texas
Posts: 237
Points: 1,185
|
Bookmarked... Thank You...
Randy ![]() __________________
Free RSS Porn Feeds See the Sponsors RSS Feed LIVE before wasting time signing up just to find they have little or no text
Porn Money Secrets Search Engine Submission Links - AKA Free Traffic ![]() Free Adult Webmaster Stuff - 13 Sites for Free Video Hosting - 25 Free Blog Hosting - 33 Free Web Hosting 188 Link Dumps |
|
|
|
|
|
#18 (permalink) |
|
Gimme a Lambo plZ!
|
great tutorial thanks for that!
__________________
Want link exchange? Check out my profile on thunder-ball Best Niche Sponsors: Pornstars | 40 inch plus | Anal | Webcam | Facials |Pure 18 | Extreme Asses |100$ per Signup with Milf Content | |
|
|