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 07-28-2004, 04:58 AM   #1
Global Dialers
Confirmed User
 
Join Date: May 2004
Location: Spain
Posts: 1,349
php question - blank.gif images

if i have a .php template page made up with say 25 thumbs leading to the full size pics on it

what would i need to use to load up a blank.gif image if there were only say 24 images in a specific folder on the server or is that not something that you can do on a stand alone / page by page basis
__________________
the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
the rest of thegalleries are free placements.
Global Dialers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:02 AM   #2
RicardoB
Confirmed User
 
Join Date: Jan 2004
Posts: 2,576
Maybe I'm reading ya wrong but here goes:

I asume you are using a table structure to load the thumbs in?
I also asume the thumbs always have the same size?

In that case load up the blank gif as the background of the cells and ya there
RicardoB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:07 AM   #3
Global Dialers
Confirmed User
 
Join Date: May 2004
Location: Spain
Posts: 1,349
Quote:
Originally posted by RicardoB
Maybe I'm reading ya wrong but here goes:

I asume you are using a table structure to load the thumbs in?
I also asume the thumbs always have the same size?

In that case load up the blank gif as the background of the cells and ya there
but wouldnt that still show a red x if there was a thumb image missing that was hard coded into the table cell

like say i have two rows of 5 thumbs - 10 thumbs

if i use the same php page across 1000 sub directory yet some of them only have 7 8 or 9 images in wont the missing 3 2 or 1 images show up as a red x?
__________________
the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
the rest of thegalleries are free placements.
Global Dialers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:08 AM   #4
dgraf
Confirmed User
 
Join Date: Jun 2004
Posts: 133
You want to list a directory and do a decision upon its content?
dgraf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:09 AM   #5
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
if(!file_exists("$thumb_name.gif")){
$thumb_name="blank";
}
echo"<img src=\"$thumb_name.gif\" border=\"0\">";
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:10 AM   #6
Global Dialers
Confirmed User
 
Join Date: May 2004
Location: Spain
Posts: 1,349
kindof i guess yes at least that sounds like what i want to do lol

my programmer doesnt get in for another couple of hours and im an impatient fuck lol
__________________
the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
the rest of thegalleries are free placements.
Global Dialers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:11 AM   #7
Global Dialers
Confirmed User
 
Join Date: May 2004
Location: Spain
Posts: 1,349
thank you

whats the haha bit though please damn word censors
__________________
the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
the rest of thegalleries are free placements.
Global Dialers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:11 AM   #8
dgraf
Confirmed User
 
Join Date: Jun 2004
Posts: 133
PHP Code:
if (file_exists("dir/file.jpg")) ... 
dgraf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:12 AM   #9
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
Quote:
Originally posted by Global Dialers
thank you

whats the haha bit though please damn word censors
Reverse }
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:12 AM   #10
Roberto the Perverto
Registered User
 
Join Date: Jul 2004
Location: city of angels and cars
Posts: 89
I dunno what programs you are using but if you have this coded yourself or not I'll offer a few solutions.

in the code, you can have it count how many images you told it to put into each template, if it is less then 10 then the remaining images will be named blank.gif.

Server side; the red X's will draw a 404 error, you can use .htaccess for just that directory to redirect 404 traffic to blank.gif, but this will have you loose some money from possible 404 traffic. It is an easier fix if you are not the coder on the proejct though.
Roberto the Perverto is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:13 AM   #11
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
Quote:
Originally posted by Repetitive Monkey
Reverse }
The entirety of "haha123;" should be replaced with this, by the way.
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:17 AM   #12
Global Dialers
Confirmed User
 
Join Date: May 2004
Location: Spain
Posts: 1,349
thanks for the help everyone

roberto basically what im doing is getting a bunch of content ready for upload now for a new cms that we should have finished off today

however i also realized that instead of just leaving the content sitting there on the server in a heap of different sub directorys doing nothng i could throw in a simple .php page and create a few million tgp galleries with keywords and all that funky shit for the search engines

this is where the blank.gif solution came about because i know some of the directorys will have less images than what i want the basic template php page to have

in essence by uploading all the content and then uploading all the php template pages into each of their directorys it gives me a regular amount of galleries that can be linked to from free sites and shit like that as well as tgp submissions to gain additional traffic / revenue for our program when we launch in a few months time which will als give me some traffic for beta testing purposes
__________________
the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
the rest of thegalleries are free placements.
Global Dialers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 05:38 AM   #13
Global Dialers
Confirmed User
 
Join Date: May 2004
Location: Spain
Posts: 1,349
sorry another stupid question..

would it be best to have the blank.gif location as a url or a server path

or dies it not matter either way?
__________________
the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners.
the rest of thegalleries are free placements.
Global Dialers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-28-2004, 06:01 AM   #14
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
Quote:
Originally posted by Global Dialers
sorry another stupid question..

would it be best to have the blank.gif location as a url or a server path

or dies it not matter either way?
Relative is best. You might change domains or something like that later.
Repetitive Monkey 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.