Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Image Resizer Details »»
Image Resizer
Version: 1.0.2, by Jase2 Jase2 is offline
Developer Last Online: Jun 2009 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.7.2 Rating:
Released: 04-17-2008 Last Update: 04-17-2008 Installs: 1255
DB Changes Uses Plugins Template Edits
Additional Files Translations  
No support by the author.

Modfication Unsupported: This modfication is now unsupported, due to lack of time to work on it. However, TCattitude has continued development and added many cool NEW features. You can see the updated version here: https://vborg.vbsupport.ru/showthrea...=Image+Resizer

Image resizer for vBulletin version 3.6 and 3.7.
version: 1.0.2

Please remember to click Mark as Installed if you use this modification. Support questions from members who have not marked this as installed will be considered low priority.

What is this?
This resizes images in post that are bigger than the set dimensions in your AdminCP options. It also adds an information bar (which is not displayed when the image isn't resized) giving information about the original dimensions and filesize. Filesize is only supported on Internet Explorer, other browsers don't reveal this information through javascript.

Configuration
Please read the included readme.html

A big thanks to Spleasure, who actually created this product. He has given me the rights to the code, so I will be keeping it going for future versions, fixing any bugs, and adding new features.

Thanks, and Enjoy.

Please report bugs, or feature requests into this thread.

Thank you.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
sodasusu

Comments
  #102  
Old 04-20-2008, 09:43 PM
Andy92 Andy92 is offline
 
Join Date: Jan 2008
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jase2 View Post
Read post #50

As I've said in that post, I may work on this in a future version. But, at least it's better than nothing, at the moment.
Ok, how long into the future do you think?
Reply With Quote
  #103  
Old 04-20-2008, 09:55 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Andy92, that depends on a number of factors at this moment. I'm currently working on a few other "big" products, but when I get time -- I will add some new features.
Reply With Quote
  #104  
Old 04-20-2008, 11:13 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tmiland View Post
Another thing, make it an option when quoting a post to just show image link instead of the full image, that would save som bandwidth over time.
That would be awesome, but it sounds like a mod of its own.
Reply With Quote
  #105  
Old 04-20-2008, 11:53 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do like that idea tmiland. However, as furst rightly said, this would be it's own modfication. I'll see if I can create a product for this when I get some time. With Enable/Disable.
Reply With Quote
  #106  
Old 04-21-2008, 02:04 AM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jase2 View Post
I do like that idea tmiland. However, as furst rightly said, this would be it's own modfication. I'll see if I can create a product for this when I get some time. With Enable/Disable.
You must be hella busy. Every thread I go into I see you adding projects to your to do list :up:
Reply With Quote
  #107  
Old 04-21-2008, 04:34 AM
mktrilogy mktrilogy is offline
 
Join Date: May 2006
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks installed
Reply With Quote
  #108  
Old 04-21-2008, 11:28 AM
ErolALP's Avatar
ErolALP ErolALP is offline
 
Join Date: Mar 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed thanx jase
Reply With Quote
  #109  
Old 04-21-2008, 01:53 PM
tmiland tmiland is offline
 
Join Date: Mar 2008
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jase2 View Post
I will have to look at the code, I'm currently coding another hack.
Okey, i figured it out. Might be it can be done better (less code) but atleast it's working.

Here you go:
bbcode_parse_complete
PHP Code:
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && $this->ncode_imageresizer_do !== false) {
    
$text ncode_imageresizer_replace($text);
} elseif(
defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser_blog' && $this->ncode_imageresizer_do !== false) {
    
$text ncode_imageresizer_replace($text);

bbcode_parse_start:
PHP Code:
$this->ncode_imageresizer_do false;
if(
defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
    if(!empty(
$parsedtext) && $parsedhasimages) {
        
$parsedtext $this->handle_bbcode_img($parsedtext$dobbimagecode$parsedhasimages);
        
$parsedtext ncode_imageresizer_replace($parsedtext);
        
$parsedhasimages false;
    } else {
        
$this->ncode_imageresizer_do true;
    }
} elseif(
defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser_blog' && ($forumid != "signature" || $this->registry->options['ncode_imageresizer_resizesignatures'] == '1')) {
    if(!empty(
$parsedtext) && $parsedhasimages) {
        
$parsedtext $this->handle_bbcode_img($parsedtext$dobbimagecode$parsedhasimages);
        
$parsedtext ncode_imageresizer_replace($parsedtext);
        
$parsedhasimages false;
    } else {
        
$this->ncode_imageresizer_do true;
    }

Yay!
Reply With Quote
  #110  
Old 04-21-2008, 06:14 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey tmiland, can you explain what you did there?
Reply With Quote
  #111  
Old 04-21-2008, 07:00 PM
tmiland tmiland is offline
 
Join Date: Mar 2008
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi furst!
I added whats in the elseif statement, i simply "doubled" the code.

In the "if" statement you'll see 'vb_bbcodeparser' and to get it working in the blog, i added 'vb_bbcodeparser_blog' in the "elseif" part.

If you want, you can try the attached xml file, and see how it goes.
I'm currenly using that on a live site, and it's working great
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 02:51 PM.


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.06007 seconds
  • Memory Usage 2,335KB
  • Queries Executed 28 (?)
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_php
  • (4)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
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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