Powerbasic Museum 2020-B

General Category => Meta Forum => Topic started by: José Roca on August 02, 2007, 06:42:33 PM

Title: New Logo
Post by: José Roca on August 02, 2007, 06:42:33 PM
 
We have a new logo, courtesy of Patrice Terrier. Thanks very much, Patrice!

There is a problem with Internet Explorer (of course, there is always a problem with this browser, isn't it?), that doesn't honor the transparency of the PNG image and renders the background as gray.

Transparency is needed because the color of the forum can be changed by clicking one of the small colored bars.
Title: Re: New Logo
Post by: Petr Schreiber on August 02, 2007, 08:22:45 PM
New logo looks perfect,

in Firefox 2.0.0.6 it is displayed as it should, IE ... has its own way to draw it :).
Is it problem also in version 7.0 of IE ( I have 5.5, just for ftp access ) ?


Thanks,
Petr
Title: Re: New Logo
Post by: Theo Gottwald on August 02, 2007, 08:41:44 PM
In IE 6 it doesn't render properly.
Title: Re: New Logo
Post by: Eros Olmi on August 02, 2007, 08:54:38 PM
IE7 XPSP2
All is ok here.
Title: Re: New Logo
Post by: Kent Sarikaya on August 02, 2007, 11:22:09 PM
Very nice, but seeing how incredible you guys are, I would like to see those gears turn :)

Looks very nice, I use firefox.
Title: Re: New Logo
Post by: Paul Squires on August 03, 2007, 12:11:53 AM
Patrice did all of my PlanetSquires art work. That guy has talent!
Title: Re: New Logo
Post by: Theo Gottwald on August 03, 2007, 08:24:30 AM
No doubt, but I'd prefer a sollution as transparent ".gif" which renders on IE 6 also.
Title: Re: New Logo
Post by: Kent Sarikaya on August 03, 2007, 08:30:52 AM
This is how it looks in firefox which it is working fine in.
Title: Re: New Logo
Post by: Patrice Terrier on August 03, 2007, 08:36:12 AM
Theo

Time is changing, we are not anymore on compuserve (GIF)

Do yourself a favor, upgrade to IE7 (the current standard), it is free, it is much better than 6 and it handles PNG just fine and even better than FireFox (resizing with antialising)  ;D
Title: Re: New Logo
Post by: José Roca on August 03, 2007, 09:25:11 AM
 
As an alternative, you can choose another theme.

Click "Profile", then "Modify Profile-->Look and Layout Preferences". In the profile dialog, you will see "Current Theme: Forum or Board Default (change)". Click "change" and select a theme. The one called "Cityscape" has already the template modified to show the code as you like.
Title: Re: New Logo
Post by: Charles Pegge on August 03, 2007, 09:25:50 AM
Patrice's new Logo works very nicely in Konqueror which is part of the KDE desktop suite, used in many Linux distributions.  - my favourite browser at present.
Title: Re: New Logo
Post by: Theo Gottwald on August 03, 2007, 10:21:29 AM
>Do yourself a favor, upgrade to IE7 (the current standard),

Actuall I am still developing under W2k.
Besides I am using my IE6 Buttonbar (http://www.winrobots.de/shtmls/quicksurfer.shtml)
which only works on IE 6. Because it give me a lot of advantages I do not want to switch to IE 7 actually.

As you can see here, 37% of all surfers still have the IE 6 (http://www.w3schools.com/browsers/browsers_stats.asp).

Therefore the point is not me, but a professional designed web-site should be designed to work for all types of browsers.
Title: Re: New Logo
Post by: José Roca on August 03, 2007, 10:36:51 AM
 
Quote
Therefore the point is not me, but a professional designed web-site should be designed to work for all types of browsers.

You should tell it to Microsoft :) Try to use msdn2 with a browser other than IE.
Title: Re: New Logo
Post by: Patrice Terrier on August 03, 2007, 11:45:15 AM
QuoteActuall I am still developing under W2k.

Ok, then I see why you love so much PowerBASIC ;)

Note: I did this logo as a way to say thank you to José for all his hardwork,
but it is not a problem for me if, he or you, restore the previous one.

And whatever choice is yours, I will still contribute there  :-*

