Announcement

Collapse
No announcement yet.

Can I remove the upload avatar by url option?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can I remove the upload avatar by url option?

    Whenever someone tries to upload an avatar through a url the error "Warning: fsockopen(): unable to connect to *insert domain of avatar here* in /home/polykarb/public_html/includes/functions_file.php on line 30" pops up. I think I need my host to enable the fopen thing before that works, but for now I would rather disable this feature all together.

  • #2
    Remove this section in the modifyavatar template:

    <tr>
    <td>
    $vbphrase[enter_avatar_url]:<br />
    <input type="text" class="bginput" name="avatarurl" value="http://www." onchange="check_yes('avatar_yes')" size="50" />
    </td>
    </tr>

    You should also edit the following phrases to remove the language about 'Entering the URL':

    may_upload_custom_image
    may_upload_custom_image_controls
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment


    • #3
      Originally posted by Steve Machol
      Remove this section in the modifyavatar template:

      <tr>
      <td>
      $vbphrase[enter_avatar_url]:<br />
      <input type="text" class="bginput" name="avatarurl" value="http://www." onchange="check_yes('avatar_yes')" size="50" />
      </td>
      </tr>

      You should also edit the following phrases to remove the language about 'Entering the URL':

      may_upload_custom_image
      may_upload_custom_image_controls
      Just wondering if we should have an option to disable "Enter Avatar URL" ?

      maybe in vB Options/User Picture Option
      or in usergroup option?

      Comment


      • #4
        No, there is no such option.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment


        • #5
          Originally posted by Steve Machol
          You should also edit the following phrases to remove the language about 'Entering the URL':

          may_upload_custom_image
          may_upload_custom_image_controls
          I take it this doesn't exist in 3.5? I couldn't locate. TIA
          Paul Laudanski, Microsoft MVP Windows-Security
          CastleCops: [de] [en] [wiki]

          Comment


          • #6
            Since 3.5 didn't exist at the time of my original post, your guess is correct.
            Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
            Change CKEditor Colors to Match Style (for 4.1.4 and above)

            Steve Machol Photography


            Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


            Comment


            • #7
              Thanks. I have removed the URL option for both avatar and profilepic. I'm not a fan of permitting image rendering or uploading from remove web servers.
              Paul Laudanski, Microsoft MVP Windows-Security
              CastleCops: [de] [en] [wiki]

              Comment


              • #8
                Here is a deeper question on the matter. The template section removed just disables its rendering from the page the member sees. So it is possible for someone to craft the FORM POST to reinsert that missing piece. My question is, where in the backend code can I disable that part of the function entirely?

                TIA
                Paul Laudanski, Microsoft MVP Windows-Security
                CastleCops: [de] [en] [wiki]

                Comment

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