Announcement

Collapse
No announcement yet.

Avatars default directory?

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

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

    Comment


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

      Admin CP -> Avatars -> User Picture Storage Type

      Comment


      • #18
        Jake,

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

        Comment


        • #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


          • #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 />
            		
            				<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>
            				
            				<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


            • #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


              • #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


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

                  Comment


                  • #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


                    • #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

                      Loading...
                      Working...
                      X