Version: 1.00, by Zachery
Developer Last Online: May 2017
Category: Miscellaneous Hacks -
Version: Unknown
Rating:
Released: 03-07-2007
Last Update: Never
Installs: 33
No support by the author.
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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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?
hmm didnt work as expected. please open in IE-> http://www.officechai.com/testvbforum/index.php
see the empty image placeholders (scroll down) in main forum categories (not the header) on that very page..
I put the 404.php and .htaccess in here:
/public_html/testvbforum/images
i had some images in png, and not gif, same file name.. however, it still doesn't auto replace it. [i even changed the template to refer to .png] it still looks for testvbforum/images/styles/smartblue/statusicon/forum_old.gif but i do have testvbforum/images/styles/smartblue/statusicon/forum_old.png there.
i checked with my hostmonster guy, they do support this. any help appreciated.
The requested URL /testvbforum/images/styles/smartblue/statusicon/forum_old.gif was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.officechai.com Port 80
The server can't find the ErrorDocument - the 404.php
Give him the correct path to this file, and he will find it.
The server can't find the ErrorDocument - the 404.php
Give him the correct path to this file, and he will find it.
How to give the correct path? sorry to trouble with silly questions, but i still can't get it working. this is the final mod that I need to configure, apart from one unrelated, before i could go live.
I've put .htaccess at 3, 4 places in the dir structure. where all shud i put 404 and where all shud i put .htaccess?
I'm new to .htaccess and php, as per the instruction I've added the files. still i dont see any result. can u please guide me little easy? :erm:
I have now uploaded the .htaccess & 404.php file to the /images/ directory and give the full path to the 404.php file on the .htaccess and also uploaded a newthread.png and removed the newthread.gif img.
but I dont get the png image I just get text, I sent you a PM with my URL.