New way to get the profile picture?


Hey there,

After Xenforo's updates

PHP:<?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)


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?