Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
NoMoreGifs Details »»
NoMoreGifs
Version: 1.00, by Zachery Zachery is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: Unknown Rating:
Released: 03-07-2007 Last Update: Never Installs: 33
 
No support by the author.

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.

Show Your Support

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

Comments
  #42  
Old 07-08-2008, 12:32 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You shouldn't though.
Reply With Quote
  #43  
Old 07-17-2008, 02:50 AM
drapton drapton is offline
 
Join Date: Mar 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this, it would be real helpful, but it's not working for me. instead of the png image i get a text, i right click the text, and click view image, it then gives me the 404.php page all blank. so basically i understand that it's not poiting to the gif anymore, but i dunno why it is not showing the png file then? any idea?
Reply With Quote
  #44  
Old 07-18-2008, 11:58 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A link to your site would be useful
Reply With Quote
  #45  
Old 07-19-2008, 07:51 PM
pranaysanghavi's Avatar
pranaysanghavi pranaysanghavi is offline
 
Join Date: Jun 2008
Location: India
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit htaccess file to give a full/proper url to your new 404.php

kindly explain proper steps in layman's terms...

u mean we shud create new htaccess and new 404.php, both of which we shud load in image dir of every style that our forum has?
Reply With Quote
  #46  
Old 07-20-2008, 01:45 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its explained as simply as possible.
Reply With Quote
  #47  
Old 07-22-2008, 10:33 AM
pranaysanghavi's Avatar
pranaysanghavi pranaysanghavi is offline
 
Join Date: Jun 2008
Location: India
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery View Post
Its explained as simply as possible.
hmm didnt work as expected. please open in IE-> http://www.officechai.com/testvbforum/index.php
see the empty image placeholders (scroll down) in main forum categories (not the header) on that very page..

I put the 404.php and .htaccess in here:
/public_html/testvbforum/images

i had some images in png, and not gif, same file name.. however, it still doesn't auto replace it. [i even changed the template to refer to .png] it still looks for testvbforum/images/styles/smartblue/statusicon/forum_old.gif but i do have testvbforum/images/styles/smartblue/statusicon/forum_old.png there.

i checked with my hostmonster guy, they do support this. any help appreciated.
Reply With Quote
  #48  
Old 07-22-2008, 11:23 AM
StGaensler's Avatar
StGaensler StGaensler is offline
 
Join Date: Jan 2005
Location: Munich
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Not Found

The requested URL /testvbforum/images/styles/smartblue/statusicon/forum_old.gif was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.officechai.com Port 80
The server can't find the ErrorDocument - the 404.php
Give him the correct path to this file, and he will find it.
Reply With Quote
  #49  
Old 07-25-2008, 05:16 PM
pranaysanghavi's Avatar
pranaysanghavi pranaysanghavi is offline
 
Join Date: Jun 2008
Location: India
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StGaensler View Post
The server can't find the ErrorDocument - the 404.php
Give him the correct path to this file, and he will find it.
How to give the correct path? sorry to trouble with silly questions, but i still can't get it working. this is the final mod that I need to configure, apart from one unrelated, before i could go live.

I've put .htaccess at 3, 4 places in the dir structure. where all shud i put 404 and where all shud i put .htaccess?

I'm new to .htaccess and php, as per the instruction I've added the files. still i dont see any result. can u please guide me little easy? :erm:
Reply With Quote
  #50  
Old 08-21-2008, 05:55 PM
gezuvor gezuvor is offline
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My server can find the 404 file, but it's just showing a blank page... ?
Reply With Quote
  #51  
Old 09-02-2008, 10:49 PM
dannykilla's Avatar
dannykilla dannykilla is offline
 
Join Date: Jun 2007
Location: Manchester, UK
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Zachery,

I have now uploaded the .htaccess & 404.php file to the /images/ directory and give the full path to the 404.php file on the .htaccess and also uploaded a newthread.png and removed the newthread.gif img.

but I dont get the png image I just get text, I sent you a PM with my URL.

Thanks m8
Dan
Reply With Quote
Reply

Thread Tools

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 02:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07804 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete