vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Transparency PNG pictures with Internet Explorer 6 (server-side solution) (https://vborg.vbsupport.ru/showthread.php?t=93415)

cclaerhout 08-01-2005 10:00 PM

Transparency PNG pictures with Internet Explorer 6 (server-side solution)
 
Purpose
Kill the grey backdrop of transparency PNG images in Internet Explorer 6 (server-side solution)
Thanks to Natch (https://vborg.vbsupport.ru/showthread.php?t=67413) and d00d (http://koivi.com/ie-png-transparency/)

Version of Koivi's script
2.0.12

Update
10/01/2006 : detect MSIE to ignore IE7 or greater

Installation
1)Edit the xml file, update line 8 with your information :
Code:

$img_path='http://www.websitedirectory.com/forumdirectory/images/'
AND save.

2)Import xml file with Plugin Manager.

3)Copy "spacer.png" picture to vbulletin images directory.

Information
-Sometimes (it depends) you will have to specify the height and the width of the png picture, otherwise, it won't work. Don't hesitate to go to d00d website he often update his code.
- When a link is above a png background, it will not work !
Works now ! thanks to Holger R?prich of "www.indesigns.de".
Go and see the solution here.
-With this extension, png pictures with vB collapse system don't work (under IE of course). P.S : even after having edited vbulletin_global.js

theArchitect 08-02-2005 03:56 AM

Fantastic. This is will come in most handy.

sirbutts 08-02-2005 04:16 AM

Quote:

Originally Posted by theArchitect
Fantastic. This is will come in most handy.

Beware this poses a heavy load on your server...

theArchitect 08-02-2005 04:34 AM

Quote:

Originally Posted by sirbutts
Beware this poses a heavy load on your server...

That is not so good. Though the sites I have in mind for this use very little traffic. So it should be ok.

But I will bear your warning in mind for the larger traffic sites.

Natch 08-02-2005 07:33 AM

Quote:

Originally Posted by sirbutts
Beware this poses a heavy load on your server...

I don't see the load issue you are talking about: it's not doing any image manipulation, just text replacement using a low-intensity str_replace()...

If this is a problem, then you should also turn off BBCODE processing, as that is far more intensive than this.

Note: this code does not and never has (or will) process PNG files linked in external CSS files, only in inline CSS (either within <style type="text/css"> tags or <div style="this-style: type;">)...

HTH, and GJ cclaerhout

Boofo 08-02-2005 08:14 AM

Hello stranger! ;)

cclaerhout 08-02-2005 08:18 AM

Quote:

Originally Posted by Natch
I don't see the load issue you are talking about: it's not doing any image manipulation, just text replacement using a low-intensity str_replace()...

If this is a problem, then you should also turn off BBCODE processing, as that is far more intensive than this.

Note: this code does not and never has (or will) process PNG files linked in external CSS files, only in inline CSS (either within <style type="text/css"> tags or <div style="this-style: type;">)...

HTH, and GJ cclaerhout

Happy to see you again Natch :)

cclaerhout 08-02-2005 06:55 PM

Little precision from Justin Koivisto himself :

Quote:

It's another bug with MSIE where for some reason when you use the
alpha filter, it places the image on top of everything, even though it
all appears correctly.
It means if a link is above a png background, it will not work !

cclaerhout 08-03-2005 11:29 AM

Information :
With this extension, png pictures with vB collapse system don't work (under IE of course).
P.S : even after having edited vbulletin_global.js

Johannes de Le?n 08-11-2005 09:21 AM

I use pngfix, it is much easier, and works great.

You can get it here.

Then just put this in the headinclude template:
Code:

<!--[if gte IE 5.5000]>
<script type="text/javascript" src="path/to/pngfix.js"></script>
<![endif]-->



All times are GMT. The time now is 02:51 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
  • Page Generation 0.01195 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete