GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   php question - blank.gif images (https://gfy.com/showthread.php?t=332541)

Global Dialers 07-28-2004 04:58 AM

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

RicardoB 07-28-2004 05:02 AM

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 :)

Global Dialers 07-28-2004 05:07 AM

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?

dgraf 07-28-2004 05:08 AM

You want to list a directory and do a decision upon its content?

Repetitive Monkey 07-28-2004 05:09 AM

if(!file_exists("$thumb_name.gif")){
$thumb_name="blank";
}
echo"<img src=\"$thumb_name.gif\" border=\"0\">";

Global Dialers 07-28-2004 05:10 AM

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

Global Dialers 07-28-2004 05:11 AM

thank you :thumbsup

whats the haha bit though please damn word censors :(

dgraf 07-28-2004 05:11 AM

PHP Code:

if (file_exists("dir/file.jpg")) ... 


Repetitive Monkey 07-28-2004 05:12 AM

Quote:

Originally posted by Global Dialers
thank you :thumbsup

whats the haha bit though please damn word censors :(

Reverse }

Roberto the Perverto 07-28-2004 05:12 AM

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.

Repetitive Monkey 07-28-2004 05:13 AM

Quote:

Originally posted by Repetitive Monkey
Reverse }
The entirety of "haha123;" should be replaced with this, by the way.

Global Dialers 07-28-2004 05:17 AM

thanks for the help everyone :thumbsup

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 :Graucho

Global Dialers 07-28-2004 05:38 AM

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?

Repetitive Monkey 07-28-2004 06:01 AM

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.


All times are GMT -7. The time now is 04:19 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123