![]() |
I'm not that motovated feldon ;p
|
I have two things to remark:
As you send a Location: header the Content-type: header doesn't matter as the browser makes a second request for the png file. This second request takes some time so I suggest doing the "decision" directly on the server without the need of a second request. This only needs the Apache module mod_rewrite: Code:
RewriteCond %{REQUEST_FILENAME} !-f Stefan |
Thanks Stefan,
it feels "faster". Regards, Chris |
Quote:
|
Your version replaces all non existant gif files with png files - am I correct? Exactly the same does my code but without causing the second (unnecessary) request.
|
Both versions doing the _same_ thing - but in different ways.
If you have mod_rewrite on your Apache, I think the solution by Stefan is better.. else Zacherys |
will this work on 3.7.0?
|
Don't know why it shouldn't?
|
I am trying to get this to work on my board which is 3.7.2 and I have followed the instructions correctly and created a image called newthread.png and then uploaded it to the correct directory and then deleted the newthread.gif but when I refresh the page I just get text saying "post new thread" and no image?
I am running vB 3.7.2, PHP 5 and I have asked my host if I have the necessary setting that this hack/mod requires and then said YES? Anyone help me out please? Thanks Danny |
You can easily rename a .png to a .gif and have the .png display normally in all major browsers.
No need for this hack. |
All times are GMT. The time now is 12:37 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|