Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2008, 05:59 AM
nul7 nul7 is offline
 
Join Date: Sep 2006
Location: USA
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Changing Icons from .gif to .png

I have created a new set of Icons for my site, but they are all .png now and not .gif...what specifics are needed to change in the code of the templates for the .png icons to start showing up. I am no seasoned coder at this and just wanted some straight forward pointers before I start changing things around on my own.

Thanks much for any help someone can provide me.
Reply With Quote
  #2  
Old 09-27-2008, 08:27 PM
gfxhelp.com gfxhelp.com is offline
 
Join Date: Aug 2008
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you need to find where ever the gif images are defined and then change the code. It will probably look something like...

<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>

the "newthread.gif" would need to be changed to newthread.png for each icon. I would probably do "Search in Templates" from the admin cp and put in "imagename.gif" so you can see all the templates that need to be changed, and then edit each template.
Reply With Quote
  #3  
Old 09-28-2008, 08:46 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Renaming your .png files to .gif might also work.
Reply With Quote
  #4  
Old 09-28-2008, 01:28 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

an even easier way if renaming to png doesnt work is use the replacement variable system. Enter the normal icon name ie: newreply.gif and use newreply.png as the replacement.
Reply With Quote
  #5  
Old 09-28-2008, 04:37 PM
nul7 nul7 is offline
 
Join Date: Sep 2006
Location: USA
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gfxhelp.com View Post
you need to find where ever the gif images are defined and then change the code. It will probably look something like...

<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>

the "newthread.gif" would need to be changed to newthread.png for each icon. I would probably do "Search in Templates" from the admin cp and put in "imagename.gif" so you can see all the templates that need to be changed, and then edit each template.
Thank you very much for that

Quote:
Originally Posted by Marco van Herwaarden View Post
Renaming your .png files to .gif might also work.
Holy crap...lolz, who would have thought it was that dang easy...much appreciated...

Quote:
Originally Posted by FRDS View Post
an even easier way if renaming to png doesnt work is use the replacement variable system. Enter the normal icon name ie: newreply.gif and use newreply.png as the replacement.
What codes are needed to make that work? Only thing I see in that system is "Default Style [Add New Replacement Variable]"
Reply With Quote
  #6  
Old 09-29-2008, 09:34 AM
notrious notrious is offline
 
Join Date: Mar 2007
Location: New York
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

easiest way .. just upload them to your ftp and rename it any extension you want ..

GIF, PNG, JPEG
Reply With Quote
  #7  
Old 09-29-2008, 03:17 PM
Shelley_c's Avatar
Shelley_c Shelley_c is offline
 
Join Date: Jan 2006
Location: United Kingdom
Posts: 1,992
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree replacement variables will work nicely, although ,this isn't the more efficient way. Replacement variables work well if you wish to have different smilies/post icons for different styles but i would personally edit the extension and modify the appropriate template. Infact, modifying .gifs with colours less than 256 colours will not increase the quality when changing the extension unless you actually design the icons yourself and that icon is more than 256 colours. Then again, it depends on what .png formatted icon your uploading.

The best way is that you design the icons yourself and save the source file to .png and then to modify the extensions within the appropriate template. All the other suggestions are just make do and even then (pending on the quality of the file) you could be changing the extension with no noticeable differences. The .gif file will remain 256 colours or less no matter what extension you change it to.

Anyway, I'll stop rambling and and stop pretending that I know what I'm on about.
Reply With Quote
  #8  
Old 10-07-2008, 04:34 PM
nul7 nul7 is offline
 
Join Date: Sep 2006
Location: USA
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well...yes I designed some of the icons...but it was more of a search for high quality jpegs...modified them to have a transparent background and then saved them as a high end png...here are some examples.

Instead of the low end gif of AIM...I reconfigured it to be a high end png file so the edges were smoother and looked much cleaner.



Here is msn


Yahoo


Offline icon


online icon


Changing the extension to .gif from .png worked fine and in fact was the easiest way to go...everything transitioned over and the icons look great.

So, thanks for everyone's help with this matter.
Reply With Quote
  #9  
Old 04-23-2009, 05:14 AM
Millen Millen is offline
 
Join Date: Jun 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gfxhelp.com View Post
you need to find where ever the gif images are defined and then change the code. It will probably look something like...

<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a>

the "newthread.gif" would need to be changed to newthread.png for each icon. I would probably do "Search in Templates" from the admin cp and put in "imagename.gif" so you can see all the templates that need to be changed, and then edit each template.
I can not find all the specific images when i search... especially the forum status icons forum_old_locked.gif etc.

Quote:
Originally Posted by Marco van Herwaarden View Post
Renaming your .png files to .gif might also work.
Yes this might work for some people...
But what would the people who do care about bandwidth usage and transparent issues do?
My files need to be .png and i can not locate the templates where the forum status icons are.
Reply With Quote
  #10  
Old 02-22-2010, 10:50 AM
Pandadisossato Pandadisossato is offline
 
Join Date: Jan 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to rename images but the result was ok for ffox and opera only.
IE8 do not render the pgn renamed, this due differently from ff and opera don't check the real head of the imagefile. IE render depend upon image extension declared in the source page.

Might be a lot useful add an option to automatically convert the vb standard images referements from gif to png due the only alternative way, mainly if you want perform a radical image site replacement is rename all ".gif" in ".png" directly in the database.
An hard work if done manually...

I think this will help, users that will follow my path
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:46 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.07595 seconds
  • Memory Usage 2,271KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete