MyBB Community Forums

Full Version: Custom Profile Field in 'member_profile' Template?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

I was trying to allow users to have backgrounds in their profile using custom profile fields. I created two fields:

URL of image
Position (left, center or right)

Then in the profile template I put the content in a divider and used this css:
background: url('{$post['fid5']}') top {$post['fid6']} no-repeat;

This is returned regardless of whether the options are set:
background: url('') top  no-repeat;

It seems that the template can't read Custom Profile Fields. Is there a way to allow it to do so?

Cheers,
Clarkie
Try to use this CSS in template, using style="background: url('{$post['fid5']}') top {$post['fid6']} no-repeat;" tag.
You cannot use the $post variable within member profiles. Try this instead:

background: url('{$userfields['fid5']}') top {$userfields['fid6']} no-repeat;
(2012-05-13, 12:42 PM)euantor Wrote: [ -> ]You cannot use the $post variable within member profiles. Try this instead:

background: url('{$userfields['fid5']}') top {$userfields['fid6']} no-repeat;
Thanks, exactly what I was after. Smile
this is works?

i wanna try to use this method on my forum ..

http://sprihacknet.tk/User-Eike

i wanna make a welcome image (background on member profiles) using custom profile fields butt.. dont work any help?

i use this ..

custom profile field:
title: welcome member image
type: text box
max long: 0
long: 0

___

css

.portadaperfil {
background: url('{$userfields['fid6']}') no-repeat;
height: 350px;
}

___

html

<div class="portadaperfil"> content </div>

but.. don't works...
___

sorry for my bad english, im a spanish user.

any help please?