vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - BBR - Resize Images with lytebox v3.22 (https://vborg.vbsupport.ru/showthread.php?t=230411)

Noerenberg 06-26-2010 12:26 AM

Quote:

Originally Posted by graham_w (Post 2056751)
Hello

In researching how to fix another mod, it actually found a fix for this one on VB4.0.4

Remove the following code from postbit.css (Styles & Templates ->Style Manager->Edit Templates)

Code:

.postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img {
        max-width: {vb:stylevar postbit_content_max_image_width};
        _width: expression(document.body.clientWidth > {vb:stylevar postbit_content_max_image_width.Size}? "{vb:stylevar postbit_content_max_image_width}": "auto" );
}



This removes the inbuilt VB4.0.4 image resizer and allows this mod to start working again.

Cheers


NOT work

TheLastSuperman 06-26-2010 04:44 PM

Excuse' ? The built in image resizer in vB4 does work, settings for CMS and forum images are in different stylevars or you can modify the css yourself

Code:

.postbit .content img, .postbitlegacy .content img, .postbitdeleted .content img, .postbitignored .content img, .eventbit .content img {
        max-width: {vb:stylevar postbit_content_max_image_width};
        _width: expression(document.body.clientWidth > {vb:stylevar postbit_content_max_image_width.Size}? "{vb:stylevar postbit_content_max_image_width}": "auto" );
}

As far as signature images go simply copy the img size css definitions and apply that to the signature css class then any image in the signature also re-sizes if the image is larger than specified post image.

Mod is no longer needed unless BBR decides to update the mod to modify or overwrite these settings so you can still use lightbox etc.

Noerenberg 06-26-2010 06:28 PM

Quote:

Originally Posted by TheLastSuperman (Post 2059933)

As far as signature images go simply copy the img size css definitions and apply that to the signature css class then any image in the signature also re-sizes if the image is larger than specified post image.

hi,

can you explain this for me?

TheLastSuperman 06-26-2010 10:32 PM

Quote:

Originally Posted by Noerenberg (Post 2059990)
hi,

can you explain this for me?

Sure ;)

In postbit.css template

find:

Code:

        max-width: {vb:stylevar postbit_content_max_image_width};
        _width: expression(document.body.clientWidth > {vb:stylevar postbit_content_max_image_width.Size}? "{vb:stylevar postbit_content_max_image_width}": "auto" );

Copy then go down and find:

Code:

/*signature */
.signature {
        padding-top: 1em;
        border-top: {vb:stylevar signature_border};
        margin-top: 2em;
}

Replace with:

Code:

/*signature */
.signature {
        padding-top: 1em;
        border-top: {vb:stylevar signature_border};
        margin-top: 2em;
        max-width: {vb:stylevar postbit_content_max_image_width.Size};
        _width: expression(document.body.clientWidth > {vb:stylevar postbit_content_max_image_width.Size}? "{vb:stylevar postbit_content_max_image_width}": "auto" );
}

The only downside to that is the image size set by the post image carries through the entire signature not just the image if one is contained within.

Noerenberg 06-26-2010 10:47 PM

Hey,

thank you so much.

but it looks not so nice.
give it no way that the rezise work only for the signature image?

or can everyone fix this mod?

Jaske 06-28-2010 11:47 PM

very, very cool add-on!! Thanks!! I needed this bad.

rabidkevin 06-29-2010 05:11 AM

Does this work on calendar events?

wayne.richards@ 06-29-2010 08:38 AM

Wheree Are The Setting For This New Built In Image Resizer Then?

TheLastSuperman 06-30-2010 12:51 AM

Quote:

Originally Posted by wayne.richards@ (Post 2061572)
Wheree Are The Setting For This New Built In Image Resizer Then?

Style Vars, check vBulletin.com using search you'll find the answers there quicker than a mods thread slightly invaded by the topic ;)

spudz 06-30-2010 05:20 AM

Is there a way to make it so that images that are hyperlinked can be directed to the URL rather than the full image preview popup. I have a hyperlinked image in my sig and when you click on it, it only brings up the image popup window instead of opening the URL.


All times are GMT. The time now is 10:50 AM.

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.01629 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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