Skip to:
Content
Pages
Categories
Search
Top
Bottom

Restricting Character Length of Activity Comments Textbox


  • homelesshenry
    Participant

    @homelesshenry

    Is there a template file for the activity comments where I can add “maxlength= ” to restrict the amount of characters that can be entered as a comment?

    I’ve done this already with whats-new textbox in the post-form.php file:

    <textarea class="bp-suggestions" maxlength="600" name="whats-new"

    If not, is there a way to do this with PHP?

    I’ve managed to do it with Javascript, but its rather pointless because a user can just disable javascript in browser to get around it.

Viewing 1 replies (of 1 total)

  • homelesshenry
    Participant

    @homelesshenry

    Figured it out. Can be done in entry.php file

    <textarea id="ac-input-<?php bp_activity_id(); ?>" maxlength="600" class="ac-input bp-suggestions"

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar