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
The Image Resizer. Powered with Lytebox / Highslide / Lightview / and many more! Details »»
The Image Resizer. Powered with Lytebox / Highslide / Lightview / and many more!
Version: 1.2.8, by TCattitude TCattitude is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.7.x Rating:
Released: 07-06-2008 Last Update: 08-26-2008 Installs: 1418
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

----------------------------------------
THE IMAGE RESIZER for vBulletin 3.7 v1.2.8
Powered with:
Lytebox / Highslide / Lightview / Slimbox / Thickbox
Floatbox / Shadowbox / Greybox / Roebox / AwesomeBox
LightWindow


based on nCode Image Resizer for vb3.6.x
----------------------------------------



What does it do
----------------------------------------
This plugin enables you to automatically resize every user-posted external
image, posted in threads, vb's blogs or even vb's albums (and group's pictures),
and in signatures (optional), which is larger than given dimensions.
Also, give (optional in admincp) options to the users, to set their own preferences
for resizing.

The Image Resizer acts in:
- External images embed in posts.
- Attachs images embed in posts.
- External images embed in blogs.
- Images in Albums / Group's pictures (optional).
- Signatures (optional) with a different width/height setting.

And the resize methods are:
- No resizing
- Enlargement in the same document
- Enlargement in the same window (replacing the forum thread document)
- Enlargement in a new window
- Enlargement using Lytebox
- Enlargement using Highslide
- Enlargement using Lightview
- Enlargement using Slimbox
- Enlargement using Thickbox
- Enlargement using Floatbox
- Enlargement using Shadowbox
- Enlargement using Greybox
- Enlargement using Roebox
- Enlargement using AwesomeBox

It also adds an information bar when not using Lytebox/Highslide/etc (which is not
displayed when the image is too small) giving information about the original
dimensions and filesize.
Filesize is only supported on Internet Explorer, other browsers don't reveal
this information through javascript.

See the AdminCP Screenshot below.


Installation / Upgrade
----------------------------------------
1. Upload the contents of the "clientscript" folder to your vBulletin's clientscript folder.
You will have:
forums/clientscript/ncode_imageresizer.js
forums/clientscript/tcattd_imageresizer.js
forums/clientscript/lytebox/*.*
forums/clientscript/highslide/*.*
forums/clientscript/lightview/*.*
forums/clientscript/slimbox/*.*
forums/clientscript/thickbox/*.*
forums/clientscript/floatbox/*.*
forums/clientscript/shadowbox/*.*
forums/clientscript/greybox/*.*
forums/clientscript/roebox/*.*
forums/clientscript/lightwindow/*.*
forums/clientscript/awesomebox/*.*

2. Import "product-tcattd_extimageresizer.xml" in your vBulletin forum. Enter your AdminCP
and go to Plugins & Products -> Manage Products. Click on [Add/Import Product] and
refer to the XML file.
Allow Overwrite -> Yes.

3. You're done.

* Upgrading.
If you're using old (but great!) nCode Image Resizer for vb3.6.x or Jase2 port
for vb3.7 (the reason for keep this update; is a great mod, even Jase2 port is cool)
then you need to uninstall your old version first from your vBulletin's
Product Manager.
Then, perform an installation from the beginning... and configure it
in your AdminCP

Version history (changelog)
----------------------------------------
v1.2.8 (August 27th, 2008)
- Updated. Highslide from 3.3.22 to 4.0.4
- Added. Option to downsize attached images with no thumbnail.
- Fixed. A problem with highslide image path in forums with vb's files
in the server root. Before some installs take the paths well, some not.
Changed the way it load the CSS into the highslide template (just path vars)
to fix that, using vboptions->bburl for full path.

To upgrade you need to:
- upload (and overwrite) the folder /clientscript/highslide/
Then, re-import the new 1.2.8 product (allow overwrite = yes).


v1.2.7 (August 26th, 2008)
- Added. Option to exclude certain styles from apply all the image-resizer thing.
That way you can exclude you "mobile" style (mobile style hack @ vb.org)
and not overload that with all the javascripts from lightboxes.
Down side: images in those excluded styles will not be resized.
- Added. CSS Class for resized images. You can easily customize your needs for HOW
to display a downsized image, borders, spacers, and many others only using
the defined CSS Class.
CSS class for img tags are:
tcattdimgresizer ->normal IMG tag
tcattdimglink -> IMGLINK tag
- Fixed. Proper fieldset in UserCP options for Image Resizer. Now really fixed (i hope).
- Fixed. Using "resize in same window" for signatures not downsize well the image
after user click to go back from full size to small size.
- Fixed. Not a fix really, but implemented the downsize of image attachments in vbadvanced
news module. I'm not using vbadv anymore, that's why i don't "see" that before.
- Fixed/Added. Fix the Not Valid XHTML 1.0 Transitional.
Added an option to choose a new javascript metod to resize images, that's
100% valid. Is optional, so you can keep the old and nice Ncode mode,
or change it to the new one.

To upgrade you need to:
- upload (and overwrite) the file /clientscript/ncode_imageresizer.js
- upload the new file /clientscript/tcattd_imageresizer.js
Then, re-import the new 1.2.7 product (allow overwrite = yes).
Check (and re-save) your AdminCP options.


1.2.6 (July 28th, 2008)
- Added. New autocreated on install BBcode: [IMGLINK]
This BBcode will "solve" the know issue number one, about embed images with a link
[URL] tag arround them to use as button for links.
For more details, refer to the AdminCP option and associated Help on that item.
- Added. Optional resizing of the new BBcode [IMGLINK]. If yes, images posted with
the new BBcode will be downsized, but no lightbox will be attached to them, so
links with [URL] still works and don't mess up your layout too.
- Added. A new option in AdminCP to "allow only change dimensions" in users profiles options.
So, now you have: allow all options, allow resize mode selecion, allow resize mode
selection and change dimensions, allow only change dimensions.
For more details, refer to the AdminCP option and associated Help on that item.
- Fixed. LightWindow was integrated in v1.2.5, but the option-item in the admincp was
missing. LOL
Working now.
- Fixed. Highslide image paths (css don't work properly and can't display loader and fullexpand images)
- Fixed. The layout of the UserCP -> Profile Options for The Image Resizer (now a proper "fieldset" is set)
- Updated. Highslide to v3.3.22
- Updated. Slimbox to v1.64

To upgrade you need to:
- upload (and overwrite) the new folder /clientscript/highslide/
- upload (and overwrite) the new folder /clientscript/slimbox/
- upload (if missing) the folder /clientscript/lightwindow/
Then, re-import the new 1.2.6 product (allow overwrite = yes).


1.2.5 (July 22th, 2008)
- Added. New resizers: Floatbox, Shadowbox, Greybox, Roebox, LightWindow, AwesomeBox.
- Added. New options to set different width and height for Signature's image
resizing and Album's image resizing. Check the AdminCP options for configuration.
- Added. New option to exclude usergroups (by IDs) from Signature resizing.
- Added. An option to disable the Resizing of pictures in vb's albums / group's pictures.
Some people don't like and don't use that.
- Clean. Cleaned up "the function" for search/replace.
- Fixed. Removed the ugly border from the images in Albums and Group's Pictures
(forgot to put a border="0" in the img tag for the Lightbox's link).

To upgrade you need to upload all the new /clientscript/ files
and folders again. Overwrite the javascripts! (yes, overwrite the ncode_imageresizer.js).
Then, import the new 1.2.5 product (allow overwrite = yes).

And: check the readme! (Known issues)


1.2.4 (July 18th, 2008)
- Added. New resizers: Lightview, Slimbox, Thickbox.

To upgrade, you need to upload all the new /clientscript/ files
and folders!. Then, import the new 1.2.4 product (allow overwrite = yes).



1.2.3 (June 7th, 2008)
- Added. Option "Replace Lightbox for Attached files?" in the AdminCP.
When you turn that on, all default vb's Lightbox will be replaced
with Lytebox/Highslide, only if you are using one of those two
options as your "Default Resize Mode". Now, your attached images
will be open with Lytebox/Highslide.
Old references to Lightbox javascript are hidden (Set $show['lightbox']
to false).

To upgrade, just import the new 1.2.3 product (allow overwrite = yes).
No need to re-upload the files.


1.2.2 (June 7th, 2008)
- Fixed, set "Clear User Settings" to yes in AdminCP, not clear data.
Thanks to Stoebi!
- Fixed, images from Albums added to Groups don't get resized (they use
a different template from pictures displayed in Albums)
Thanks Calash for pointing the bug.

To upgrade, just import the new 1.2.2 product (allow overwrite = yes). No need to re-upload the files.


1.2.1 (June 7th, 2008)
- Change. Moved the conditional in template:
ncode_imageresizer_headinclude
...in order to show less CSS when using Lytebox or Highslide.
Just one new CSS definition will be added (when using Lytebox/Highslide)
If you customized this template, revert it to reflect the changes.
To upgrade, just import the new 1.2.1 product (allow overwrite = yes). No need to re-upload the files.




1.2.0 (June 6th, 2008)
- TCattitude take Spleasure's work with his permission, and continue from
vbulletin 3.6.x mod, porting it to vbulletin 3.7.x
- Add options to use Lytebox or Highslide to show full image.
- Add options to customize the Warn-Bar color, text color and border.
- fixed resizing images posted in vb's blogs.
- fixed resizing images posted in vb's albums. Now you can set a more larger width
in usergroup permissions, and allow "External Image Resizer" to resize down more
to not mess up your layout.
- fixed to not show Warn-Bar when you use Lytebox or Highslide. Instead: Mouse-over
warning.

Before (Spleasure's Work)... see the readme.

Live Demo.
----------------------------------------
http://www.antronio.com/blogs/tc/hap...de-tiempos-36/
In vB's Blog.
http://www.antronio.com/album/constructora/a6-p30/
In vB's Album.

More Details
----------------------------------------
See the included readme.txt for more details, configuration, changelog (from nCode vb3.6.x) and other things (copyrights and license info for Highslide / Lytebox / etc).

Thanks
----------------------------------------
Thanks to Spleasure for the permission to use his javascript and work.
I made another mod, more minimalistic, for resize external posted images
in several vbulletin website that i manage. But my javascript skills are
nor really the best, so i was using some other JS functions that i found
online. But nothing like nCode's one.

So he gave me permission to use his JS, and to use the first fork I did
from nCode's plugin-product for vbulletin 3.6.x. So i drop my own
minimalistic version of the image-resize plugin-product, polished the fork (put options and more friendly for admins), and make a
"second version" of nCode's one.

And this is it: nCode Image Resizer -> The Image Resizer.
Now powered with Lytebox, Highslide and many more! (optional)

Support.
----------------------------------------
Will be given by me... and all the nice and beautiful community here at vb.org that is using this mod and be kind enough to help each other.
I have a work, a family and a small Cat that takes a lot of milk, so don't spec an immediate response for every problem. Bugs will be solved. Suggestions could be taken or not.
And obviously: don't ask or request things if you don't mark this mod as installed

Supporters / CoAuthors

Show Your Support

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

Comments
  #192  
Old 08-01-2008, 09:40 PM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It got my vote!
Reply With Quote
  #193  
Old 08-02-2008, 01:55 PM
CarterMarkham CarterMarkham is offline
 
Join Date: Apr 2008
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm! Thank you!
Reply With Quote
  #194  
Old 08-02-2008, 04:40 PM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it doesn't work like it should or had been in the past, when I'm posting anew thread \ post with a picture, the picture is shown in the same size on the forum, when I'm clicking on the picture, it opens up in a new window, but the image is resized now, when I click on it it enlarges.

I've tried to use all the resizing modes, nothing happens, I'm using firefox.
Reply With Quote
  #195  
Old 08-03-2008, 05:48 AM
Artes_Marciales Artes_Marciales is offline
 
Join Date: Jun 2007
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Work! : )
Reply With Quote
  #196  
Old 08-03-2008, 07:56 AM
vbob vbob is offline
 
Join Date: Jan 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works great. Great Work...!!
We need an extra function if possible because of a situation:
I Create a Thread/post.
I Upload one or more images as attachments.
I use attached images Link as a picture (I copy the attached image link and inside the thread between the text (wherever I want) I press the picture button and paste the URL of the attached image I want).
Until now, everything is ok...
But when I want to put a link to the image, the image link don't work.
Here is an example (it is in Greek language but just click on the image. You will see that it just opens the image to its real dimensions. It doesn't open a new page/tab with the url)

http://madseeds.com/forum/showthread...8541#post18541

Here is the bbcode I used for the image inside the post:
PHP Code:
[URL="http://www.arandomgame.com/index.php?game_id=899"][img]https://vborg.vbsupport.ru/external/2008/08/73.jpg[/img][/URL] 



it should have a link instead of just opening the image like the normal images.
This image supposed to be an image with link, so when i press the image, it should prompt me to another site or something.

It would be nice to have the resize functionality inside thread (if the image is huge) and the same time if an image inside a post is not only an image, but an image with a link, then the link worked like default and open a new tab with the link of the image..!!! :-)
If someone would like to have the full sized image (to save it in his HDD or something) then he should just open the image from the attached image in the end of the post. But in this special case, the already resized image inside the post should work as it ment to be--> a link. :-)

You have done great work till now though...!!! :-)
We just need a little functionality improvement for those special cases.

Thank you for this great plugin. :-)
Reply With Quote
  #197  
Old 08-03-2008, 05:30 PM
TCattitude's Avatar
TCattitude TCattitude is offline
 
Join Date: Oct 2004
Location: Chile
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yellow Slider View Post
it doesn't work like it should or had been in the past, when I'm posting anew thread \ post with a picture, the picture is shown in the same size on the forum, when I'm clicking on the picture, it opens up in a new window, but the image is resized now, when I click on it it enlarges.

I've tried to use all the resizing modes, nothing happens, I'm using firefox.
I can't get it. Can you please provide a url/demo with the problem.

Quote:
Originally Posted by vbob View Post
It works great. Great Work...!!
We need an extra function if possible because of a situation:
I Create a Thread/post.
I Upload one or more images as attachments.
I use attached images Link as a picture (I copy the attached image link and inside the thread between the text (wherever I want) I press the picture button and paste the URL of the attached image I want).
Until now, everything is ok...
But when I want to put a link to the image, the image link don't work.
Here is an example (it is in Greek language but just click on the image. You will see that it just opens the image to its real dimensions. It doesn't open a new page/tab with the url)

http://madseeds.com/forum/showthread...8541#post18541

Here is the bbcode I used for the image inside the post:
PHP Code:
[URL="http://www.arandomgame.com/index.php?game_id=899"][IMG]http://madseeds.com/forum/attachment.php?attachmentid=601&stc=1&d=1217752746[/IMG][/URL] 



it should have a link instead of just opening the image like the normal images.
This image supposed to be an image with link, so when i press the image, it should prompt me to another site or something.

It would be nice to have the resize functionality inside thread (if the image is huge) and the same time if an image inside a post is not only an image, but an image with a link, then the link worked like default and open a new tab with the link of the image..!!! :-)
If someone would like to have the full sized image (to save it in his HDD or something) then he should just open the image from the attached image in the end of the post. But in this special case, the already resized image inside the post should work as it ment to be--> a link. :-)

You have done great work till now though...!!! :-)
We just need a little functionality improvement for those special cases.

Thank you for this great plugin. :-)
Check the readme, and change log for v1.2.6:
Quote:
- Added. New autocreated on install BBcode: [IMGLINK]
This BBcode will "solve" the know issue number one, about embed images with a link
[url] tag arround them to use as button for links.
For more details, refer to the AdminCP option and associated Help on that item.
Use that new "IMGLINK" tag instead
Reply With Quote
  #198  
Old 08-04-2008, 02:14 AM
RvG2 RvG2 is offline
 
Join Date: Jan 2007
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have tried awesomebox it's cool but when you close the image it is also closing the thread or album and moving to index.php
Reply With Quote
  #199  
Old 08-04-2008, 05:46 PM
digibyte digibyte is offline
 
Join Date: Mar 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

How can I disable this (brilliant!) plug-in for a specific style? I don't want all this javascript in my mobile vBulletin styles. Any ideas? Thanks!
Reply With Quote
  #200  
Old 08-04-2008, 07:15 PM
TCattitude's Avatar
TCattitude TCattitude is offline
 
Join Date: Oct 2004
Location: Chile
Posts: 195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by digibyte View Post
Hi,

How can I disable this (brilliant!) plug-in for a specific style? I don't want all this javascript in my mobile vBulletin styles. Any ideas? Thanks!
Nice idea.
Will see in next version
Reply With Quote
  #201  
Old 08-04-2008, 10:31 PM
yathyo yathyo is offline
 
Join Date: Aug 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed version 1.2.6 everything looks perfect! But when a user post images with no spaces between the horizontal scroll appears. How can I add a
Code:
< br />
tag after each image?

Thanks for the mod!
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 06:05 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.15215 seconds
  • Memory Usage 2,350KB
  • 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
  • (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
  • (3)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