Go Back   vb.org Archive > vBulletin Styles and Graphics > vBulletin Graphic Sets > Miscellaneous Images
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vbulletin Basic Icons exported to png 8-bit format Details »»
vbulletin Basic Icons exported to png 8-bit format
Version: 1.00, by Michael Morris Michael Morris is offline
Developer Last Online: Jun 2009 Show Printable Version Email this Page

Version: 3.6.x Rating:
Released: 10-29-2007 Last Update: Never Installs: 12
Template Edits
Re-useable Code  
No support by the author.

For those not familiar with it, PNG was originally conceived as a replacement for the Compuserve GIF format in the mid-90's. Although the default Adobe Fireworks file format, PNG is also readable by most browsers. Unlike GIF, PNG preserves the opacity of the images - PNG's do not suffer from the halo effect.

There are three flavors of PNG - PNG8, PNG24 and PNG32. Of these PNG32 is the most widely known about. Unfortunately PNG32 images are not read correctly by Internet Explorer 6 or earlier when they have an alpha channel. The resulting gray box effect is quite ugly to look at and has lead to most developers staying away from PNG altogether.

HOWEVER, PNG8 doesn't have this problem. IE 6 and even 5.5 for mac will read these files correctly and preserve their opacity setting. Further, older browsers that can read PNG (most IE 4 or later, Netscape 4 or later) at all will simply drop the colors in the palette with an alpha setting if they don't understand it, otherwise they treat PNG8's as gif files.

The upside of this is the PNG8 files can be read by all browsers. PNG8 is also the lost format of the Internet because, interestingly, only one graphics package will save a file in PNG8 -- Fireworks (and it's done so since at least version 4). Further PNG8 files are considerably smaller than PNG32 files and for small images or images without a wide range of colors PNG32 offers no real advantage over this lost format.

With that long introduction over, the fileset of this modification simply presents all standard vbulletin icons saved in PNG8 with their alpha settings saved. You need only edit the templates of your board changing any pointer to .gif to .png. I haven't tried it, but you should be able to do a find and replace in templates and replace all instances of .gif with .png (BACKUP YOUR TEMPLATES BEFORE DOING THIS).

Download Now

File Type: zip vbulletinpng8.zip (206.0 KB, 264 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-05-2007, 11:24 PM
Dr. Bantham's Avatar
Dr. Bantham Dr. Bantham is offline
 
Join Date: Feb 2007
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having trouble with the PNG images displaying on FORUMHOME. Though the new PNG variants display within the legend at the bottom of the page (e.g. forum_new.png, forum_old.png), the images within the forum list are the old GIF versions (e.g. forum_new.gif, forum_old.gif). I have confirmed that the appropriate templates refer to the PNG files.
Reply With Quote
  #3  
Old 11-08-2007, 04:35 PM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr. Bantham View Post
I am having trouble with the PNG images displaying on FORUMHOME. Though the new PNG variants display within the legend at the bottom of the page (e.g. forum_new.png, forum_old.png), the images within the forum list are the old GIF versions (e.g. forum_new.gif, forum_old.gif). I have confirmed that the appropriate templates refer to the PNG files.
You sure? There are 5 templates here that all much change. FORUMHOME (the legend is near the bottom of the template) forumhome_level1_post, forumhome_level1_nopost, forumhome_level2_post, forumhome_level2_nopost.

If you are unsure of the template responsible go to vbulletin options and in general settings turn on "Display template name in html comments" This will put the template names in the output code so you can see which template needs to be altered.
Reply With Quote
  #4  
Old 11-08-2007, 04:49 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If PNG8 doesn't have alpha transparency, why bother using them?
Reply With Quote
  #5  
Old 11-08-2007, 11:03 PM
Dr. Bantham's Avatar
Dr. Bantham Dr. Bantham is offline
 
Join Date: Feb 2007
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michael Morris View Post
You sure? There are 5 templates here that all much change. FORUMHOME (the legend is near the bottom of the template) forumhome_level1_post, forumhome_level1_nopost, forumhome_level2_post, forumhome_level2_nopost.

If you are unsure of the template responsible go to vbulletin options and in general settings turn on "Display template name in html comments" This will put the template names in the output code so you can see which template needs to be altered.
Thanks for pointing out the templates. I had searched and replaced forum_new.gif (etc.) with png file variants Though this worked for FORUMHOME, forumhome_level1_post and forumhome_level2_post were referencing the files as variables ($forum[statusicon].png). It was a quick fix once I knew where to look.
Reply With Quote
  #6  
Old 11-11-2007, 12:41 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For anyone who will use this, I suggest my mod.

https://vborg.vbsupport.ru/showthrea...=141493&page=2
Reply With Quote
  #7  
Old 11-27-2007, 07:18 PM
mikeroq mikeroq is offline
 
Join Date: Oct 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can choose between PNG-8 and PNG-24 in Photoshop.
Reply With Quote
  #8  
Old 11-29-2007, 08:15 PM
racechick20 racechick20 is offline
 
Join Date: Aug 2006
Location: Lancaster, UK.
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Michael, off topic slightly but I just wanted to say thanks! Finding this and your wonderful explaination has helped me out of a sticky situation. I had 3 part stretching PNGs w/ partial transparency between my forums and I was horrified when I learned that older browsers could see the ugly grey area. Understanding this stuff enabled me to re-export the images as PNG8 using Paint Shop Pro 9.

Just in case it may help someone else down the line - export > PNG Optimizer > Palette based w/ Optimized Octree > set transparency. It works a treat - the drop shadows went a little wierd but it works with the styling I have used. Thanks again! :up:
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:22 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07534 seconds
  • Memory Usage 2,290KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete