Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 26th, 2014  |  syntax: PHP  |  size: 1.62 KB  |  views: 169  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <form action="<?php bp_messages_form_action('compose' ); ?>" method="post" id="send_message_form" class="standard-form" role="main" enctype="multipart/form-data">
  2.  
  3.         <?php do_action( 'bp_before_messages_compose_content' ); ?>
  4.  
  5.         <label for="send-to-input"><?php _e("Send To (Username or Friend's Name)", 'buddypress' ); ?></label>
  6.         <ul class="first acfb-holder">
  7.                 <li>
  8.                         <?php bp_message_get_recipient_tabs(); ?>
  9.                         <input type="text" name="send-to-input" class="send-to-input" id="send-to-input" />
  10.                 </li>
  11.         </ul>
  12.  
  13.         <?php if ( bp_current_user_can( 'bp_moderate' ) ) : ?>
  14.                 <input type="checkbox" id="send-notice" name="send-notice" value="1" /> <?php _e( "This is a notice to all users.", "buddypress" ); ?>
  15.         <?php endif; ?>
  16.  
  17.         <label for="subject"><?php _e( 'Subject', 'buddypress' ); ?></label>
  18.         <input type="text" name="subject" id="subject" value="<?php bp_messages_subject_value(); ?>" />
  19.  
  20.         <label for="content"><?php _e( 'Message', 'buddypress' ); ?></label>
  21.         <textarea name="content" id="message_content" rows="15" cols="40"><?php bp_messages_content_value(); ?></textarea>
  22.  
  23.         <input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php bp_message_get_recipient_usernames(); ?>" class="<?php bp_message_get_recipient_usernames(); ?>" />
  24.  
  25.         <?php do_action( 'bp_after_messages_compose_content' ); ?>
  26.  
  27.         <div class="submit">
  28.                 <input type="submit" value="<?php esc_attr_e( "Send Message", 'buddypress' ); ?>" name="send" id="send" />
  29.         </div>
  30.  
  31.         <?php wp_nonce_field( 'messages_send_message' ); ?>
  32. </form>
  33.  
  34. <script type="text/javascript">
  35.         document.getElementById("send-to-input").focus();
  36. </script>
clone this paste RAW Paste Data