Log in

View Full Version : Display custom header messages based on post count?


coRtALoS
12-17-2006, 04:06 AM
I'm looking for a hack of sorts, that can display a "Welcome header" like post..but only for users with x number of posts and lower.

What I want to do is for everyone with say, 10 posts and under, have a message that will be near the header, reminding the user to do something, and once they have reached 10 posts the message will go away.

Is this possible?

Thanks!

Ted S
12-17-2006, 06:07 AM
That's simple enough...

In your header template add the following code at the very end:


<if condition="$bbuserinfo[posts]<10">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1">
Type your message contents here.
</td>
</tr>
</table>
</if>


Using that code you can address people in any user state or show different messages to people who have posted under 10 posts and people who have posted over 20, 30, 100 or whatever your like.

coRtALoS
12-17-2006, 07:05 AM
Awesome. Thanks!