Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
PNG Transparency for Internet Explorer Details »
PNG Transparency for Internet Explorer
Mod Version: 1.00, by Oblivion Knight (Contributor) Oblivion Knight is offline
Developer Last Online: Nov 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.8 Rating: (0 vote - 0 average) Installs: 2
Released: 25 Jun 2005 Last Update: Never Downloads: 10
Not Supported Template Edits Additional Files  

Ever wanted to allow your users to see transparent PNG images using Internet Explorer? Now you can!

Note: I did NOT create this script, it remains the sole property of it's author.


Pros & Cons

Pros:
  • Ignored as a comment in other browsers, so no browser-sniffing code is required
  • Works with (X)HTML Strict & Transitional Doctypes
  • Does not break W3C validation
  • Lightweight and very easily deployed
  • Works with existing in-line or external CSS rules based on class or ID selectors
  • Works with old-style img align="left" or align="right" attributes
  • Adds itself to the end of any existing Body Onload code
  • Works with imagemaps and input images using a special version
Cons:
  • Doesn't work in IE versions earlier than 5.5
  • Requires JavaScript to be enabled - the estimations for how many people choose not to use JS vary wildly.
  • CSS backround PNGs not supported - experimentation revealed I could traverse the Stylesheets collection and use the AlphaImageLoader trick to replace all background-image attributes containing PNGs, but then background-repeat would not work, and anchors placed over non-transparent parts of the image were not clickable :-(
  • CSS rules for the PNG images based on the img selector are lost, but this is easily rectified by adding a class selector to your img rule such that img{..} becomes img,.png{..} - then add the attribute class="png" to each of your PNGs.

To install, simply upload the attached .js file to your /forums/clientscript/ directory.

Then edit your headinclude template, and add the following:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You're all set.!

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.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Transparency PNG pictures with Internet Explorer 6 (server-side solution) cclaerhout vBulletin 3.5 Add-ons 41 26 Oct 2009 19:17
PNG Transparency for Internet Explorer Oblivion Knight vBulletin 3.5 Template Modifications 43 18 Sep 2009 12:54

Comments
  #2  
Old 25 Jun 2005, 14:02
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Real name: Daniel
Nice idea I've been looking for that css code recently so thanks
__________________
Former vBulletin.org Staff Member

Guildhead | Torhead | Wowhead
Please do not Private Message, Email or Instant Message me for Support with vBulletin or help with any Modifications to vBulletin.
Reply With Quote
  #3  
Old 25 Jun 2005, 14:08
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Real name: Curtis C.
Thanks a MILLION oblivion, you rock. I like your site alot too man. Anyway

/me installs
__________________
My first vB template additions: Add User Color Legend - Add eBay profile to postbit
Curtis C.- Owner and Operator of KeyHunt
Important Linkage: Buy vB - vB Styles
Just wanna ask a vB related question contact me.
Reply With Quote
  #4  
Old 28 Jun 2005, 15:34
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Originally Posted by bigcurt
Thanks a MILLION oblivion, you rock. I like your site alot too man. Anyway

* bigcurt installs
It seems there was one already made to do this, but yours is significantly easier. No hacking is a big plus.
Reply With Quote
  #5  
Old 29 Jun 2005, 06:55
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Real name: Andy
Originally Posted by Bad Bunny
It seems there was one already made to do this, but yours is significantly easier. No hacking is a big plus.
That, and I couldn't get theirs to work at all..
Reply With Quote
  #6  
Old 29 Jun 2005, 12:53
jugo jugo is offline
 
Join Date: Feb 2004
Mine works greate..WooHOo!!!

Thanks!!
__________________
NovaWarfare.com - Bringing back the Game - http://www.NovaWarfare.com

Website Hosting - Game Server Hosting - http://www.freaks-network.com
Teamspeak Status Block for vBAdvanced / PHP-Nuke / php Include

PM me if you need hacks installed or simple template modifications...I'm cheap..
Reply With Quote
  #7  
Old 29 Jun 2005, 14:18
Bad Bunny's Avatar
Bad Bunny Bad Bunny is offline
 
Join Date: Apr 2002
Originally Posted by Oblivion Knight
That, and I couldn't get theirs to work at all..
My site has theirs working, while my dev has yours. My issue right now is I have a mac with no pc to test it on. So I'll never really know if it does or doesn't work. heh
Reply With Quote
  #8  
Old 03 Jul 2005, 16:28
devilsmania devilsmania is offline
 
Join Date: Nov 2001
added it, but i have a problem....

while it recognizes the icons (*png) it wont render the Attached Avatars (and i find it important)


anything to modify into that .js file ? like instead of searching .png, it could find strings like image.php ?
Reply With Quote
  #9  
Old 03 Jul 2005, 20:16
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Real name: Andy
Not likely, because it would try to render .jpg and .gif attachments as .png's also.
Reply With Quote
  #10  
Old 08 Jul 2005, 11:26
Dark Zero's Avatar
Dark Zero Dark Zero is offline
 
Join Date: May 2002
for solution that i only add the .png termination with script for the avatars
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:12.

Layout Options | Width: Wide Color: