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
  #92  
Old 04-20-2008, 10:04 AM
tmiland tmiland is offline
 
Join Date: Mar 2008
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tmiland View Post
Will it be possible to add an option to resize the pictures with f.eks lightbox, lytebox or highslide (if thats the right name?)
Quote:
Originally Posted by Jase2 View Post
That is a completely different product
Quote:
Originally Posted by John3971 View Post
It would be nice if you fix it so it can uses the new lightbox vb introduced in 3.7
I guess not
Reply With Quote
  #93  
Old 04-20-2008, 11:04 AM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

John and tmiland, I'm not entirely sure what you mean, and I am not familiar with lightbox, lytebox hack /mod ect.
Reply With Quote
  #94  
Old 04-20-2008, 11:09 AM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tmiland View Post
Okey, i'm trying to figure out how to make it work with the blog, and i did
Only thing is, that i cant figure out how to do both forum and blog.
So i guess thats where Jase2 comes in

I found out, after a little research, that if i changed this:
PHP Code:
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && $this->ncode_imageresizer_do !== false) {
    
$text ncode_imageresizer_replace($text);

to this:
PHP Code:
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser_blog' && $this->ncode_imageresizer_do !== false) {
    
$text ncode_imageresizer_replace($text);

And this part:
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;
    }

to this:
PHP Code:
$this->ncode_imageresizer_do false;
if(
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;
    }

it was working in the blog, though not in the forum (doh!) so what we need is to include "vb_bbcodeparser_blog" alongside with "vb_bbcodeparser" and voila!

Jase2! Could you please? My head hurts lol!

Try:

Find:
Code:
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && $this->ncode_imageresizer_do !== false) {
    $text = ncode_imageresizer_replace($text);
}
Change to:
Code:
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && 'vb_bbcodeparser_blog' && $this->ncode_imageresizer_do !== false) {
    $text = ncode_imageresizer_replace($text);
}
Let me know how that goes. I think I've grasped it, but need to see if this will work, first.
Reply With Quote
  #95  
Old 04-20-2008, 11:30 AM
tmiland tmiland is offline
 
Join Date: Mar 2008
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jase2 View Post
Try:

Find:
Code:
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && $this->ncode_imageresizer_do !== false) {
    $text = ncode_imageresizer_replace($text);
}
Change to:
Code:
if(defined('NCODE_IMAGERESIZER_INIT') && strtolower(get_class($this)) == 'vb_bbcodeparser' && 'vb_bbcodeparser_blog' && $this->ncode_imageresizer_do !== false) {
    $text = ncode_imageresizer_replace($text);
}
Let me know how that goes. I think I've grasped it, but need to see if this will work, first.
Afternoon

I already tried that one, and it didnt make any difference. Also tried a bunch of combinations without success. Been staring at that line of code since 05.30 in the morning lol!

Maybe it needs to be split up, or defined in 2 different "ways"? Hard to explain

*edit*
Quote:
Originally Posted by Jase2 View Post
John and tmiland, I'm not entirely sure what you mean, and I am not familiar with lightbox, lytebox hack /mod ect.
Her's a highslide mod : https://vborg.vbsupport.ru/showthread.php?t=172024
And lytebox : https://vborg.vbsupport.ru/showthrea...light=lightbox
Reply With Quote
  #96  
Old 04-20-2008, 11:57 AM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, you want to integrate one of them hacks into this, as a setting, so that it resizes images in the lightbox?

I will have to look at the code, I'm currently coding another hack.
Reply With Quote
  #97  
Old 04-20-2008, 12:07 PM
John3971 John3971 is offline
 
Join Date: Sep 2007
Location: Sweden
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i want the lightbox but it should use the one that is in the original vb 3.7
Reply With Quote
  #98  
Old 04-20-2008, 12:10 PM
tmiland tmiland is offline
 
Join Date: Mar 2008
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jase2 View Post
So, you want to integrate one of them hacks into this, as a setting, so that it resizes images in the lightbox?

I will have to look at the code, I'm currently coding another hack.
Right, thats what "we" ment... So that you have an option to choose between 1. standard resize 2. lytebox 3. highslide etc etc... But, that's no rush, i rather have this working with the vb blog
Reply With Quote
  #99  
Old 04-20-2008, 03:28 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by John3971 View Post
i want the lightbox but it should use the one that is in the original vb 3.7
I think the highslide mod is nicer. It lets you sort through the images with a next and previous buttons, unlike lightbox.
Reply With Quote
  #100  
Old 04-20-2008, 03:31 PM
John3971 John3971 is offline
 
Join Date: Sep 2007
Location: Sweden
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i still think its better to use the lightbox that jelsoft added in vb 3.7
Reply With Quote
  #101  
Old 04-20-2008, 06:03 PM
tmiland tmiland is offline
 
Join Date: Mar 2008
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 12:30 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.06271 seconds
  • Memory Usage 2,347KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (4)bbcode_php
  • (8)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_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