vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   custom usergroup message (https://vborg.vbsupport.ru/showthread.php?t=205925)

schmidt123a 02-19-2009 05:09 PM

custom usergroup message
 
Hello.

My vbulletin version 3.7.4 I want to make custom message.

Example: when user register to forum on main page I want what it display message "You are registered user $username send sms to bla bla bla to become VIP"

and when he send this sms this message disappear,I already have this sms script all working,just need to add this message.

I think it should be something like:

Code:


if usergroup = x
there going message
else if he is already VIP message disappear

How to do this ?

thanks.

Seven Skins 02-19-2009 05:14 PM

<if condition="is_member_of($bbuserinfo, 2)">
Message here
</if>

schmidt123a 02-19-2009 05:26 PM

Quote:

Originally Posted by Seven Skins (Post 1749199)
<if condition="is_member_of($bbuserinfo, 2)">
Message here
</if>

Thanks,and maybe know how to display username inside this message ?

Lynne 02-19-2009 05:33 PM

Most likely $bbuserinfo[username]

Dismounted 02-20-2009 03:27 AM

You may want to use the Notices feature.


All times are GMT. The time now is 05:01 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
  • Page Generation 0.01351 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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