Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 warning (only show) for user zero posting or even not give post at all.
terzier Offline
Member
***
Posts: 91
Joined: Feb 2012
Post: #1
warning (only show) for user zero posting or even not give post at all.
I want to display a warning to the members in my forum. but the warning only appear to the user that the number of posts the member is less than 5 or even not give post at all.

how to make the warning with "Template Conditionals"?

   
just an example. but the sentence is more or less appears like this

Code:
<username> ... bla...bla... bla... member for haven't posted anything yet or zero posting counts. Be noted that we are deleting zero-posters (user) from time to time.


Un-Official MyBB from Indonesia| Facebook Page|Twitter
GARUDA DIDADA KU
(This post was last modified: 08-05-2014 03:56 PM by terzier.)
08-05-2014 03:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
terzier Offline
Member
***
Posts: 91
Joined: Feb 2012
Post: #2
RE: warning (only show) for user zero posting or even not give post at all.
after trying a few references but still not successful. and I tried the following code but it still does not work the way I want.

Code:
<if $GLOBALS['mybb']->post['postnum'] < 10 then>
Counting Down Time for delete inactive or zero post user.
</if>


Quote:note:here I just wanted to show ranked number to members who do not have the number of posts or zero posts.

Un-Official MyBB from Indonesia| Facebook Page|Twitter
GARUDA DIDADA KU
(This post was last modified: 08-05-2014 07:36 PM by terzier.)
08-05-2014 07:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #3
RE: warning (only show) for user zero posting or even not give post at all.
AFAIK, there is no $mybb->post['postnum']
You can try $mybb->user['postnum']

08-06-2014 05:39 AM
Find all posts by this user Quote this message in a reply
terzier Offline
Member
***
Posts: 91
Joined: Feb 2012
Post: #4
RE: warning (only show) for user zero posting or even not give post at all.
thanks you RateU, works very well. Yipi

Un-Official MyBB from Indonesia| Facebook Page|Twitter
GARUDA DIDADA KU
08-18-2014 02:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: