Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2005, 01:45 AM
Mijae's Avatar
Mijae Mijae is offline
 
Join Date: Nov 2001
Location: Russia
Posts: 523
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Conditionas and stuff

Currently I have this:

Code:
<if condition="$show['guest']"> 
	<!-- guest welcome message --> 
	<table class="tborder" cellpadding="$stylevar[cellpadding]" 

cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<thead>
	<tr> 
	<td class="alt1" colspan="6"><font class="sf">
Welcome to <b>Invoid Forums</b>, a place to talk or discuss any topic you can think of. With 

thousands of members and posts, you'll always have something to do!<br /><br />

You are currently viewing our boards as a guest which gives you limited access to view most 

discussions, photo galleries and other site areas. By joining our <b>free</b> community you 

will have access to post topics, communicate privately with others (PM), respond to 

polls, upload your own photo gallery and access many other special features. Registration is 

fast, simple and absolutely free so please, <a href="register.php?"><b>join our community 

today</b></a>!<br /><br />

If you have any problems with the registration process or your account login, please <a 

href="sendmessage.php">contact support</a>.</font>
	</td>
	</tr>
	</thead>
	</table><br />
	<!-- / guest welcome message -->
<else /> 

<if condition="is_member_of($bbuserinfo, 3)">
	<!-- / unconfirmed user message -->
	<table class="tborder" cellpadding="$stylevar[cellpadding]" 

cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<thead>
	<tr> 
	<td class="alt1" colspan="6"><font class="sf">
Hello <b>$bbuserinfo[username]</b>,<br /><br />
Your account is awaiting email confirmation. Please click the activation link in the email 

you were sent, or visit <a href="register.php?$session[sessionurl]do=requestemail"><b>this 

page</b></a> to resend the activation email. If you did not receive the email then it's 

possible it was blocked by your email client. In this case you can either disable your 

blocker software or enter a new email address in <a 

href="profile.php?$session[sessionurl]do=editpassword">your profile</a>.</font>
	</td>
	</tr> 
	</thead>
	</table><br />
	<!-- / unconfirmed user message -->
<else />

<if condition="$bbuserinfo[posts]<1">
	<!-- never posted message -->
	<table class="tborder" cellpadding="$stylevar[cellpadding]" 

cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<thead>
	<tr>
	  <td class="alt1" colspan="6"><font class="sf">
Hello <b>$bbuserinfo[username]</b>,<br /><br />
Our records indicate that you have never posted to our site before! Why not make your first 

post today by saying hello to our community in our <a 

href="forumdisplay.php?f=46"><b>Introduction</b></a> forum (Shinra Inn).<br /><br />

To access file attachments and public user groups you will need to make at least 1 post; to 

setup a custom avatar and profile picture you will need to make 25 posts. Why not start with 

your first post today and become an active part of our great community?</font>
	 </td>
	</tr>
	</thead>
	</table><br />
	<!-- / never posted message -->
<else /> 

<if condition="$headerstime - 1209600 > $bbuserinfo[lastpost]">
	<!-- never posted message -->
	<table class="tborder" cellpadding="$stylevar[cellpadding]" 

cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> 
	<thead>
	<tr> 
	    <td class="alt1" colspan="6"><font class="sf">
Hello <b>$bbuserinfo[username]</b>,<br /><br />
Its been a few days since you made your last post. If you can't find a topic to participate 

in, feel free to create a new thread! We have several forums and sub-forums that should 

cover most of the topics you can think of, but if you can't find the right one, just post it 

in the <a href="forumdisplay.php?f=3"><b>Random Discussion</b></a> forum.</font>
	   </td>
	</tr>
	</thead>
	</table><br />
	<!-- / never posted message -->
</if>
</if>
</if>
</if>
This shows a different message to guests, registered but no activated, activated with no posts, and non active users.

My question is what condition do I have to set to show a message to normal members? Should I just make it show the message to people with over X posts?
Reply With Quote
  #2  
Old 02-07-2005, 01:53 AM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Normal as in registered members ?

Code:
<if condition="$bbuserinfo[userid]">
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:11 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.03826 seconds
  • Memory Usage 2,170KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete