|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
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
__________________
|
|
|
|
|
|
#3 | |
|
Confirmed User
Join Date: May 2004
Location: Spain
Posts: 1,349
|
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?
__________________
the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners. the rest of thegalleries are free placements. |
|
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Jun 2004
Posts: 133
|
You want to list a directory and do a decision upon its content?
__________________
Bright Porn | Webmasters | Free Galleries | Sponsors | Traffic Trades | Hardlinks
|
|
|
|
|
|
#5 |
|
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\">"; |
|
|
|
|
|
#6 |
|
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. |
|
|
|
|
|
#7 |
|
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. |
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Jun 2004
Posts: 133
|
PHP Code:
__________________
Bright Porn | Webmasters | Free Galleries | Sponsors | Traffic Trades | Hardlinks
|
|
|
|
|
|
#9 | |
|
Confirmed User
Join Date: Feb 2004
Posts: 3,505
|
Quote:
|
|
|
|
|
|
|
#10 |
|
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. |
|
|
|
|
|
#11 | |
|
Confirmed User
Join Date: Feb 2004
Posts: 3,505
|
Quote:
|
|
|
|
|
|
|
#12 |
|
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. |
|
|
|
|
|
#13 |
|
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. |
|
|
|
|
|
#14 | |
|
Confirmed User
Join Date: Feb 2004
Posts: 3,505
|
Quote:
|
|
|
|
|