Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Template Conditionals | If Under X Posts Show Div
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Template Conditionals | If Under X Posts Show Div
There are some ways to do it, depends on how the layout.
But the most important thing is your conditional above.

Simple example:

Code:
<if $mybb->user['postnum'] < 10 then>
	<div class="underPostNotification">Message here</div>
</if>


The div and the massage will be displayed only for the users who have posts less than 10.


12-16-2017 02:48 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Template Conditionals | If Under X Posts Show Div - RateU - 12-16-2017 02:48 AM

 Standard Tools
Forum Jump: