vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to default not checked "Retrieve remote file and reference locally" VB 4.1.10 (https://vborg.vbsupport.ru/showthread.php?t=277164)

Scottr126 01-18-2012 02:56 AM

How to default not checked "Retrieve remote file and reference locally" VB 4.1.10
 
When uploading images into a post there is an option for "Retrieve remote file and reference locally" and by default it is checked. This option is terrible and I have alot of users complaining about and causing problems.

Is there any way I can disable this option all together or atleast have the option not checked by default?

Scottr126 01-19-2012 02:29 PM

Help... anyone?

LifesGreatestGift 01-19-2012 04:04 PM

open file
./clientscript/ckeplugins/vbimage/dialogs/image.js

around line 257 you will see
Code:

                },{
                        type: 'checkbox',
                  id: 'remote_file',
                  label: me.editor.lang.vbulletin.retrieve_remote_file_and_ref_local,
                  labelLayout: 'horizontal',
                  setup: function() {
                                if (me.editor.config.vbulletin.attachinfo)
                                        {
                                        this.setValue(true);
                                        }
                        }
                }]

change
Code:

                                        this.setValue(true);
to
Code:

                                        this.setValue(false);
UPLOAD the changed file. Clear cache. Done.

Scottr126 01-19-2012 10:14 PM

Once again thank you so much for the help! It worked perfectly.

Deuces73 04-10-2012 06:13 PM

Tried it , but nothing has changed ...

Any ideas on what could be wrong ?

( clear cache = Clear CMS cache in ACP , right ? )

ahfm 04-13-2012 07:34 AM

i think he means browser cache

Liff 04-16-2012 04:56 AM

Thanks very much LGG.. When I clear my browser cache this works a treat!

I've had a look through the script and I'm not very comfortable making changes I'm not sure about.. Is it also possible to have it default to URL rather than From Computer?

salvador21 06-07-2012 05:41 PM

Quote:

Originally Posted by Liff (Post 2320526)
Thanks very much LGG.. When I clear my browser cache this works a treat!

I've had a look through the script and I'm not very comfortable making changes I'm not sure about..

Me too, and don't forget, you will need to do this for every upgrade.

I wish this could be easily disabled, it's just begging for people to steal images from other sites.

shershen08 08-06-2012 02:50 PM

works great, thanks!
could there be any additional parameter to hide (display:none or smth) this checkbox?

zascok 08-07-2012 07:30 PM

Quote:

Originally Posted by shershen08 (Post 2354987)
works great, thanks!
could there be any additional parameter to hide (display:none or smth) this checkbox?


put this into additional.css ;)

Code:

.cke_dialog_ui_checkbox_input {
display:none;
}



All times are GMT. The time now is 12:06 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.02139 seconds
  • Memory Usage 1,735KB
  • 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_code_printable
  • (2)bbcode_quote_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