![]() |
Problem with conditionals
In my postbit template, I have:
Code:
<if condition="is_member_of($bbuserinfo, 5,6,7,15)"> So do I have to change the way my subscription is set up or the way I have the if condition set up? |
That conditional will not match those who are only in 2, so you do not have to change it.
|
But it's not showing up for those who are primarily in 15 and additionally in 2. And that's what I want.
Let me say it another way and maybe it will be more clear. The way I want it and the way I thought it would work: Club members with a subscription who are in 15 and 2 - see this field Regular users who are only in 2 - don't see it The way it is now: Club members who are in 15 and 2 - don't see it <-- bad Regular users who are only in 2 - don't see it <--good |
Can members in group 5,6,7 see it? Is your condition perhaps inside of another condition that members in group 15 don't get to see?
|
It works for 6 (me) and 7. Just not 15. And it's not inside another condition.
|
If you remove the "$post['field5']" conditional (the second one), does it still not show for the other group?
|
If I remove that, all group 15 sees is "a.k.a.:" but it doesn't show the value in field5. Group 6 sees both the aka and the value in the field.
This is what I have now: Code:
<if condition="is_member_of($bbuserinfo, 5,6,7,15)"> |
That means "field5" is not populated for group 15 - fill in that field for the user.
|
It is filled in in many user's profiles. It's an optional profile field.
|
Are you sure it is field 5? Because none of the conditionals are wrong - they are working.
|
Quote:
Certain. |
So, I'm still trying to figure out why this doesn't work...
I want this profile field to show in the postbit to those who are a member of both usergroups 2 and 15. No matter what group the poster is in. Now I'm trying variations on a theme. I tried doing this but I don't know if it's even possible: Code:
<if condition="is_member_of($bbuserinfo, 2) AND is_member_of($bbuserinfo, 15)"> |
Code:
<if condition="is_member_of($bbuserinfo, 2) AND is_member_of($bbuserinfo, 15)"> Code:
<if condition="is_member_of($bbuserinfo, 2, 15)"> |
Have you tried
Code:
<if condition="(is_member_of($bbuserinfo, 2,15)) AND ($post[field5]) "> |
Quote:
Code:
<if condition="is_member_of($bbuserinfo, 2, 15)"> Code:
<if condition="is_member_of($bbuserinfo, 2) OR is_member_of($bbuserinfo, 15)"> |
My bad, Lynne. Late at night and not enough coffee. :)
I stand corrected. |
Quote:
|
Quote:
If you aren't in usergroup 2 or 15 and the user has it entered, it wont show it to you If you are in usergroup 2 or 15 and the user doesn't have field 5 entered, it shows nothing So you probably just want the usergroup ID of 15 there (and not 2), and the field5 |
Quote:
|
Code:
<if condition="is_member_of($bbuserinfo, 2) AND is_member_of($bbuserinfo, 15) AND $post['field5'] "> |
That doesn't work either.
Would you like to see my postbit template? Maybe I'm missing something... |
I fixed this.
Under General Permissions within the Usergroup permissions, "Can View Private Custom Fields" has to be set to yes since the user's real name is a private field. |
All times are GMT. The time now is 04:07 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|