Replies
Hello Oscar,
Right now top-rated only set to 1 which means true in boolean value and will list top rated media just like “Top rated media” widget.
Thank You
RaviHello Oskar,
I have updated the plugin. Please download the latest version of “MediaPress Media Rating”. I have added support to show top rated media. Please refer the following URL
https://buddydev.com/plugins/mpp-media-rating/
e.q. [mpp-list-media component=members top-rated=1]
Thank You
RaviHello Nopipe,
Thank you for posting. Sorry, but I am not getting what are you willing you say here. Are you saying that only administrator user can comment on activity? Please help me to understand your requirement.
Ravi
Hello Oscar,
MediaPress media rating plugin comes with a widget which allows showing top-rated media. Have you checked that?
Thank You
Ravi- Ravi on June 12, 2018 at 3:20 pm in reply to: [Resolved] Adding field to private message form? Howto do this? #15647
Hello Studioleland,
I have posted above code will work with bp-nouveau template. Please use the following section for bp-legacy templates.
add_action( 'messages_message_sent', function ( $message ) { if ( isset( $_POST['extra-field-1'] ) ) { bp_messages_update_meta( $message->id, '_extra_field_1', $_POST['extra-field-1'] ); } if ( isset( $_POST['extra-field-2'] ) ) { bp_messages_update_meta( $message->id, '_extra_field_2', $_POST['extra-field-2'] ); } } );Thanks
Ravi - Ravi on June 12, 2018 at 3:11 pm in reply to: [Resolved] Adding field to private message form? Howto do this? #15646
Hello studioleland,
Check the following code in your “bp-custom.php”. It will add two fields in compose message screen and save extra field value in message meta table. On single thread screen it will show the extra field info.
add_action( 'bp_after_messages_compose_content', function() { ?> <select name="extra-field-1"> <option value="opt_1">Option 1</option> <option value="opt_2">Option 2</option> </select> <input type="text" name="extra-field-2"> <?php } ); add_action( 'messages_message_sent', function ( $message ) { if ( ! isset( $_POST['meta'] ) ) { return; } if ( isset( $_POST['meta']['extra-field-1'] ) ) { bp_messages_update_meta( $message->id, '_extra_field_1', $_POST['meta']['extra-field-1'] ); } if ( isset( $_POST['meta']['extra-field-2'] ) ) { bp_messages_update_meta( $message->id, '_extra_field_2', $_POST['meta']['extra-field-2'] ); } } ); add_filter( 'bp_get_the_thread_message_content', function( $content ) { global $thread_template; $message_id = $thread_template->message->id; $append_content = 'Field-1: ' . bp_messages_get_meta( $message_id, '_extra_field_1', true ) . PHP_EOL; $append_content .= 'Field-2: ' . bp_messages_get_meta( $message_id, '_extra_field_2', true ); return $content . $append_content; } );Thank You
Ravi Hello Oscar,
Please put the following css code in you active theme stylesheet file i.e. “style.css”.
.lg-actions .lg-next, .lg-actions .lg-prev { color: #4ac3ff; // replcae with your color } .lg-actions .lg-next:hover, .lg-actions .lg-prev:hover { color: #8ff57a; // On hover color }Thank You
RaviHello Oscar,
Thank you for posting. Plugin has a widget to show top rated media with star and you can use the following plugin to show widget as shortcode. Please check
https://wordpress.org/plugins/wp-widgets-shortcode/
Thank You
RaviHello nopipe,
Thank you for posting. It can be easily doable. I have some questions
1. Are you looking for a way to hide members directory page?.
2. For which criteria you want to hide members. like for non-loggedin users or any special type of user.Please let me know.
Thank you
Ravi- Ravi on June 3, 2018 at 11:05 pm in reply to: [Resolved] BuddyPress Xprofile Custom Field Types Age #15467
Thank you for the acknowledgement.
Thank You
Ravi