Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-06-2007, 03:05 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,364
Thanks: 168
Thanked 436 Times in 275 Posts
How To: Getting Transparent PNG's to work in IE6

As any pligg template developer will tell you getting things to look right for IE6 is a total pain because microsoft doesn't feel like they should have to abide by any sort of development standards.

One huge problem was that IE6 didn't render transparent PNG's correctly.

After poking out my eyeballs and ripping out my hair, I found the following solution.

First download the iepngfix.rar file below.

Extract the file and upload iepngfix.htc to the CSS folder of your template.
example templates/yget/css/

Now open your main css file (templates/yget/main.css)
and add the following code
Code:
img { behavior: url(iepngfix.htc); }
That is it. Clear PNG's will now work in IE6

This will also work with transparent backgrounds. So something like
Code:
#header { background:url(header.png); }
Could be used like this.
Code:
#header { background:url(header.png); }
img, #header { behavior: url(iepngfix.htc); }
Enjoy
Attached Files
File Type: rar iepngfix.rar (1,017 Bytes, 39 views)
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #2 (permalink)  
Old 01-24-2008, 04:53 AM
New Pligger
Pligg Version: 9.9
Pligg Template: Default
 
Join Date: Jan 2008
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Well this seems to be enabled in the newer version of pligg but its breaking my embedded google maps, is there any reason I need to apply it so generally on the default yget template?
Regards
Mike
Reply With Quote
  #3 (permalink)  
Old 01-24-2008, 06:24 AM
Pligg Donor
 
Join Date: Sep 2007
Posts: 184
Thanks: 7
Thanked 37 Times in 26 Posts
Chuck, will the fix also work for BOTH site urls (with and without the www), such as when a user types in the url http://www.yoursite.com rather than http://yoursite.com for pligg.

I only raise this question because this was the biggest issue that came up for many joomla templates with this iepng fix. The only work around was to make sure you used an exact path in the htc file and then made changes in the .htaccess to redirect all www calls to domain.com without the www (or vice versus, whichever method is preferred.)
Reply With Quote
Reply

Thread Tools
Display Modes
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
"Tell a friend" doesn't work on pligg 0.995 version leosophy Bug Report 6 10-06-2008 08:58 PM
AjaxContact and Send Welcome Email module do not work dzshopping General Help 3 01-16-2008 09:57 AM
Licensing tbronson Wiki Articles 0 10-27-2007 11:55 PM
'sort news by' link don't work todayworldstory General Help 3 03-29-2007 08:56 AM
Long URLs Don't work tchristensen General Help 1 01-28-2006 02:59 PM


Search Engine Friendly URLs by vBSEO 3.2.0