daily pastebin goal
89%
SHARE
TWEET

custom compose.php

a guest Aug 26th, 2014 240 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         <div class="effect6" style="width:100%;">
  6.                 <label for="send-to-input"><h2 style="color:rgb(0, 132, 182);"><?php _e("Send To (Username or Friend's Name)", 'buddypress' ); ?></h2></label><br/>
  7.                 <ul class="first acfb-holder">
  8.                         <li style="width:100%;">
  9.                                 <?php //bp_message_get_recipient_tabs(); ?>
  10.                                 <div id="recipients-helpa"></div>
  11.                                 <input type="text" name="send-to-input" class="send-to-input" id="send-to-input" value="<?php if(isset($_GET['r'])) echo str_replace(",",", @","@".$_GET['r']); ?>"/>
  12.                                 <label for="send-to-input">Start typing a name</label>
  13.                         </li>
  14.                 </ul>
  15.         </div>
  16.  
  17.         <?php //if ( bp_current_user_can( 'bp_moderate' ) ) : ?>
  18.                 <!--<input type="checkbox" id="send-notice" name="send-notice" value="1" /> <?php //_e( "This is a notice to all users.", "buddypress" ); ?>-->
  19.         <?php //endif; ?>
  20.  
  21.         <div class="effect6" style="width:100%;">
  22.                 <label for="subject"><h2 style="color:rgb(0, 132, 182);"><?php _e( 'Subject', 'buddypress' ); ?></h2></label>
  23.                 <input type="text" name="subject" id="subject" value="<?php bp_messages_subject_value(); ?>" />
  24.         </div>
  25.  
  26.         <div class="effect6" style="width:100%;">
  27.                 <label for="content"><h2 style="color:rgb(0, 132, 182);"><?php _e( 'Message', 'buddypress' ); ?></h2></label>
  28.                 <textarea name="content" id="message_content" rows="15" cols="40"><?php bp_messages_content_value(); ?></textarea>
  29.        
  30.                 <div class="submit" style="background-color:rgb(235,235,235);height: 50px; width:100%;">
  31.                         <input type="submit" style="float:right;" value="<?php _e( "Send", 'buddypress' ); ?>" name="send" id="send" />
  32.                 </div>                 
  33.         </div>
  34. <?php //bp_message_get_recipient_usernames(); ?>
  35.         <input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php if(isset($_GET['r'])) echo str_replace(","," ",$_GET['r']); ?>" class="<?php if(isset($_GET['r'])) echo str_replace(","," ",$_GET['r']); ?>" />
  36.  
  37.         <?php do_action( 'bp_after_messages_compose_content' ); ?>
  38.  
  39.  
  40.  
  41.         <?php wp_nonce_field( 'messages_send_message' ); ?>
  42. </form>
  43.  
  44. <script type="text/javascript">
  45.         document.getElementById("send-to-input").focus();
  46. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top