PDA

View Full Version : Custom user background/conditional to see if user customized his profile


Nordinho
04-29-2009, 01:43 AM
Hello,

I got 2 questions.

1) I want to give certain users the ability to use a custum forum background on their profile page. The furthest I got was this:

<if condition="$bbuserinfo['fieldx'] && $prepared['userid'] == $bbuserinfo['userid']">
<body style="background: $bbuserinfo[fieldx];">
<else />
<body style="background: #color;">
</if>

Which (obviously) shows the user x his background when viewing his profile, but doesn't show it to other users viewing x's profile.

Has anyone been able to do this?

2) Is there a conditional that shows if a member has customized his/her profile?
Something like <if condition="$bbuserinfo['customizedprofile'] ></if>

Nordinho
04-30-2009, 08:49 AM
Bump

Lynne
04-30-2009, 02:49 PM
$bbuserinfo refers to the person viewing the page, not the person who's profile page you are on. You should try $userinfo instead.

Do a search on "customize" in the MEMBERINFO template and you'll see the code they use to display the Hide User Customizations code (it only shows if the user customized their profile).

Nordinho
05-03-2009, 01:56 PM
Thanx for that! It worked!