Forums

IF user has posted X comments THEN do something (3 posts)

  1. Pete
    Member
    Posted 2 years ago #

    IF registered user has posted X comments THEN do something ELSE do this

    I have this nifty piece of code that does this

    IF user is <strong>Logged-in</strong> THEN 'do something' ELSE 'do this'
    <?php if (is_user_logged_in()): ?>
    <p>DO SOMETHING</p>
    <?php else: ?>
    <p>DO THIS</p>
    <?php endif; ?>

    But I'd like to know how to adapt this so that the DO SOMETHING also has a condition that the user must have posted at least X comments.

    Thanks

  2. Pete
    Member
    Posted 2 years ago #

    I've searched this forum and googled it to death but haven't found anything to help me... any help appreciated :)

  3. Pete
    Member
    Posted 2 years ago #

    bump

Topic Closed

This topic has been closed to new replies.

About this Topic