Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
NoMoreGifs Details »»
NoMoreGifs
Mod Version: 1.00, by Zachery (vBulletin Support Staff) Zachery is offline
Developer Last Online: May 2013 I like it Show Printable Version Email this Page

vB Version: Rating: (18 votes - 4.17 average) Installs: 31
Released: 08 Mar 2007 Last Update: Never Downloads: 429
Not Supported  

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #31  
Old 28 Apr 2008, 13:33
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
I'm not that motovated feldon ;p
Reply With Quote
  #32  
Old 02 May 2008, 20:03
StGaensler's Avatar
StGaensler StGaensler is offline
 
Join Date: Jan 2005
Real name: Stefan
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:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Reply With Quote
  #33  
Old 02 May 2008, 20:36
harakiri harakiri is offline
 
Join Date: Sep 2003
Real name: Christian
Thanks Stefan,

it feels "faster".

Regards,
Chris
Reply With Quote
  #34  
Old 02 May 2008, 21:15
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Originally Posted by StGaensler View Post
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:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
I don't always replace all of the gif files, so I prefer my version.
Reply With Quote
  #35  
Old 02 May 2008, 21:28
StGaensler's Avatar
StGaensler StGaensler is offline
 
Join Date: Jan 2005
Real name: Stefan
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.
Reply With Quote
  #36  
Old 03 May 2008, 07:41
harakiri harakiri is offline
 
Join Date: Sep 2003
Real name: Christian
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
Reply With Quote
  #37  
Old 23 May 2008, 00:50
dannykilla's Avatar
dannykilla dannykilla is offline
 
Join Date: Jun 2007
Real name: Danny
will this work on 3.7.0?
Reply With Quote
  #38  
Old 24 May 2008, 13:52
StGaensler's Avatar
StGaensler StGaensler is offline
 
Join Date: Jan 2005
Real name: Stefan
Don't know why it shouldn't?
Reply With Quote
  #39  
Old 04 Jul 2008, 08:47
dannykilla's Avatar
dannykilla dannykilla is offline
 
Join Date: Jun 2007
Real name: Danny
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
Reply With Quote
  #40  
Old 07 Jul 2008, 03:41
Prezadent Prezadent is offline
 
Join Date: Jun 2008
You can easily rename a .png to a .gif and have the .png display normally in all major browsers.

No need for this hack.
Reply With Quote
  #41  
Old 08 Jul 2008, 13:32
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
You shouldn't though.
Reply With Quote
  #42  
Old 17 Jul 2008, 03:50
drapton drapton is offline
 
Join Date: Mar 2008
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?
Reply With Quote
  #43  
Old 18 Jul 2008, 12:58
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
A link to your site would be useful
Reply With Quote
  #44  
Old 19 Jul 2008, 20:51
pranaysanghavi's Avatar
pranaysanghavi pranaysanghavi is offline
 
Join Date: Jun 2008
Location: India
Real name: Pranay
Bunny! what is htaccess? where it is

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?
Reply With Quote
  #45  
Old 20 Jul 2008, 14:45
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Real name: Zachery Woods
Its explained as simply as possible.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 03:54.

Layout Options | Width: Wide Color: