Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Image Resizer - CMS | Blogs | Posts | Signatures | Albums | VM's | PM's Details »»
Image Resizer - CMS | Blogs | Posts | Signatures | Albums | VM's | PM's
Version: 1.0, by Seven Skins Seven Skins is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: Major Additions - Version: 4.0.2 Rating:
Released: 03-12-2010 Last Update: Never Installs: 21
Uses Plugins Auto-Templates
Additional Files  
No support by the author.

Image Resizer - CMS | Blogs | Posts | Signatures | Albums | VM's | PM's - Using JQuery Script


This hack resizes LARGE images in CMS, Blogs, Posts, Signatures, Albums, Visitor Messages, Private Messages ...


Warning: Please note that this hack will resize all LARGE images in the IMG tags.
If you are using large images for your logo or background and they are in IMG tags they will be resized too.
This hack works perfectly fine with default vBulletin styles and in Internet Explorer 8, FireFox 3.5, Chrome and Opera.


You have the option to:
  • Disable the hack.
  • Choose default message for warning bar.
  • Option to choose the height and width in CMS.
  • Option to choose the height and width in Blogs.
  • Option to choose the height and width in Posts.
  • Option to choose the height and width in Albums.
  • Option to choose the height and width in VM's.
  • Option to choose the height and width in PM's.



LIVE DEMO
Username: demo
Password: demo



Installation:

Upload jquery.min.js to clientscript folder.
Import the XML file via Plugins & Products > Manage Products > Add/Import Products.

Note #1. This script will work after page is fully loaded. While the images are being downloaded they will be seen in full size.
Note #2. At the moment there is option to resize/exclude images in signatures. Signatures will be resized to the same size as posts.


If you have a LARGE LOGO and you dont want resized, do this:

In the header template find:
HTML Code:
<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div>

Replace it with: (Edit the height and width in the above code to the size of your logo.)
HTML Code:
<div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image" title="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}">
<span style="background: url({vb:stylevar titleimage}) no-repeat; width:600px; height:120px; display:block"></span></a></div>


And this for other images you don't want resized:
Normal img tag:
HTML Code:
<img src="image.png" width="600" height="120" border="0" alt="" />
Edit it to for this hack:
HTML Code:
<span style="background: url(image.png) no-repeat; width:600px; height:120px; display:block"></span>

_________________________________ _________________________________

Please nominate this modification for the MOTM.
Please support me by donating ... click the link on the right. (Support Developer)
Please remember to click Mark as Installed if you use this hack.
_________________________________ _________________________________


13 March 2010
Version: 1.0 Released


.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-14-2010, 08:26 AM
Diablotic Diablotic is offline
 
Join Date: Feb 2010
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tagged for future use when this mod is polished
Reply With Quote
  #13  
Old 03-14-2010, 02:19 PM
Honk0815 Honk0815 is offline
 
Join Date: Feb 2007
Location: Germany
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Holy crap ...


This mod RE-SIZES my FORUM LOGO. ( On the forum home only )

UNINSTALLED.
Reply With Quote
self Problem
Reply With Quote
  #14  
Old 03-14-2010, 03:12 PM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!

Will install it in a few minutes.
Reply With Quote
  #15  
Old 03-14-2010, 06:30 PM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you minimize the jquery.min.js file?

Because it is loaded on every page.
Reply With Quote
  #16  
Old 03-14-2010, 06:31 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

.



LIVE DEMO adeed.




Quote:
Originally Posted by Extra PC View Post
tested but it's not work like your old Mod https://vborg.vbsupport.ru/showthread.php?t=237650

it's open the image in new window not in the same page
I may add this in the update.

Quote:
Originally Posted by Forum Lover View Post
KJ, I am using other mod. What is the major difference?
This hack does all CMS,Albums, etc .... where as other does not.

Quote:
Originally Posted by SwollenCranium View Post
Holy crap ...
This mod RE-SIZES my FORUM LOGO. ( On the forum home only )
UNINSTALLED.
I have updated the hack Info ... read info about how to sort out LARGE logo's.
Reply With Quote
  #17  
Old 03-14-2010, 06:34 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kolbi View Post
Can you minimize the jquery.min.js file?

Because it is loaded on every page.
I will add conditional in the next update to exclude this from some pages.
Reply With Quote
  #18  
Old 03-14-2010, 06:49 PM
tafreeh tafreeh is offline
 
Join Date: May 2008
Location: Canada
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good one.. but here is what i want...

I want signatures to resize, but i do not want to show that yellow strip on top of the image, that says "click here to view the full size image" .. but at the same time i want that to show to in post...

Is it possible to do that?
Reply With Quote
  #19  
Old 03-14-2010, 07:02 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what I was looking for!
Reply With Quote
  #20  
Old 03-14-2010, 09:12 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tafreeh View Post
good one.. but here is what i want...

I want signatures to resize, but i do not want to show that yellow strip on top of the image, that says "click here to view the full size image" .. but at the same time i want that to show to in post...

Is it possible to do that?
Not with this hack. You may reduce the size of warning box or remove the warning box and just leave the message only.
Reply With Quote
  #21  
Old 03-14-2010, 10:11 PM
ximcix ximcix is offline
 
Join Date: Mar 2005
Location: NYC
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using the other hack & loving it. the only downside it has is that i can only set width

I would love to be able to limit both the height & width (which this new version allows) but without having to manually make template changes. Most of the themes I use have large headers & my forum has several themes.

Even though the addition of lightbox would help make it more fancy (would be sweet if it could be coded to make use of vB's lightbox), it really isn't needed.

Just a simple hack that resizes large images posted by the members in specified regions is all we need.
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 12:19 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.25563 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
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_html
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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