vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - Image Resizer - CMS | Blogs | Posts | Signatures | Albums | VM's | PM's (https://vborg.vbsupport.ru/showthread.php?t=238202)

Seven Skins 03-12-2010 10:00 PM

Image Resizer - CMS | Blogs | Posts | Signatures | Albums | VM's | PM's
 
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


.

Stifler 03-13-2010 09:58 PM

didn't work for cms posts already existing.

Seven Skins 03-13-2010 10:03 PM

Did you upload the jquery.min.js to clientscript folder?

tecnozul 03-13-2010 10:36 PM

It works with vBadvanced ?

Extra PC 03-13-2010 10:41 PM

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

Forum Lover 03-13-2010 10:42 PM

KJ, I am using other mod. What is the major difference?

SwollenCranium 03-13-2010 10:50 PM

Holy crap ...

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

UNINSTALLED.

Dr.osamA 03-14-2010 01:44 AM

Reserved

Stifler 03-14-2010 03:06 AM

yes it was.. but seriously didnt work at all..

johnny713 03-14-2010 05:48 AM

This is a nice mod, but I wait until the stable version. Because right now, I see too many complainer :D.


All times are GMT. The time now is 05:15 PM.

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.01216 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete