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

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

Jake Bunce

XenForo moderator
Staff member
#9
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