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
  #272  
Old 06-30-2008, 02:25 PM
D.Baker D.Baker is offline
 
Join Date: May 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Alliya, to remove the yellow warning box from images embedded using IMG tags, add the following CSS to your style.

Code:
.ncode_imageresizer_warning {
    display: none;
}
After doing that you will notice that there is no way to click on the image to enlarge it, so you'll need to do the following. I don't like doing it this way because it involves editing a core file, but it's the only way I could figure it out. Maybe Jase knows a better way.

Using FTP, browse to /includes/ and edit the following line of PHP code in the file "class_bbcode.php".

PHP Code:
return '<img src="' .  $link '" border="0" alt="" />'
change to:
PHP Code:
return '<a target="_blank" href="' $link '"><img src="' $link '" border="0" alt="" /></a>'

This should get it working, but you will then notice that the images sit flush on top of each other (they have no margin), which looks bad when they are posted in that way (see here for an example of what I am talking about, note that I have not disabled the warning box).
Reply With Quote
  #273  
Old 07-01-2008, 01:54 AM
YuOr YuOr is offline
 
Join Date: Jun 2008
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed!
i was testing it out and the information on the bar says "The original image is sized %1%2." What is that?
Reply With Quote
  #274  
Old 07-01-2008, 05:15 PM
Yarike Yarike is offline
 
Join Date: Jan 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Using this but its not resizing images even though the image is double the size the limit is set at?
Reply With Quote
  #275  
Old 07-02-2008, 02:08 PM
Alliya Alliya is offline
 
Join Date: Nov 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Baker,

thanks thats fine, we don't use many pictures so only the first code is fine just in case someone doesn't know how to resize them

Alliya
Reply With Quote
  #276  
Old 07-03-2008, 06:35 PM
TCattitude's Avatar
TCattitude TCattitude is offline
 
Join Date: Oct 2004
Location: Chile
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jase2, just PM you the packed mod
Reply With Quote
  #277  
Old 07-03-2008, 07:24 PM
Ingress Ingress is offline
 
Join Date: Nov 2007
Location: Germany
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just messed with the code again, I'm really sorry ;-)

I regularly copy my complete live-board into a test-environment, which resides under testboard.domain.com.

There is a problem with the code in product-imageresizer.xml (line 122) which is

Code:
<script type="text/javascript" src="$vboptions[bburl]/clientscript/ncode_imageresizer.js?v=1.0.1"></script>

Since I don't update my bburl when I copy (and never had to with other mods) your mod didn't work any more with that absolute link. I just made the link relative which eliminates the obligation to alter bburl in ACP-Options when you do such a copy (or when people just move their board and are lazy ...).

Making it relative won't hurt and is the best way in my opinion; if you also think so you will change line 122 to

Code:
<script type="text/javascript" src="clientscript/ncode_imageresizer.js?v=1.0.1"></script>

in your next release ;-).

Kind regards and thanks for maintaing this fine mod,

Ingress

<edit>

Just noticed you also need to change the URL to the tiny symbol in js-file to achieve full relativity ;-)

Change line 119 of ncode_imageresizer.js

Code:
mimg.src = NcodeImageResizer.BBURL+'/images/statusicon/wol_error.gif';

to

Code:
mimg.src = 'images/statusicon/wol_error.gif';

and the job is fully done.

</edit>
Reply With Quote
  #278  
Old 07-04-2008, 01:36 AM
cartooner cartooner is offline
 
Join Date: Sep 2005
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed and so far so good. One question, instead of the information bar how about adding an option to have a "mouse over" info bar. In members Sigs my members don't go for anything like this cluttering up their Siggie. So why not have it that when you roll your mouse over the image the pointer changes and an info box pops up. One of the older Image Resizer hacks have that....https://vborg.vbsupport.ru/showthrea...=image+resizer. But It is an older hack and It was one of the hacks I think gave me problems with "security-token" error messages several of my members were getting.

Just wondering if a mouse over is doable. Thank you.
Reply With Quote
  #279  
Old 07-04-2008, 10:10 PM
xoutlawz00x xoutlawz00x is offline
 
Join Date: May 2008
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea i would love a mouse over instead of the yellow bar tooo. thankssss
Reply With Quote
  #280  
Old 07-05-2008, 02:08 AM
D.Baker D.Baker is offline
 
Join Date: May 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want a mouse over instead of a yellow bar read post 271, I provided a hack to do it.
Reply With Quote
  #281  
Old 07-05-2008, 02:29 PM
cartooner cartooner is offline
 
Join Date: Sep 2005
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by D.Baker View Post
If you want a mouse over instead of a yellow bar read post 271, I provided a hack to do it.


Thank you.
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 04:42 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.05740 seconds
  • Memory Usage 2,325KB
  • 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
  • (5)bbcode_code
  • (2)bbcode_php
  • (1)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
  • (2)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