1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New way to get the profile picture?

Discussion in 'General PHP and MySQL Discussions' started by bmx_atvman, Jul 22, 2013.

  1. bmx_atvman

    bmx_atvman Member

    Hey there,

    After Xenforo's updates

    PHP:
    http://mysite.com/community/avatar.php?size=s&userid=<?php echo $avatar[1?>
    No longer works and the image 404's but worked fine with the older versions (during the code freeze)


    Also, how do I get smiley faces?

    (I am making a PHP script to call a forum [news forum] and we use smiley faces and stuff in our post)

    Thanks,
    Bill
     
  2. oman

    oman Well-Known Member

  3. bmx_atvman

    bmx_atvman Member

  4. oman

    oman Well-Known Member

    You'll have to ask in the discussion thread. I don't personally use it, so I wouldn't know what needs updating.
     
  5. bmx_atvman

    bmx_atvman Member

    Okay, thanks anyway :)
     
  6. bmx_atvman

    bmx_atvman Member

  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I just tested that script with XenForo 1.2. It works.
     
  8. bmx_atvman

    bmx_atvman Member

    PHP:
    http://mysite.com/community/avatar.php?size=s&userid=<?php echo $avatar[1?>
    Does everything look correct? Because the image 404's
     
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Does that code render correctly? What is the resulting URL? Make sure the userid renders correctly or it obviously won't work.

    There is also the question of context. Is this being used in a HTML page? What is the URL of the page?
     
  10. bmx_atvman

    bmx_atvman Member

  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Check the log:

    Admin CP -> Tools -> Server Error Log
     
  12. bmx_atvman

    bmx_atvman Member

  13. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It's a gravatar and it's failing to resolve the host name for their service. It's probably a problem on their end.
     
  14. bmx_atvman

    bmx_atvman Member

    Is there anything I can do about besides get rid of Gravatar?
     
    Last edited: Jul 23, 2013

Share This Page