![]() |
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 |
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 :) |
Quote:
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? |
You want to list a directory and do a decision upon its content?
|
if(!file_exists("$thumb_name.gif")){
$thumb_name="blank"; } echo"<img src=\"$thumb_name.gif\" border=\"0\">"; |
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 |
thank you :thumbsup
whats the haha bit though please damn word censors :( |
PHP Code:
|
Quote:
|
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. |
Quote:
|
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 |
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? |
Quote:
|
| 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