XF 2.2 Calling to profile banners in a DIV

apathy

Well-known member
On my site I currently allow users to change their postbit background by letting the user input an image URL in a custom field, then calling to the field like

Code:
<div style="background-image:url({$user.Profile.custom_fields.pbit});">

I'd like to remove the custom field altogether, and instead call to the users profile banner and use that URL instead.

The end result would look something along the lines of

Code:
<div style="background-image:url({$user.Profile.profile_banner});">

Is this possible with a simple variable or would it require an addon?
 
hi @apathy and @Jeremy P , can you help me with this?



this is my div:

<div class="postbit_background" style="background-image: url({$user.Profile.getBannerUrl($size)});"></div>

but im having an error :(
 
Top Bottom