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)

fxdigi-cash 07-25-2014 06:13 PM

I'm just curious, is there a solution for the issue of not resizing when advanced reply is used??

The image shows up there with full size... any fix for that?

fxdigi-cash 08-04-2014 06:30 AM

I want to add an extra class to ncode_imageresizer_warning, how do I do that??

from the script!!!

Seven Skins 08-04-2014 08:04 AM

Quote:

Originally Posted by fxdigi-cash (Post 2508257)
I'm just curious, is there a solution for the issue of not resizing when advanced reply is used??

The image shows up there with full size... any fix for that?

Need to refresh the page.

Quote:

Originally Posted by fxdigi-cash (Post 2509621)
I want to add an extra class to ncode_imageresizer_warning, how do I do that??

from the script!!!

Edit ncode_imageresizer.js in clientscripts folder and add class near line 120.

leclownos 08-04-2014 02:34 PM

thank you, great mod!!

Nirjonadda 08-04-2014 02:51 PM

Quote:

Originally Posted by Seven Skins (Post 2509631)
Need to refresh the page.

Please can you make its work via AJAX?

fxdigi-cash 08-04-2014 10:33 PM

Quote:

Originally Posted by Seven Skins (Post 2509631)
Edit ncode_imageresizer.js in clientscripts folder and add class near line 120.

Thanks a lot. That what I thought actually, but didn't work for me... possibly because I'm using a Java script combiner to combine all js files. I guess there is a conflict with some other script...

Thanks again, :)

fxdigi-cash 08-10-2014 04:44 AM

Quote:

Originally Posted by Seven Skins (Post 2509631)
Need to refresh the page.

Edit ncode_imageresizer.js in clientscripts folder and add class near line 120.

sorry, maybe I wasn't clear enough. I want to place the Class inside the <img> tag

how do I do that?

Thanks
Edit: Is it possible to replace also the tag src with data-original because I want to use Lazy load on that??

Seven Skins 08-10-2014 06:49 PM

You can add additonal class using jquery (I tried this couple of years back and it works). I have not tried data-original though.

fxdigi-cash 08-11-2014 05:37 AM

Quote:

Originally Posted by Seven Skins (Post 2510726)
You can add additonal class using jquery (I tried this couple of years back and it works). I have not tried data-original though.

I just added a class through Jquery, but still don't know how to replace src with data-original... is there a part of the script or anywhere in the template to change the code from src to data-original??

I tried to use jquery to override the src replacement with data-original, but didn't work only for this mod. The other attachments work fine though...

any idea?

[S]Update: It is ok, I fount it in the plugin itself. Thanks.[/S]

Update 2: I tried many times and different ways, but not working... any idea??

Seven Skins 05-18-2015 01:21 PM

I haven't got downloadsII installed on my server so I cannot test it.
Make a plugin and see if you can preg_replace in downloadsII templates.

PS: This hack works with only external images, not with attachments.


All times are GMT. The time now is 09:58 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.02471 seconds
  • Memory Usage 1,740KB
  • 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
  • (6)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