Log in

View Full Version : Banned member conditionals help


christon26
12-05-2009, 07:17 PM
I am trying to customise my member profiles so that if the member has been banned the profile will display something different (to all)...and I am running into trouble lol

At a glance, what I am trying to do is:

On viewing member profile page =====

<If member has been banned>

[show custom content]

<else />

[normal content]

The conditional I tried I found in another thread for showing custom avatars in postbit/member profiles is not working:

<if condition="is_member_of($post, 8)">

Can anyone help me with the conditional I *should* be using to get it to work? I am using 3.8.4

Lynne
12-05-2009, 07:28 PM
$post is not a valid variable for use on that page. You probably need to use either $userinfo or $prepared.

christon26
12-05-2009, 07:32 PM
Ooo I didn't think of that LOL I shall try the others and post back with the results lol thanx so much :)

--------------- Added 1260050236 at 1260050236 ---------------

$userinfo worked...thanx :) Now I have a lil more tweaking to do LOL

Hex_legend
12-06-2009, 07:23 PM
check mine

www.vampyrescene.com/JimmyDL

thats my banned profile

ChopSuey
12-07-2009, 12:22 AM
Great guests cannot view member info now. :)

christon26
12-07-2009, 04:01 AM
check mine

www.vampyrescene.com/JimmyDL (http://www.vampyrescene.com/JimmyDL)

thats my banned profile

Requires a login to view the profile...

Great guests cannot view member info now. :)

You can see mine here, it's a test account and only banned for 7 days...basically I just wanted to show the banned info and hide anything else lol http://www.lissaedesignz.com/forum/members/michal/