Quote:
Originally Posted by Boofo
If the user is unregistered, it should tell them they have made no posts in that forum.
Do you allow guests to post?
|
nope i don't but occasionally users get pruned and their posts remain so theirs something like 500 unregistered/guest posts, but with the conditional i managed to get rid of that
HTML Code:
<if condition="$bbuserinfo[userid] > 0">
<if condition="$yourposts != 0">
<td class="thead" align="center" nowrap="nowrap" colspan="2"><if condition="$forumstats[topposterun] == $bbuserinfo[username]"><strong>$bbuserinfo[username], you're this forum's <i>Top Poster</i> with a total of $yourposts</strong>. (<strong>$yourthreads and $yourreplies</strong>)<else /><strong>$bbuserinfo[username], you have made a total of $yourposts in this forum</strong>. (<strong>$yourthreads and $yourreplies</strong>)</if></td>
<else />
<td class="thead" align="center" nowrap="nowrap" colspan="2"><strong>$bbuserinfo[username], you have not yet posted in this forum</strong>.</td>
</if>
<else />
<td class="thead" align="center" colspan="2"><phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase></td>
</if>
so it displays seperate messages dependant on your userid being above zero