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
  #22  
Old 03-15-2010, 12:51 AM
RaceJunkie RaceJunkie is offline
 
Join Date: Jun 2005
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This seems like a good hack but having to add every image you don't want to re size to your header is really a hassle. :down:

This mod also will re size any images you have in your advertisement blocks. So how do you prevent it from resizing your ads?
Reply With Quote
  #23  
Old 03-15-2010, 02:44 AM
valendono valendono is offline
 
Join Date: Feb 2008
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can u set if 728x90px ignored ?
Reply With Quote
  #24  
Old 03-15-2010, 08:25 AM
Athena1984 Athena1984 is offline
 
Join Date: Nov 2009
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why is this making my images smaller than the specified height and width?

EDIT: No worries, I fixed the issue. I'll be marking this as installed. Thank you for this!
Reply With Quote
  #25  
Old 03-15-2010, 03:56 PM
AndrewDavis AndrewDavis is offline
 
Join Date: Mar 2009
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Question: It's not better to give the image, there not to resized a class? For example :

<img src="example.pic" class="notresized" /> ?

Cheers AndrewD
Reply With Quote
  #26  
Old 03-16-2010, 01:26 AM
RaceJunkie RaceJunkie is offline
 
Join Date: Jun 2005
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uninstalled:down:
Reply With Quote
  #27  
Old 03-17-2010, 11:27 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RaceJunkie View Post
This seems like a good hack but having to add every image you don't want to re size to your header is really a hassle. :down:

This mod also will re size any images you have in your advertisement blocks. So how do you prevent it from resizing your ads?
need some improvements ... hope the dev will release an upgrade soon ...
Reply With Quote
  #28  
Old 03-17-2010, 01:00 PM
argothiusz argothiusz is offline
 
Join Date: Nov 2008
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about option to define the size of signature?
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:58 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.04636 seconds
  • Memory Usage 2,276KB
  • Queries Executed 24 (?)
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
  • (1)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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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