Can the http:// that is already in the "Please enter the URL of your link:" be remove

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zoro
    Senior Member
    • Nov 2007
    • 187
    • 3.8.x

    Can the http:// that is already in the "Please enter the URL of your link:" be remove

    Problem:

    To many of my members do not remove the http:// that is already in the Insert link box when they post a link. Can I remove this so I can prevent the double http:// when they make a post?

    I have seen the solution posted on this site long ago, I searched but did not find it.
  • sven4o
    Member
    • Feb 2010
    • 56
    • 3.8.x

    #2
    In order to remove the http:// predefined string from the Insert Link functionality edit the clientscript/vbulletin_textedit.js file and change the following code excerpts:

    {url=this.show_prompt(vbphrase.enter_link_url,"http://",true)} (appears twice)

    and

    {this.prompt_link("url",url,vbphrase.enter_link_url,"http://")}

    to

    {url=this.show_prompt(vbphrase.enter_link_url,"",true)} (appears twice)

    and

    {this.prompt_link("url",url,vbphrase.enter_link_url,"")}

    Also navigate to your vBulletin admin panel->Languages & Phrases->Search in Phrases. Search for the enter_link_url phrase in Phrase Text and Phrase Variable Name. Edit it and make sure that http:// is not present in the default text window.
    SiteGround Technical Support Team Member.
    Check out our special vBulletin hosting package.

    Comment

    • Zoro
      Senior Member
      • Nov 2007
      • 187
      • 3.8.x

      #3
      Thank you sven4o!! Can the same thing be done with the 'insert Image' also? What can I use to edit a .js file?
      Last edited by Zoro; Sat 15 May '10, 3:18am.

      Comment

      • Zoro
        Senior Member
        • Nov 2007
        • 187
        • 3.8.x

        #4
        bump

        Comment

        • sven4o
          Member
          • Feb 2010
          • 56
          • 3.8.x

          #5
          The predefined http:// string in Insert Image can be removed by editing the clientscript/vbulletin_textedit.js file.

          Find the following code:

          {img=this.show_prompt(vbphrase.enter_image_url,"http://",true)}

          Change it to:

          {img=this.show_prompt(vbphrase.enter_image_url,"",true)}

          The .js files can be downloaded to your personal computer using an FTP client and edited with a text editor like NotePad (Windows OS) or vim (Linux).

          You can check the following FTP tutorial for more details on how to download files through an FTP client:

          Learn what FTP stands for and read tutorials on some of the most commonly asked questions about using FTP
          SiteGround Technical Support Team Member.
          Check out our special vBulletin hosting package.

          Comment

          • Zoro
            Senior Member
            • Nov 2007
            • 187
            • 3.8.x

            #6
            Done, thank you very much

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...