Author |
Message |
scorpious
Worker


Joined: Dec 03, 2005
Posts: 153
|
Posted:
Wed Dec 13, 2006 8:21 am |
|
Hi All
I have installed a subscription module, everything works fine, Its just some pictures are in PNG format and will not show. What do I need to do to show pictures in the PNG Format.
I have check to make sure the files are there and in the correct folders.
Many thank
Scorp |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Wed Dec 13, 2006 8:24 am |
|
but should the images be with the PNG extension ?
check what images it SHOULD show..
PNG ? JPG ? GIF ? |
|
|
|
 |
scorpious

|
Posted:
Wed Dec 13, 2006 8:36 am |
|
Hi
Here is the code:
echo "<center><span id=\"alImg7\" style=\"width:175px;height:101px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='modules/$module_name/images/subplans.png'); \"><img style=\"filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0); cursor: hand;\" src=\"modules/$module_name/images/subplans.png\" width=\"175\" height=\"101\" border=\"0\" alt=\"\"></span></center>";
}
cant quiet remember, but somewhere in one of the phpnuke files you can place the extensions like jpg,gif ect ect that can be used, should I place the PNG in this file.
Scorp |
|
|
|
 |
hitwalker

|
Posted:
Wed Dec 13, 2006 8:47 am |
|
any url to the page please where the images should show would help also... |
|
|
|
 |
scorpious

|
Posted:
Wed Dec 13, 2006 8:58 am |
|
Hi Hitwalker
I have sent you a pm with the info
Scorp |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Wed Dec 13, 2006 9:15 am |
|
I have no idea what that filter CSS attribute does, but I'm guess it's running your image through some external image loader thingy. Maybe it doesn't like png files. IE has had trouble in the past with displaying PNG files with transparent parts. (Fixed in IE7 I think). |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
hitwalker

|
Posted:
Wed Dec 13, 2006 9:47 am |
|
mmm indeed weird..
try this in your css..
*html #png { fillter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=modules/WS_Subscription/images/submain.png'); } |
|
|
|
 |
scorpious

|
Posted:
Wed Dec 13, 2006 9:53 am |
|
Hi
I am running IE7 and still cant see the pictures lol, I try the code and let you know.
Scorp |
|
|
|
 |
hitwalker

|
Posted:
Wed Dec 13, 2006 9:59 am |
|
well its a bit of a bug and works for some...
if not then we will dig deeper... |
|
|
|
 |
scorpious

|
Posted:
Wed Dec 13, 2006 10:06 am |
|
Hi Hitwalker
That code dint work it caused an error.
I have taken out the code and replaced it with the following:
echo "<center><img src='modules/$module_name/images/submain.gif' border='0'></center>";
I converted the png to gif and it seams to work
Scorp |
|
|
|
 |
hitwalker

|
Posted:
Wed Dec 13, 2006 1:43 pm |
|
if it works then thats fine to...  |
|
|
|
 |
|