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)

Logician 10-05-2005 12:49 PM

Quote:

Originally Posted by Boofo
Wouldn't this also work, Sinan?

It would.. But his message was lacking ''

TundraSoul 10-05-2005 11:31 PM

Thanks, I tried that but it didn't work.

Quote:

Originally Posted by Logician
[[($bbuserinfo[usergroupid]==6 AND !$bbuserfield[field18])]]Hello $bbuserinfo[username], please take a moment to update your user profile with your current information. Click the user CP link above, and then click Edit Profile. [[/($bbuserinfo[usergroupid]==6 AND !$bbuserfield[field18])]]


Logician 10-06-2005 05:02 AM

Quote:

Originally Posted by TundraSoul
Thanks, I tried that but it didn't work.

You are trying with an admin account whose field18 is empty right? Because the conditional is set so.

TundraSoul 10-06-2005 06:08 PM

Correct, I tested it on myself first, and field 18 was empty. I even looked into the database to make sure the option cleared it.

Quote:

Originally Posted by Logician
You are trying with an admin account whose field18 is empty right? Because the conditional is set so.


reismarktq2 10-15-2005 03:32 PM

Need a little help with a conditional:

We currently have our boards set up so that new accounts must go through moderation before they can post, but right now the only way to tell whether there are accounts waiting for moderation is to log into the admin control panel (which I don't want the administrators to have to do every time).

So what I'm asking is, is it possible to set up a conditional that displays when an administrator views the front page AND there are people in the "waiting moderation" group? I have this so far:

[[(($bbuserinfo[usergroupid]==6) AND (!empty(insert conditional that checks for people in usergroup 4)))]]

Logician 10-16-2005 06:06 AM

Quote:

Originally Posted by reismarktq2
Need a little help with a conditional:

We currently have our boards set up so that new accounts must go through moderation before they can post, but right now the only way to tell whether there are accounts waiting for moderation is to log into the admin control panel (which I don't want the administrators to have to do every time).

So what I'm asking is, is it possible to set up a conditional that displays when an administrator views the front page AND there are people in the "waiting moderation" group? I have this so far:

[[(($bbuserinfo[usergroupid]==6) AND (!empty(insert conditional that checks for people in usergroup 4)))]]

nope sorry, this is not possible without modification of the hack

reismarktq2 10-21-2005 02:13 AM

Quote:

Originally Posted by Logician
nope sorry, this is not possible without modification of the hack

Anyone have any idea how I would do this modification?

gigaenvy 10-24-2005 10:49 PM

Any chance to make a random or rotating announcement?

Crazy Serb 10-26-2005 03:41 AM

ok, what's the suntax for checking if the users are NOT members of 2 secondary usergroups, but are members of any other primary group?

I've tried the below without any success (or I might have done something wrong along the way):

Code:

[[(!$bbuserinfo[membergroupids]==9 AND !$bbuserinfo[membergroupids]==12)]]
content
[[(!$bbuserinfo[membergroupids]==9 AND !$bbuserinfo[membergroupids]==12)]]


Logician 10-26-2005 06:51 AM

Quote:

Originally Posted by Crazy Serb
ok, what's the suntax for checking if the users are NOT members of 2 secondary usergroups, but are members of any other primary group?

I've tried the below without any success (or I might have done something wrong along the way):

Code:

[[(!$bbuserinfo[membergroupids]==9 AND !$bbuserinfo[membergroupids]==12)]]
content
[[(!$bbuserinfo[membergroupids]==9 AND !$bbuserinfo[membergroupids]==12)]]


[[(!is_member_of($bbuserinfo,9 ,12))]]
content
[[/(!is_member_of($bbuserinfo,9 ,12))]]


All times are GMT. The time now is 07:22 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.01547 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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