vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How do I...Remove The http://??? (https://vborg.vbsupport.ru/showthread.php?t=170002)

princeedward 02-08-2008 09:35 PM

How do I...Remove The http://???
 
1 Attachment(s)
Is it possible or can anyone out there tell me how do i remove or eliminate the start text: http:// inside that Insert Image & Insert Link Tag???



i just find that thing not so important...that's why i want to remove it permanently...coz everytime i/we use those tag...like to insert some url that i/we copy somewhere else...all i/we have to do first is delete that http:// thing and insert/paste what we have on our mouse...

appreciate any help from anyone...

thanks and best regards...

:o

R-D 02-08-2008 11:09 PM

Looks to me like you need to edit clientscript/textedit.js. There's 4 references to http:// there, one for images and three for links. Not sure whether you need to remove all 4 references but I just tested and that seemed to work. Note: an F5 refresh was needed to clear the old file from my browser's cache.

Find:
Code:

img = this.show_prompt(vbphrase['enter_image_url'], 'http://', true);
Change to:
Code:

img = this.show_prompt(vbphrase['enter_image_url'], '', true);

Find (twice):
Code:

url = this.show_prompt(vbphrase['enter_link_url'], 'http://', true);
and change both to:
Code:

url = this.show_prompt(vbphrase['enter_link_url'], '', true);

Find:
Code:

this.prompt_link('url', url, vbphrase['enter_link_url'], 'http://');
and change to:
Code:

this.prompt_link('url', url, vbphrase['enter_link_url'], '');

princeedward 02-09-2008 11:56 AM

Million Thanks Bro...You've Just Made My Day!...it's not quite simple to find those thing to edit...but it really works...

So for those interested...a much easier than i think to find:

Hostcpanel > Forumdirectory > Clientscript > Vbulletin_textedit.js > Edit:


FROM THE TOP:

FIND: 1

* Insert Image

THEN:

Code:

img = this.show_prompt(vbphrase['enter_image_url'], 'http://', true);

AND CHANGE/PASTE THIS:

Code:

img = this.show_prompt(vbphrase['enter_image_url'], '', true);
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++

UNDER:

======================================
// Mozilla WYSIWYG only
//
======================================

FIND: 2

* Insert Link

THEN:

Code:

url = this.show_prompt(vbphrase['enter_link_url'], 'http://', true);

AND CHANGE/PASTE THIS:

Code:

url = this.show_prompt(vbphrase['enter_link_url'], '', true);
++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++

UNDER:

======================================
// Standard editor
//
======================================

FIND: 3

* Insert Link

THEN:

Code:

this.prompt_link('url', url, vbphrase['enter_link_url'], 'http://');

AND CHANGE/PASTE THIS:

Code:

this.prompt_link('url', url, vbphrase['enter_link_url'], '');


For This Thing To Work: you have to clear cache/cookies to any of your browsers...

Enjoy!

http://epaloids.com/images/smilies/yesir.gif


All times are GMT. The time now is 10:22 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.00964 seconds
  • Memory Usage 1,723KB
  • 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
  • (12)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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