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

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
  #222  
Old 06-07-2008, 10:16 AM
Subah's Avatar
Subah Subah is offline
 
Join Date: Feb 2006
Location: KUWAIT
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jase2 View Post
Yes, that's what I had in mind for the blog. tmiland got it working for the blog, however, he simply double the code -- and I don't like doing it like that hehe.

Any more suggestions from people? Oh, that reminds me, I need to clean up the UserCP options -- my life is just so busy at the moment, with leaving school ect. If I end up going in the Royal Navy, then I may not be able to support this anymore. However, I will pop in now and again when time permits to say "HI".
Hope see you soon to support this mod
but what about edit this mod to support the blog and the albums without doing TCattitude steps ?
Reply With Quote
  #223  
Old 06-07-2008, 11:58 AM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I'll release an updated version shortly to provide compatibility with the albums and blogs, as well as fixing the clear user options in AdminCP.

D.Baker, I'm still undecided yet. I'm either going to do mechanics on helicopters, train to become a Royal Marines Commando, a pilot. mines clearance diver, or Engineering Technician. Still deciding.........
I'll see what I can do with the lytebox -- but images are resized with lytebox, right?
Reply With Quote
  #224  
Old 06-08-2008, 02:02 AM
sross sross is offline
 
Join Date: Mar 2004
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working on 3.7.1 for me. I am no stranger to installing mods, just can't get it to do anything. I've followed instructions 100%, the product installed and is enabled and the file has been uploaded. Tried reuploading and re-installing. img tag images still huge..
Reply With Quote
  #225  
Old 06-08-2008, 02:11 AM
D.Baker D.Baker is offline
 
Join Date: May 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Jase,
Sounds like the Navy would be fun. It's a big regret of mine.

Anyway, as for Lightbox there are a bunch of different versions of it. Lytebox is a different version, but you should just concentrate on getting Lightbox working. This is the one that comes with vB 3.7. It doesn't actually resize the images, all it does is provide a nice way of opening images in a new window. Basically, any image that has a rel="Lightbox" tag in it's HTML link tag will open in a Lightbox window.

Here is an example of the markup:

HTML Code:
<a href="http://www.example.com/example.jpg" rel="Lytebox"><img src="http://www.example.com/example.thumbnail.jpg" height="100" width="100"></a>
NOTE: It can't have target="_blank" in it.

So, what I am asking is that you add an option to "open using Lightbox" in Image Resizer's options page Then your plugin simply adds a rel="Lightbox" into the HTML link tag. This way, it will open using Lightbox and fit the style of the rest of my site (see here for example).

I actually figured out how to do this on my own and made a little mod to do it. See steps 12-14. I made it work with Lytebox (not Lightbox) but it's crude and requires some core file edits. I'd rather have Lightbox part of your mod so it's legit and not require so many hacks on my behalf.

Of course, it would be ideal if it was somewhat easy to edit a variable in your code so that I could replace rel="Lightbox" with rel="lytebox", but this is just me being demanding (or would this be possible using Replacement Variable Manager? I'm not sure if that works for plugins/products).
Reply With Quote
  #226  
Old 06-08-2008, 02:13 AM
D.Baker D.Baker is offline
 
Join Date: May 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One more thing I picked up on.

Your plugin's "resized" images don't have the 2px margin like all other embedded thumbnails do (at least that's how it is on my board).

The best way to fix this would be to define a unique CSS class (eg. class="imageresizer") in the img tag, rather than just the ID. That way we could style the images anyway we wanted (like fix the 2px margin problem I mentioned above). I'd say this is a critical thing to implement.

Thanks for putting up with my nagging!
Reply With Quote
  #227  
Old 06-08-2008, 10:51 PM
Jase2 Jase2 is offline
 
Join Date: Dec 2007
Location: USA
Posts: 1,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sross, I'm having no problems whatsoever, neither is anyone else. Maybe you're using an image that isn't bigger than the set dimensions?

D.Baker, do you mean having an option in ACP where you can set the colour code ect. for the top bit where it gives image dimensions ect?... I like that idea -- will look into it.
Reply With Quote
  #228  
Old 06-09-2008, 12:43 PM
Onone Onone is offline
 
Join Date: May 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #229  
Old 06-09-2008, 03:06 PM
NoPretender NoPretender is offline
 
Join Date: Dec 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod, works well. One thing that might be a good feature, is to allow certain dimension limits for signatures per usergroup. I want to allow all my users to use the IMG tag but often they're way above the dimensions I have set for SIGPIC, so have the IMG tag's diabled. I allow staff to have larger signatures then a registered member and would be great to set a limit per usergroup.

Regardless, nice mod
Reply With Quote
  #230  
Old 06-09-2008, 03:57 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting a javascript error for some reason. Anyone else get this? The item in the ' ' changes based on the setting in the AdminCP.

NcodeImageResizer is not defined:

Code:
NcodeImageResizer.MODE = 'enlarge';
Reply With Quote
  #231  
Old 06-10-2008, 04:01 PM
D.Baker D.Baker is offline
 
Join Date: May 2008
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Jase,
I'm pretty sure you can already style the resize text box thing to a different color using the class ncode_imageresizer_warning. What I'm talking about is giving the actual image a class, so that you can style it with boarders, margins and paddings etc. At the moment you give the image an ID, but no class.
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 06:31 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.04950 seconds
  • Memory Usage 2,311KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_html
  • (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