I have pet profiles set up both for users managing their pets, and for those who click pets. So I want the backgrounds to display for those profiles, and set them up in the two files:
myadoptsview.php
levelup.php
In myadoptsview.php you call it this way
{$adopt->adoptbackground}, and in levelup.php it's like this
{$this->adopt->adoptbackground}. This calls the
url of the background image, so you'll need to put it in image tags, like so:
PHP Code:
<img src='{$adopt->adoptbackground}'>
or
PHP Code:
<div style='background:{$adopt->adoptbackground};'>(div elements here)</div>
Or other similar methods.
Let me know if that helps!