Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Create a new forum in X forum only if user has minimum post in X forum
xensor Offline
Junior Member
**
Posts: 22
Joined: Jan 2014
Post: #3
RE: Create a new forum in X forum only if user has minimum post in X forum
i know this is old but change the || to && and it will check for both not one or the other. || is or. && is and. with or it will check if one or the other matches and display. and it will check that both matches and if none does it shows the else.

or is for wanting to check if one or the other is correct.

so in this case you want both to be checked so or is not needed.

Code:
<if $thread['fid'] == 115 && $post['postnum'] >= 10 then>Create new thread
    <else>No
      </if>

06-08-2016 05:06 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Create a new forum in X forum only if user has minimum post in X forum - xensor - 06-08-2016 05:06 PM

 Standard Tools
Forum Jump: