Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hamidnpc

    (@hamidnpc)

    It doesn’t matter, There is no different between users.

    I just want to all users can send any messages they want to everybody, BUT i want to show messages of 4 users for spacial role like “seller”.

    Actually something like a filter in messgebox page.A filter that can show all messages from 2 person, all messages from 4 person and so on. There is no difference between users.

    Did you understand?

    Thanks!

    Thread Starter hamidnpc

    (@hamidnpc)

    Hi,
    Thanks for your answer!

    I didn’t get you.
    What is your approach? there is no options to “restrict sending messages”.
    Even though it is options in Settings that i can’t find that, I don’t want that.

    Since i want to all users send any messages they want, But spacial role like seller just can’t open that, I did all part of roles and other stuff.

    But i don’t know how to filter messages per users, actually showing all messages of 4 users.
    Look codes: templates/messegebox.php


    <?php if ( rcp_get_subscription_id() == 2 ) ) // my spacial plan {
    if($i++ > 4) { ?>

    <span class="<?php echo $class; ?>"><?php the_title(); ?> <span> restricted </span> </span><?php echo $span; ?><div class="fep-message-excerpt">restricted...</div>

    <?php break;
    }
    } else {?>

    <span class="<?php echo $class; ?>"> get_the_ID())); ?>"><?php the_title(); ?></span><?php echo $span; ?><div class="fep-message-excerpt"><?php echo fep_get_the_excerpt(100); ?></div>
    <?php } ?>

Viewing 2 replies - 1 through 2 (of 2 total)