vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Dynamic Announcements: Programmable Forum Home Announcement/Message with conditionals (https://vborg.vbsupport.ru/showthread.php?t=64189)

Crazy Serb 10-26-2005 07:13 AM

Quote:

Originally Posted by Logician
[[(!is_member_of($bbuserinfo,9 ,12))]]
content
[[/(!is_member_of($bbuserinfo,9 ,12))]]


tried that, didn't get anything now... no popup.

Logician 10-26-2005 07:18 AM

Quote:

Originally Posted by Crazy Serb
tried that, didn't get anything now... no popup.

This conditional means the user shouldn't be a member of usergroup 9 OR 12. This applies to both primary usergroup AND additional usergroups. So are you trying with a test account which does not belong to 9 and 12 at all?

heynurse 10-26-2005 07:31 AM

I want to show the announcement to everyone, except these user groups: 5,6,7,22

any help?

Logician 10-26-2005 07:37 AM

Quote:

Originally Posted by heynurse
I want to show the announcement to everyone, except these user groups: 5,6,7,22

any help?

[[(!is_member_of($bbuserinfo,5 ,6 ,7, 22))]]
I want to show the announcement to everyone, except these user groups: 5,6,7,22
[[/(!is_member_of($bbuserinfo,5 ,6 ,7, 22))]]

heynurse 10-26-2005 07:50 AM

Quote:

Originally Posted by Logician
[[(!is_member_of($bbuserinfo,5 ,6 ,7, 22))]]
I want to show the announcement to everyone, except these user groups: 5,6,7,22
[[/(!is_member_of($bbuserinfo,5 ,6 ,7, 22))]]

Hi Logician,
Thanks for your prompt reply, I tried the the above conditional and nothing shows up? Thanks

Logician 10-26-2005 08:06 AM

ok, I checked and you both are right. Apparently the check works just for the primary usergroup. So you can use that one if you want to check primary usergroup of the user:

[[(in_array($bbuserinfo[usergroupid], array(5,6,7,22)))]]
show if visitor's primary usergroup is 5 or 6 or 7 or 22
[[/(in_array($bbuserinfo[usergroupid], array(5,6,7,22)))]]

OR

[[(!in_array($bbuserinfo[usergroupid], array(5,6,7,22)))]]
show if visitor's primary usergroup is NOT 5 or 6 or 7 or 22
[[/(!in_array($bbuserinfo[usergroupid], array(5,6,7,22)))]]

I have no suggestion if you want to check secondary usergroup, sorry about it.

Mastar 11-20-2005 02:09 PM

I've upgraded from 3.09 to 3.51 and I would like to know how to remove this hack from the vbulleting options?

Logician 11-20-2005 03:10 PM

Quote:

Originally Posted by Mastar
I've upgraded from 3.09 to 3.51 and I would like to know how to remove this hack from the vbulleting options?

https://vborg.vbsupport.ru/showpost....7&postcount=38


All times are GMT. The time now is 02:08 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.01558 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete