Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Version 9.05, PNG's/GIF's
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Version 9.05, PNG's/GIF's

 Post Reply Post Reply
Author
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Topic: Version 9.05, PNG's/GIF's
    Posted: 11 September 2007 at 4:45pm
Firstly, I want to say THANK YOU for the great efforts and for providing us with more options on how to use the forum with png's and gif's.
 
My question is, is changing from PNG to GIF still done from the includes/topic_status_icons_inc.asp file?
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 4:54pm
It is done in that file but it's not setup in that file.

In the file includes/global_variables_inc.asp a variable for image type is set to either .png or .gif depending on the browser you are using. This is then used throughout the forum when selecting which images to display.

If you are using IE 7, Firefox, Safari, Opera, etc. you see the nice PNG images, if you are using IE 6 or below you see GIF images, which don't look quite as nice, but will render faster in these older versions of IE which do not natively support PNG's alpha channel.


Edited by -boRg- - 11 September 2007 at 4:55pm
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 5:39pm

Thanks Borg, so just to clarify ... since there are users of all kind of browsers, does it know which image type to display based on the browser the user is using? Or do we need to go into the includes/variables_inc.asp and tell it which image type to display to ALL users?

"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 5:45pm
WOW, i just saw this:  
'Check the client browser version
 strClientBrowserVersion = browserDetect()
 
 'If the cleint browser is IE 6 of below then display GIF's for some of the images
 If strClientBrowserVersion = "MSIE6-" Then
  strForumImageType = "gif"
 Else
  strForumImageType = "png"
 End If
 
This is impressive, thank you very much!
"When it gets dark enough, you can see the stars"
-Charles A. Beard
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.