BuddyDev

Search

[Resolved] “number of comment-limit” to work “FOR EACH POST”

  • Participant
    Level: Master
    Posts: 285
    evillizard on #21793

    “number of comment-limit” to work “FOR EACH POST” i.e each wordpress post have their own limit.

  • Participant
    Level: Master
    Posts: 285
    evillizard on #21794

    This my ….
    QUESTION BELOW:

    Hello brajesh

    In This plugin: https://we.tl/t-nKoTzgRXDr

    the number of comment limit works on “ALL-POSTS” instead of “PER-POST”

    I want the “number of comment-limit” to work “PER POST”

    For example:

    Lets say brajesh has the user-role of a subscriber


    Then i set it so that brajesh(subscribers) have a limit of 6-comments.

    So brajesh goes to “post-A” and makes 4-comments.

    (and since 6 – 4 = 2 comments left. )

    So now brajesh now has 2-comments left for “post-A”

    ..
    BUT Then when brajesh goes to post-B ..he will STILL have 2-comments left…INSTEAD of 6-comments since “post-B” is a new post.. Why is it like this?
    -*this is how the plugin currently is, BUT i do not like that*

    ….

    Instead “WHAT I WANT IS” so that

    if when i set brajesh(subscribers) to have a limit of 6-comments.

    then when brajesh goes to “post-A” and makes 4-comments.
    ..
    So brajesh now has 2-comments left for “post-A”

    ..
    What i want is: Then when brajesh goes to “post-B” ..HE WILL STILL HAVE HIS *6-COMMENTS* BACK… Since “post-B” is a new post.

    ….
    ….

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #21795

    Hi,
    Thank you for the question.

    Do you want to limit how many comments a post can have?
    If yes, what should we do after the post reaches the limit. Should we mark the comment as closed?

    Thank you
    Brajesh

  • Participant
    Level: Master
    Posts: 285
    evillizard on #21796

    I’ve been checking for this online

    ..

    Maybe this may help …cos it’s a bit similar to my question: https://stackoverflow.com/questions/37455232/limit-wordpress-users-to-post-one-comment-per-post

    ….

    But then this guy on the topic says: “limit is for all the posts” …see pic => https://postimg.cc/mzSgdgFt

    But then again i also don’t know if this guy has found a way – see pic =>
    https://postimg.cc/6TSDkNL3

    ….
    ….

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #21797

    Sorry, I replied too early in my previous post.

    The plugin download you are linking is being shown as deleted. Please link me again.

    It should be easily doable.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 285
    evillizard on #21799

    Responding to your question

    1- Do you want to limit how many comments a post can have?

    Respons: No, i want to limit how many comments a user role can have.. (THE PLUGIN CAN ALREADY DO THIS) for example is brajesh is a subscriber.. And i say all subscribers can only comment 6 times.. So brajesh would only be able to comment 6 times

    THE PROBLEM: .. If brajesh exhausts his 6 comments on POST-A… He would not be able to comment on ANY OTHER POST (i.e he would have 0comments left).. Until his 6 comments are deleted from POST-A ..

    Which is not good

    ..

    I want it to be.. If brajesh exhausts his 6comments on post-A ..and goes to post-B.. He would have his 6comments-limit back .. And the same if he goes to post-C and any other post

  • Participant
    Level: Master
    Posts: 285
    evillizard on #21801

    Ok boss hold on let me get it

  • Participant
    Level: Master
    Posts: 285
    evillizard on #21802
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #21806

    Hi,
    Since we modified the code for time limit, we can not use the modified code for your new scenario. Will that be fine?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #21807

    Also, we can put some code for this(comment based on user role for each post) but we can not make it honour the time limit as that will need a lot more time.
    Simple role based limit per post will take less time and I can gladly assist you with it.

    Please let me know.

    Regards
    Brajesh

The topic ‘ [Resolved] “number of comment-limit” to work “FOR EACH POST”’ is closed to new replies.

This topic is: resolved