vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   image reference locally edit (https://vborg.vbsupport.ru/showthread.php?t=312480)

DreadsUK 06-27-2014 02:33 PM

image reference locally edit
 
how do we uncheck the reference locally box for default?

https://vborg.vbsupport.ru/external/2014/06/13.png

tbworld 06-27-2014 03:05 PM

Edit file:
"/clientscript/ckeplugins/vbimage/dialogs/image.js"

Search for:
Code:

              setup: function() {
                    if (me.editor.config.vbulletin.attachinfo)



After this code look for:

Code:

this.setValue(true);
Replace with:
Code:

this.setValue(false);
Should do the trick. Let me know if it doesn't work. :)

Thanks for the picture, it quickly identified what you were looking for.

DreadsUK 06-28-2014 08:25 AM

Yep, that worked great. You have to empty your internet cache to see the change :)

tbworld 06-28-2014 08:33 AM

Quote:

Originally Posted by DreadsUK (Post 2504211)
Yep, that worked great. You have to empty your internet cache to see the change :)

Good to know. Glad it worked.
I am away from my development setup so I cannot easily test anything. :)

Just curious, what was the reasoning for wanting that unchecked?

DreadsUK 06-28-2014 09:05 AM

2 reasons.

1, if its checked, the image shows up small and has to be clicked to view.

2. If its referenced locally i'm assuming it would use up space on the server.

Overall speed, again assumption, i have a feeling it will encourage people to host the images elsewhere, save of server space and increate load times and less clicks.


All times are GMT. The time now is 02:45 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.01116 seconds
  • Memory Usage 1,719KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete