The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vB Integration of "Normal display of PNG Alpha Transparency with MSIE" PHP script Details »» | |||||||||||||||||||||||||||
vB Integration of "Normal display of PNG Alpha Transparency with MSIE" PHP script
Developer Last Online: Apr 2022
File Edits: 2 (in one file)
New Files: 1 (forumroot/images/spacer.png) This script, for those that don't know it, is a server-side solution to the faulty display of 24-bit alpha transparencies in MSIE... For more info please read up on the site created by the d00d that wrote the script - all the props go to him! Created in response to my need to bloody well get it right after so many months, as well as https://vborg.vbsupport.ru/showthread.php?t=61091 and https://vborg.vbsupport.ru/showthread.php?t=66846... OK - now to get this integrated to your vB so that any PNG24 images with transparency will display without that ugly grey backdrop in MSIE, please do the following: In includes/functions.php: Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
OK - now the only reason this will not work (except if you neglect to upload this excellent functions.php file) is if your calls to the PNG file of your choice does not have a full definition ... When I say work - your forum will still work no probs, it's just the script will pass over each PNG tag like the Angel of Death over a blood-stained door if you don't fit the bill Will work: <img src="$vboptions[bburl]/images/misc/someimage.png" width="10" height="10" /> Will not work: <img src="$vboptions[bburl]/images/misc/someimage.png" /> Will work: <img src="clear.gif" style="background-image:url($vboptions[bburl]/images/misc/someimage.png);height:10px;width:10px" /> Will not work: <img src="clear.gif" style="background-image:url($vboptions[bburl]/images/misc/someimage.png)" /> Will work: <body style="background-image:url($vboptions[bburl]/images/misc/someimage.png)"> Read over his page if you want more info as I said Enjoy y'all ( and please remember to test this in IE - it will only make a difference if you use IE ) I've also attached for your own testing, the same image used in the test on the original author's site... Have fun kiddies May the PNG24 be with you LOL - well that attachment of the spacer.png doesn't work ;D you need to be able to see the 1x1 attachment to click on it hehe... feel free to grab it from http://www.mobileforces.org/forums/images/spacer.png EDIT 26-08-2004: This links to a HOW-TO on using this with Avatars - it requires a small one-file, one-tempalte hack. EDIT: 07-01-2005 The function this is based on was updated a while back to NOT require the width and height to be explicitly defined, and so this has now been updated to include the latest version of this function. TO UPGRADE: Just replace: PHP Code:
PHP Code:
Supporters / CoAuthors Show Your Support
|
Comments |
#22
|
|||
|
|||
Nach, they are currently stored in the database. Should I change that?
|
#23
|
||||
|
||||
I'll be re-releasing this to include the new script which works without needing the height and widht... been too busy the last little while to do anything about it - you could try putting them into the filesystem - see how you go.
|
#24
|
||||
|
||||
Quote:
...well, except for wiping my logo out on vBaCMPS. |
#25
|
||||
|
||||
Well the only thing you would need to do is make sure you place the path back in to the spacer.png
|
#26
|
||||
|
||||
Quote:
|
#27
|
||||
|
||||
Quote:
|
#28
|
||||
|
||||
The path - you should use a full path, or use the $_SERVER['DOCUMENT_ROOT'] superglobal to prefix your path to your spacer.png...
|
#29
|
||||
|
||||
I am using exactly the same block of text (the function) in both includes/functions.php .. on one site (the totally new one) it works marvellously.
On the other (my existing site), on the index.php, there is nothing visible above the navbar. On checking the source, I get almost exactly the same thing on both, except on the one with no logo on index.php, the logo section looks like this: PHP Code:
|
#30
|
||||
|
||||
well it looks like you are using forums. format in the same situation as /forums/ - you need some consistency here
Suggest you change the path to / from /forums/... |
#31
|
||||
|
||||
Yeah, it's on a subdomain really, the new one hasn't had that set up yet...maybe that is it.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|