The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
PHP - PNG Transparency hack....
I read about this PNG transparency "fix" that can be done through PHP....
http://www.koivi.com/ie-png-transparency/ I've been using the javascript fix for a while now, but since it can't do background images, this seems like the only way..... I've tried this many ways.... but I'm not a vb hacking expert so.... I was hoping maybe one of you kind people out there would have a use for this.... as it would allow a very powerful addition to VB.... allowing for easy use of High Quality PNG images with transparency in IE.... whether or not the person has javascript enabled (one of the main problems with the javascript fix) Any help on this issue will be "greatly" appreciated |
#2
|
||||
|
||||
wow... no interest in this huh?
thats too bad... |
#3
|
||||
|
||||
I also have a big dislike to IE, but as a designer of a range of sites, I have to support it, and as 90% of the world still uses IE, why not just process the output of the vB rendering process thru this function ...
PHP Code:
Code:
<img src="someimage.png" alt="image with transparency" /> originally posted on vb.com ... http://www.vbulletin.com/forum/showp...5&postcount=20 |
#4
|
||||
|
||||
i responded to you over at vb.com....
i appreciate the info... but i'm getting errors when i try to add that code to functions.php.... any suggestions on where to put the code? |
#5
|
||||
|
||||
Working on it - I'll let you know ...
|
#6
|
||||
|
||||
ah, that's great man.... i really appreciate it
|
#7
|
||||
|
||||
eh guess i'll go back to using gifs until those bastards at microsoft decide to support pngs properly
|
#8
|
||||
|
||||
i don;t suppose theres been any progress made on this?
|
#9
|
||||
|
||||
Quote:
Any way - I was messing with this, and actually found this thread in google - but since I was looking for something related I gave this a whirl - worked like a charm - with the instructions above - only thing I had an issue with is the spacer.png - which i just removed the path from the start of the function and placed it in the same directory as the rest of the main files and it worked no problem. Also - after I got this one working as listed above - I then went to the original website, and grabbed his updated code - and replaced the entire function with that - this version needs no sizes defined. |
#10
|
||||
|
||||
and actually I thought I was in the other thread when I responded
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|