Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-08-2008, 09:35 PM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I...Remove The http://???

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...

Reply With Quote
  #2  
Old 02-08-2008, 11:09 PM
R-D's Avatar
R-D R-D is offline
 
Join Date: Jan 2008
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'], '');
Reply With Quote
  #3  
Old 02-09-2008, 11:56 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09340 seconds
  • Memory Usage 2,200KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (12)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete