Skip to:
Content

BuddyPress.org

Changeset 6102


Ignore:
Timestamp:
06/15/2012 07:06:38 PM (9 years ago)
Author:
djpaul
Message:

On the new topic/edit topics templates in BP-Default, set a maxlength on the title input. This prevents titles being silently truncated when over 100 characters.
Fixes #4202

Location:
trunk/bp-themes/bp-default
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/forums/index.php

    r5737 r6102  
    103103
    104104                            <label><?php _e( 'Title:', 'buddypress' ); ?></label>
    105                             <input type="text" name="topic_title" id="topic_title" value="" />
     105                            <input type="text" name="topic_title" id="topic_title" value="" maxlength="100" />
    106106
    107107                            <label><?php _e( 'Content:', 'buddypress' ); ?></label>
  • trunk/bp-themes/bp-default/groups/single/forum.php

    r5737 r6102  
    7474
    7575                <label><?php _e( 'Title:', 'buddypress' ); ?></label>
    76                 <input type="text" name="topic_title" id="topic_title" value="" />
     76                <input type="text" name="topic_title" id="topic_title" value="" maxlength="100" />
    7777
    7878                <label><?php _e( 'Content:', 'buddypress' ); ?></label>
  • trunk/bp-themes/bp-default/groups/single/forum/edit.php

    r5737 r6102  
    4646
    4747                <label for="topic_title"><?php _e( 'Title:', 'buddypress' ); ?></label>
    48                 <input type="text" name="topic_title" id="topic_title" value="<?php bp_the_topic_title(); ?>" />
     48                <input type="text" name="topic_title" id="topic_title" value="<?php bp_the_topic_title(); ?>" maxlength="100" />
    4949
    5050                <label for="topic_text"><?php _e( 'Content:', 'buddypress' ); ?></label>
Note: See TracChangeset for help on using the changeset viewer.