vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   advertising for a user group (https://vborg.vbsupport.ru/showthread.php?t=327550)

winky8300 09-21-2019 02:59 PM

advertising for a user group
 
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

Quote:

Originally Posted by snakes1100 (Post 2600759)
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

Code:

<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.


HTML Code:

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


Your ad code here


</vb:if>


.

winky8300 09-25-2019 04:12 PM

Quote:

Originally Posted by Seven Skins (Post 2600767)
Your code has to go in between the if statement. e.g.


HTML Code:

<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

PHP Code:

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


Your ad code here


</vb:if> 


winky8300 09-27-2019 05:15 AM

Quote:

Originally Posted by scottkoz20 (Post 2600799)
if you wanted to exclude a UG

PHP Code:

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


Your ad code here


</vb:if> 


thanks a lot scottkoz20:up:


All times are GMT. The time now is 10:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01139 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete