PDA

View Full Version : advertising for a user group


winky8300
09-21-2019, 02:59 PM
Hello
I would like to know if there is a script or an add so that advertisements will be displayed for a group of users and not displayed for another group
thank you in advance

snakes1100
09-24-2019, 07:38 PM
No need for a script, just wrap the ad code in an if statement.

winky8300
09-25-2019, 04:37 AM
No need for a script, just wrap the ad code in an if statement.

hello snakes1100 ,thank you for your reply
that's why a need help ,i don't know to make the code with statement if ,can you help me to do it please ?
thank you very match

snakes1100
09-25-2019, 07:16 AM
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">Show this to user group 1, 2, and 3</vb:if>

winky8300
09-25-2019, 09:25 AM
thanks a lot for your help
just a small question, or should I put my script? before or after this code
thanks again

Seven Skins
09-25-2019, 02:49 PM
Your code has to go in between the if statement. e.g.


<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">


Your ad code here


</vb:if>


.

winky8300
09-25-2019, 04:12 PM
Your code has to go in between the if statement. e.g.


<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">


Your ad code here


</vb:if>


.

thank you so much:)

scottkoz20
09-26-2019, 06:58 PM
if you wanted to exclude a UG

<vb:if condition="!is_member_of($bbuserinfo, UserGroupID's)">


Your ad code here


</vb:if>

winky8300
09-27-2019, 05:15 AM
if you wanted to exclude a UG

<vb:if condition="!is_member_of($bbuserinfo, UserGroupID's)">


Your ad code here


</vb:if>

thanks a lot scottkoz20:up: