Avatars default directory?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gsk8
    Senior Member
    • Jun 2003
    • 482
    • 4.2.x

    #16
    Would it be possible for you to tell me with part of the modifyavatarbit template to edit?
    Paula

    Comment

    • Jake Bunce
      Senior Member
      • Dec 2000
      • 46598
      • 3.6.x

      #17
      The storage directory for custom avatars is set in your:

      Admin CP -> Avatars -> User Picture Storage Type

      Comment

      • gsk8
        Senior Member
        • Jun 2003
        • 482
        • 4.2.x

        #18
        Jake,

        Can you see post #14? I'm not sure what you mean by your latest post?
        Paula

        Comment

        • Steve Machol
          Former Customer Support Manager
          • Jul 2000
          • 154488

          #19
          Read post #15.
          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

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #20
            From the profile.php file:

            Code:
            $show['customavatar_url'] = (ini_get('allow_url_fopen') != 0 OR function_exists('curl_init'));
            So the avatar URL option is displayed if your PHP configuration will allow it. There is no specific setting to disable it, but you can always remove it directly from the template:

            Admin CP -> Styles & Templates -> Style Manager -> « » -> Modify User Option Templates -> modifyavatar

            Remove the red code:

            Code:
            				<label for="avatar_yes"><input type="radio" name="avatarid" value="0" id="avatar_yes" $avatarchecked[0] />$vbphrase[use_custom_avatar]</label><br /><br />
            				
            				$vbphrase[may_upload_custom_image_controls]<br /><br />
            		
            				[color=red]<if condition="$show['customavatar_url']">
            				$vbphrase[enter_url_to_image]
            					
            				<div style="padding:$stylevar[formspacer]px">
            					<input type="text" class="bginput" name="avatarurl" value="http://www." onchange="check_yes('avatar_yes')" size="45" dir="ltr" />
            					<input type="hidden" name="MAX_FILE_SIZE" value="$inimaxattach" />
            				</div>
            				</if>[/color]
            				
            				<if condition="$show['customavatar_url']">$vbphrase[option_2_upload_image_from_computer]<else />$vbphrase[upload_image_from_computer]</if>
            				<div style="padding:$stylevar[formspacer]px">
            					<input type="file" class="bginput" name="upload" onchange="check_yes('avatar_yes')" size="45" />
            				</div>

            Comment

            • gsk8
              Senior Member
              • Jun 2003
              • 482
              • 4.2.x

              #21
              Thank you very much, Jake. I really appreciate you taking the time to look that up and post it here.

              I know it seems trivial, but there's nothing worse when someone's image is broken because their server is down, expired, etc.
              Paula

              Comment

              • Jake Bunce
                Senior Member
                • Dec 2000
                • 46598
                • 3.6.x

                #22
                Actually the URL upload copies the remote image and stores it directly in the database, so it's the same difference as a local file upload.

                Comment

                • gsk8
                  Senior Member
                  • Jun 2003
                  • 482
                  • 4.2.x

                  #23
                  Ohhhhhh...didn't know that! Thanks again!!
                  Paula

                  Comment

                  • siutao
                    New Member
                    • Apr 2008
                    • 29
                    • 3.6.x

                    #24
                    Can I place the custom avatar directory outside public_html ?
                    If yes, how the setup for:
                    Avatar File Path
                    URL to avatars

                    I try the full path for "Avatar File Path" and it is correct. The custom avatar can be uploaded to that directory (outside public html), but the problem is the avatar did not show up. So I guess I did wrong with the "URL to avatars" setting.

                    Please advice.

                    Thank you and warm regards

                    Comment

                    • Steve Machol
                      Former Customer Support Manager
                      • Jul 2000
                      • 154488

                      #25
                      No sorry, that needs to be accessible via the web server.
                      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

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