![]() |
|
|
Mod Options |
NoMoreGifs Details »»
|
|||||||||
I had been working on a style for my now defunt site, while developing it, since IE7 was final and PNG's are just too cool to pass up anymore. I found it a pain to re-write all of the vBulletin templates to use the .png extension on the images. Not to mention this would make upgrading a pain in the butt.
I had Matthew make me this snipet of code. I told him I would release it and he said its fine. So to you I now give you the ability to not have to use gif's but png's in your image folders. You're webserver must support custom error documents via htaccess. Installation, Edit htaccess file to give a full/proper url to your new 404.php document Put both the htaccess file and the 404.php file in the base of you images folder. I only offer support when I have time. This modification is otherwise unsupported, but working. For style developers, if you wish to use this, please give credit where credit is due , a link back to this mod would be great.Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
|||||||||
|
#31
|
||||
|
||||
|
I'm not that motovated feldon ;p
No members have liked this post.
|
|
#32
|
||||
|
||||
|
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:
Every non-existing gif file so gets redirected to a png file. I don't check if the png file exists but I think this doesn't matter ![]() Stefan No members have liked this post.
|
||||
|
#33
|
|||
|
|||
|
Thanks Stefan,
it feels "faster". Regards, Chris No members have liked this post.
|
|
#34
|
||||
|
||||
|
Originally Posted by StGaensler
I don't always replace all of the gif files, so I prefer my version.
No members have liked this post.
|
||||
|
#35
|
||||
|
||||
|
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.
No members have liked this post.
|
|
#36
|
|||
|
|||
|
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 No members have liked this post.
|
|
#37
|
||||
|
||||
|
will this work on 3.7.0?
No members have liked this post.
|
|
#38
|
||||
|
||||
|
Don't know why it shouldn't?
No members have liked this post.
|
|
#39
|
||||
|
||||
|
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 No members have liked this post.
|
|
#40
|
|||
|
|||
|
You can easily rename a .png to a .gif and have the .png display normally in all major browsers.
No need for this hack. No members have liked this post.
|
|
#41
|
||||
|
||||
|
You shouldn't though.
No members have liked this post.
|
|
#42
|
|||
|
|||
|
thanks for this, it would be real helpful, but it's not working for me. instead of the png image i get a text, i right click the text, and click view image, it then gives me the 404.php page all blank. so basically i understand that it's not poiting to the gif anymore, but i dunno why it is not showing the png file then? any idea?
No members have liked this post.
|
|
#43
|
||||
|
||||
|
A link to your site would be useful
![]() No members have liked this post.
|
|
#44
|
||||
|
||||
|
Edit htaccess file to give a full/proper url to your new 404.php
kindly explain proper steps in layman's terms... u mean we shud create new htaccess and new 404.php, both of which we shud load in image dir of every style that our forum has? No members have liked this post.
|
|
#45
|
||||
|
||||
|
Its explained as simply as possible.
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 03:54.



, a link back to this mod would be great.


