custom avatars not refreshing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ibjohn
    New Member
    • Sep 2003
    • 11
    • 2.2.3

    custom avatars not refreshing

    OK i've seen this posted but no resolution to the problem
    Everytime i refresh while in a thread or after posting the avatars show up as a broken link(red x)I checked the path and thats not the problem
    so it must be some sort of server configuration
    Can anyone point me in the right direction?
    Is this a PHP or MySQL configuration issue

    Thanx in advance ~_^
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    you probally turned hotlink protection on and didnt configure it right :\

    Comment

    • ibjohn
      New Member
      • Sep 2003
      • 11
      • 2.2.3

      #3
      Originally posted by Faranth
      you probally turned hotlink protection on and didnt configure it right :\
      I don't think that's the problem
      I'm hosted on UnixFreeBSD and the are NO .htaccess files on the entire site :P

      Comment

      • Zachery
        Former vBulletin Support
        • Jul 2002
        • 59097

        #4
        do the other images on the site work?

        Comment

        • ibjohn
          New Member
          • Sep 2003
          • 11
          • 2.2.3

          #5
          Originally posted by Faranth
          do the other images on the site work?
          yes they do
          All other images are working

          Comment

          • ibjohn
            New Member
            • Sep 2003
            • 11
            • 2.2.3

            #6
            Does anyone know the source of this problem?

            Comment

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

              #7
              No sorry. It's definitely server and/or ISP related.
              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

              • ibjohn
                New Member
                • Sep 2003
                • 11
                • 2.2.3

                #8
                any clues on what the server issue is?

                Comment

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

                  #9
                  Sorry, if I knew I would have posted it.
                  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

                  • Zachery
                    Former vBulletin Support
                    • Jul 2002
                    • 59097

                    #10
                    do all avatar images not work?

                    do any of the avatars uploaded tot he databasework?

                    Comment

                    • ibjohn
                      New Member
                      • Sep 2003
                      • 11
                      • 2.2.3

                      #11
                      Originally posted by Steve Machol
                      No sorry. It's definitely server and/or ISP related.
                      Ok I have solved this problem myself and it was a vbulletin issue
                      avatar.php
                      PHP Code:
                      if ($avatarinfo=$DB_site->query_first("SELECT avatardata,dateline,filename FROM customavatar WHERE userid=".intval($userid))) {
                        
                      header("Cache-control: max-age=31536000");
                        
                      header("Expires: " gmdate("D, d M Y H:i:s",time()+31536000) . " GMT");
                        
                      header("Content-disposition: inline; filename=$avatarinfo[filename]");
                        
                      header("Content-Length: ".strlen($avatarinfo[avatardata]));
                        
                      header("Last-Modified: " gmdate("D, d M Y H:i:s",$avatarinfo[dateline]) . " GMT"); 

                      I removed "dateline" from the first line in the snipet
                      and now everything works

                      Now if you can just enlighten me on what i did
                      That would be most apreciated

                      Maybe this can help anyone else that has had this problem

                      IT'S VERY ANNOYING
                      Last edited by ibjohn; Sun 7 Sep '03, 10:10pm.

                      Comment

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

                        #12
                        What file is that code from? I suspect there's a field missing in your customavatar table.
                        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

                        • ibjohn
                          New Member
                          • Sep 2003
                          • 11
                          • 2.2.3

                          #13
                          Originally posted by Steve Machol
                          What file is that code from? I suspect there's a field missing in your customavatar table.
                          It was from avatar.php

                          Do you really think that could be the problem

                          The avatars(b4 i erased anything)would show up fine when you went to a post.
                          When u refreshed or made a new post and was brought back to the thread
                          They would show up as broken links but the link was valid
                          I could hit the back button in the browser,then move forward again then they would show up

                          Can u tell me what field u suspect me missing and i can check for it

                          Comment

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

                            #14
                            Since it works when you remove 'dateline' that's the field I would check.
                            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

                            • ibjohn
                              New Member
                              • Sep 2003
                              • 11
                              • 2.2.3

                              #15
                              Yes the field is there
                              do you think it could be configured wrong?
                              Attached Files

                              Comment

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