![]() |
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/' 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 |
Fantastic. This is will come in most handy.
|
Quote:
|
Quote:
But I will bear your warning in mind for the larger traffic sites. |
Quote:
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 |
Hello stranger! ;)
|
Quote:
|
Little precision from Justin Koivisto himself :
Quote:
|
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 |
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]> |
Quote:
https://vborg.vbsupport.ru/showthread.php?t=77465 Why ? 1)It's not a sever side solution but a client side solution and i find it a lot slower on old compruters. 2)It's javascript. 3)It doesn't work with background pictures. |
Quote:
|
er...sorry for the stupid question...but I installed it...
but how do you know if its working? :ermm: |
Quote:
|
Quote:
Try this hack : https://vborg.vbsupport.ru/showthrea...ewpost&t=94430 :-) I'm working on a png bbcode to use png (with transparency) in threads. Width and height will have to be specified. |
Xml file updated with version of Koivi's script 2.0.11.
Quote:
|
Quote:
Go to "All style options", then in "Additional CSS Definitions" add : Code:
*a {position:relative;} Thanks to Holger R?prich of www.indesigns.de |
Quote:
Code:
*a {position:relative;} Instead, just add a style to your link Code:
style="position:relative;" |
works like a charm!
thanks!!! |
This hack is only necessary for 24-bit PNG images by the way. 8-bit PNG images (single colour transparency) work fine in IE without a hack.
|
Quote:
|
where do I hook this plugin?
|
Hey hey,
I am having problems with using this hack. I am running 3.5.2 and when installed non of my PNG images show up at all. I have uploaded spacer, installed the plugin, added the link mod, and changed the width and height of my image, but still the image doesnt show up :( What am i doing wrong :'( |
Quote:
|
Quote:
|
NEVERMIND
|
Can someone explain how to import this correctly?
|
To 350Chevy :
A simple example : Code:
<td class="tcat" width="100%" style="background-image: url('styles/lesatirique/cats/menumilieu.png');height:46px;"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]" style="position:relative;">$forum[title]</a></td> To voidet and board.trash : It should work. Check if the path to spacer.png file is correct. In most of cases, you don't have to specify width and height BUT you have to use relative links. I explain : Go to the Style Manager, choose your style and click on "GO" (All style options). Your Image Paths must also be written with relative URLs : "/forum/directory1/directory12/butons" AND not : "http://www.somethingforvb.com/forum/directory1/directory12/butons" Do the same thing into your templates. It should work. Now if some images don't display don't use for them relative links and don't forget to specify height and width. Exemple : Code:
<img src="http://www.somethingforvb.com/forum/directory1/directory12/picture.png" height="46" width="22" alt=""/> ... go to your Plugin Manager and "Add New Plugin". That's all. Of course, don't forget to edit your xml file. |
Script update
|
I am currently using the JS hack, which many users find too slow.
I have yet to get a straight answer as to the effect this has on the server load. I'd imagine that it's not pretty... |
When I install this the images disappear completely:
http://www.sierraleone.com/pngprob.jpg Any idea what I'm doing wrong? |
Quote:
|
So this does not affect server load, correct? I have kind of a busy forum and don't want to lag the complete machine.
Regards. |
Extremely slow for pages especially when it is needed several times such as with "Png Rounded Quotes (PRQ) version 3.00 - Valid XHTML 1.0" at https://vborg.vbsupport.ru/showthread.php?t=94430 If the plugin is disabled in the plugin manager pages load normally fast. When this plugin is enabled it takes forever for pages to load.
Also to note, tried the js hack and it did not work at all. This hack did work however is extremely resource needy. If it helps server running on is dual xeon 2.4 ghz, 1 gb ram, etc, etc. with hardly any previous load on it. The forums were also turned off with no current visitors. The reason I am adding this info is to help point out that there is a problem here with this hack. |
Quote:
solution to all your problems right there, if true. just convert your png to 8bit!! |
Well in a 8 bit png picture, you will loose the alpha transparency and the result will be similar as a gif transparency picture. If the solution was such simple, developers wouldn't spend so much time to find a way to make transparency works well with IE. Any way IE7 fixes the problem.
I don't think this hack is intensive for the server, but it is for IE on YOUR computer. |
how do I UNinstall this?
just delete the plugin? |
Yes, that's it.
|
Any chance to make it work with plugin accelerator hack ?
|
in vb 3.6.x this modification is causing display errors of png images.
which means that in many forums pngs are NOT displayed everytime. |
All times are GMT. The time now is 04:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|