![]() |
how to hide a forum from Specific gender?
hi all
I want to hide a forum from Specific gender and I don't want to create a new usergroup I tried something but it dose not work, I don't know what is wrong I have field to Specify the gender and it's Necessary in new registration I want to hide forum nymber 21 from male. I did this modefation in "forumhome_forumbit_level1_post" HTML Code:
<if condition=" $post['field5'] == 'male' AND $forum[forumid] == 21 "> and what is the right way? thanking you |
First of all, you can't use "$post" in the conditional if you're using the conditional in the "forumhome_forumbit_level1_post" template.
You should also probably avoid using <else /> by just using a negative conditional. Try this: HTML Code:
<if condition="$userinfo['field5'] != 'male' AND $forum[forumid] == 21"> |
thank you for your help
but it didn't work thanks |
Is field 5 the gender field? Also, is it a single-selection menu with only "Male" and "Female" as the options?
|
I believe the options are case-sensitive too, so if it's Male in the Options, it must be == 'Male' in the conditional.
|
thank you for your help
I put it in "forumhome_forumbit_level2_post" and it works but the second condition only and I take care of the 'Male' as a case sensitive. but it did not work it's only hide forum 21 from male and female ! what to do |
Quote:
|
it dosn't care about the gender
it's only hiding the forum number 21 from both m/f |
All times are GMT. The time now is 07:27 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:
|