Gruss aus frankreich
Title: Re: New Logo
Post by: Theo Gottwald on August 03, 2007, 12:11:35 PM
Be sure that I wont tell Jose how he should design his forum.
What I say is just my opinion as It-Consultant.

The Logo is definitely nice, its not a design question, but a usability problem,
if you rule out more then 2% of possible users.

My idea was to use the same (or slightly adapted) Logo as ".gif" as izt seems that transparent .gif's are more compatible.
Title: Re: New Logo
Post by: José Roca on August 04, 2007, 06:36:45 AM
 
Problem solved. IE6 users will see the old logo and the others the new logo.

I have modified the index template from


   if(!($settings['logo_not_show']))
   {
      if (empty($settings['header_logo_url']))
         echo '
                  <a href="', $scripturl, '"><img src="', $settings['images_url'] . '/'. $settings['theme_main_color'], '/logo.jpg" style="margin: 0px;" alt="', $context['forum_name'], '" title="', $context['forum_name'], '"/></a>';
      else
         echo '
                  <a href="', $scripturl, '"><img src="', $settings['header_logo_url'], '" style="margin: 0px;" alt="', $context['forum_name'], '" /></a>';
   }


to


   if(!($settings['logo_not_show']))
   {
      if (empty($settings['header_logo_url']))
         echo '
                  <a href="', $scripturl, '"><img src="', $settings['images_url'] . '/'. $settings['theme_main_color'], '/logo.jpg" style="margin: 0px;" alt="', $context['forum_name'], '" title="', $context['forum_name'], '"/></a>';
      elseif (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0'))
         echo '
                  <a href="', $scripturl, '"><img src="/images/forum_logo_01.gif" style="margin: 0px;" alt="', $context['forum_name'], '" /></a>';
      else
         echo '
                  <a href="', $scripturl, '"><img src="', $settings['header_logo_url'], '" style="margin: 0px;" alt="', $context['forum_name'], '" /></a>';
   }


Everybody happy? :)

PS Tested with FireFox, Opera and Internet Explorer 6.0.
Title: Re: New Logo
Post by: Kent Sarikaya on August 04, 2007, 06:46:56 AM
Is the original Logo a jpg or png? I thought jpg didn't support transparency?
Anyways nice to see how to code that sort of fix, thanks Jose!
Title: Re: New Logo
Post by: José Roca on August 04, 2007, 07:06:57 AM
 
The original logo is a transparent .gif. I did it with an icon editor, just to have something to show. Patrice's logo is a transparent .png, that can handle progressive opacity and more than 256 colors.
Title: Re: New Logo
Post by: Theo Gottwald on August 04, 2007, 08:42:53 AM
Jose, you are amazing again.
Now you get even a web-programmer in your spare-minutes. :-)
Title: Re: New Logo
Post by: Patrice Terrier on August 04, 2007, 09:37:39 AM
José

If I remember well you also speak french, don't you?  ;D

Here is the solution to display correctly transparent PNG even with IE6...
Java script (http://midiwebconcept.free.fr/PNG_IE.htm)
Title: Re: New Logo
Post by: José Roca on August 04, 2007, 09:49:01 AM
 
Mais oui, but the theme is written in php, not html. Anyway, IE6 users visiting this forum will we few.
Title: Re: New Logo
Post by: Theo Gottwald on August 04, 2007, 10:37:34 AM
I would also favour php because the JAVA Script is disabled if the browser settings are set to safe.
PHP should work under any conditions as its server based.
Title: Re: New Logo
Post by: Patrice Terrier on August 04, 2007, 11:20:28 AM
Then here is a PHP solution
PNG in PHP (http://koivi.com/ie-png-transparency/)

Note: they improperly speak of PNG 24-bit, but indeed they should write PNG 32-bit.
24-bit has no room for the alpha channel, it must use full ARGB  instead of RGB.

If interrested I can show you how to display full 32-bit ARGB image preserving the alpha channel.
Title: Re: New Logo
Post by: José Roca on August 04, 2007, 11:33:54 AM
 
Don't force me to do many changes. The template isn't mine and with every version of the forum software I have to install a new version of it and redo the changes, and I have no idea of php programming.
Title: Re: New Logo
Post by: Theo Gottwald on August 04, 2007, 12:19:48 PM
As said, actually it works perfectly.
Never change a running system ..? :-)