vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Image Resizer - Using nCode Script (https://vborg.vbsupport.ru/showthread.php?t=237650)

graham_w 06-21-2010 01:08 AM

Quote:

Originally Posted by pant (Post 2056354)
As posted by Graham, you can turn this mod off now and instead use your stylevar to modify the pictures by default.

AdminCP > styles & templates > style manager > stylevars

postbit_content_max_image_width

I personally don't like the inbuilt vbulletin option.

It doesn't allow you to specify a max height, also you cannot click to see the full image.

Give me this mod over the vbulletin option anytime.

Quote:

Originally Posted by KURTZ (Post 2055948)
just checked... this doesn't works for the blogs ...

No it doesn't. :( Maybe need to remove the reference to the new vbulletin option in the css which may restore functionality to this mod ? I will have a play a bit later.

graham_w 06-21-2010 01:16 AM

Scrap that - I removed some code from the postbit.css and the mod now works on the blogs but not in posts ... still looking for a solution.

graham_w 06-21-2010 02:12 AM

Well I have to leave for the afternoon, but I have so far found that removing the following code from postbit.css will stop the inbuilt vbulletin resizer from working, and allows this mod to work again - but it only appears to work in the blogs and not in the posts. I'm using postbit legacy, but perhaps someone can confirm it doesn't work in postbit also ? There must be something i'm missing - anyone have any ideas?

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" );
}


snakedevil 06-21-2010 07:48 AM

Quote:

Originally Posted by robbiefritz (Post 2056270)
Just upgraded to 4.04. Resizing stopped working. Could you look into this please? Really like this hack! Thanks.


Similar problem on 4.0.4 :(

sticky 06-21-2010 09:30 AM

Quote:

Originally Posted by graham_w (Post 2056728)
Well I have to leave for the afternoon, but I have so far found that removing the following code from postbit.css will stop the inbuilt vbulletin resizer from working, and allows this mod to work again - but it only appears to work in the blogs and not in the posts. I'm using postbit legacy, but perhaps someone can confirm it doesn't work in postbit also ? There must be something i'm missing - anyone have any ideas?

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" );
}


There is a built in resizer now?

graham_w 06-21-2010 07:36 PM

Yep - controlled by Stylevars

postbit_content_max_image_width

But it doesnt resize blog, only post images.

Alex@Mk3OC 06-21-2010 08:55 PM

Fixed this in 4.0.4

I removed the following code from postbit.css:

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" );
}

The re-installed the product xml file and it works again :)

graham_w 06-22-2010 01:36 AM

Quote:

Originally Posted by Alex@Mk3OC (Post 2057122)
Fixed this in 4.0.4

I removed the following code from postbit.css:

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" );
}

The re-installed the product xml file and it works again :)

EDIT - tried it and it didn't work for me.

Zombo 06-22-2010 01:37 AM

Quote:

Originally Posted by Alex@Mk3OC (Post 2057122)
Fixed this in 4.0.4

I removed the following code from postbit.css:

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" );
}

The re-installed the product xml file and it works again :)

I reinstalled and it still doesnt work :(

Seven Skins 06-22-2010 06:24 PM

I am working on this and you can see the live demo @ http://www.celebfungfx.com/ and brower through Picture Gallery.

Once I fix few more things I will release it soon.


All times are GMT. The time now is 07:48 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.01468 seconds
  • Memory Usage 1,750KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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