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)
-   -   How can I replace the standard broken image placeholder .. ? (https://gfy.com/showthread.php?t=463612)

Adult Site Traffic 05-04-2005 08:16 AM

How can I replace the standard broken image placeholder .. ?
 
Well:

I want to set up a members area where the icons and the thumbs are not in a protected area.

The full sized images and video are in a protected area BUT they are on html, so, all I get is a broken image. (If they were not on html they would just redirect to the 403, but I need them on html due to some of the features).

What I want to do is replace the standard broken image http://ww345eerrttyygfr.com/img.jpg with an image that tells them why they are not seeing what they expected and what they need to do (log in or join).

.

Adult Site Traffic 05-04-2005 08:39 AM

I know there are some gurus on this board.

.

GeorgeK 05-04-2005 08:43 AM

Using Mod Rewrite, it should be possible. I'm not an expert on it, but you can get some clues at:

http://www.webmasterworld.com/forum92/2783.htm

Adult Site Traffic 05-04-2005 09:03 AM

Quote:

Originally Posted by GeorgeK
Using Mod Rewrite, it should be possible. I'm not an expert on it, but you can get some clues at:

http://www.webmasterworld.com/forum92/2783.htm

Yes, I may have to look into doing it with mod_rewrite, except for just thinking that over it sounds kind of like a hotlink redirect, but I can't do that because it's on the same domain, and logged in users need to be able to view them. ..

GeorgeK 05-04-2005 09:07 AM

Maybe a creative .htaccess would work, if that's what you're using for the login method? Although, I'm not sure how .htaccess and mod_rewrite would work in combination. (I think you basically want to use the rewrite only if you get the "forbidden access" error type, and hopefully using one or the other would let you filter it in precisely that event)

Adult Site Traffic 05-04-2005 09:22 AM

No, I use a script that replaces Browser based Basic Access validation with a more secure version of user tracking and validation of its own. It's reading data from .htaccess and replacing Apache's Browser based Basic authentication.

This is going to be hard :(

.

GeorgeK 05-04-2005 09:39 AM

Are non-members loading the raw .gif or .jpg images? Or are they attempting to load a HTML page? If it's the latter, perhaps using some SSI or PHP code (i.e. if logged in, show aaaaa html code, else show bbbbbb html code) might do the trick?

psyko514 05-04-2005 10:33 AM

It definetly is possible. I know SuicideGirls.com does it. But I have no idea how.

tranza 05-04-2005 10:39 AM

This would be nice to know...

Calvinguy 05-04-2005 12:00 PM

Code:

<img src="photo.jpg" OnError="this.src='error.gif'">


All times are GMT -7. The time now is 09:40 PM.

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