vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - NoMoreGifs (https://vborg.vbsupport.ru/showthread.php?t=141493)

Zachery 03-07-2007 10:00 PM

NoMoreGifs
 
I had been working on a style for my now defunt site, while developing it, since IE7 was final and PNG's are just too cool to pass up anymore. I found it a pain to re-write all of the vBulletin templates to use the .png extension on the images. Not to mention this would make upgrading a pain in the butt.

I had Matthew make me this snipet of code. I told him I would release it and he said its fine.

So to you I now give you the ability to not have to use gif's but png's in your image folders.

You're webserver must support custom error documents via htaccess.

Installation,
Edit htaccess file to give a full/proper url to your new 404.php document
Put both the htaccess file and the 404.php file in the base of you images folder.

I only offer support when I have time. This modification is otherwise unsupported, but working.


For style developers, if you wish to use this, please give credit where credit is due :), a link back to this mod would be great.

beduino 03-08-2007 03:37 PM

Tks Zachery!
All the best
Beduino

Skavenger 03-08-2007 03:41 PM

I don't understand very well, sorry... but, is this hack something like this?

http://homepage.ntlworld.com/bobosola/

Dan 03-08-2007 03:42 PM

Awesome idea Zak :D pngs ftw

Zachery 03-08-2007 03:43 PM

No, this allows you to use all png images without having to re-write vBulletin templates to do so.

Your browser will first look for a .gif file, if its not found, it sends a 404 error and thus a broken image. We use a custom 404 file to redirect to the same named image but .png and forward it to your browser.

So for example

https://vborg.vbsupport.ru/images/cs...ser_online.gif https://vborg.vbsupport.ru/external/2010/01/8.gif
Normal image, you remove https://vborg.vbsupport.ru/images/cs...ser_online.gif and add
https://vborg.vbsupport.ru/images/cs...ser_online.png the 404 file will redirect to this instead.

Ziki 03-08-2007 07:31 PM

No vB version?

Zachery 03-08-2007 07:32 PM

It'd work for every version of vBulletin from vB Lite to vB 2020, this could even be used on other software, websites, etc.

Hornstar 03-09-2007 01:08 PM

awesome work, thanks!

Ziki 03-09-2007 10:03 PM

How can I do that to not select vb version

Zachery 03-10-2007 01:28 AM

I'm just good.


All times are GMT. The time now is 12:31 PM.

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.04327 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete