Forum Replies Created
-
And it is possible to decode the register url? that the user can see the page?
where can i find the settings for mail?
hello megainfo,
thanks for your answer i try it that way.
greetz
CarstenHello iwazaru,
you have to past the code in the: bp-messages-cssjs.php
try this code:
<?php
function messages_add_autocomplete_js() {
global $bp;// Include the autocomplete JS for composing a message.
if ( $bp->current_component == $bp->messages->slug && ‘compose’ == $bp->current_action ) {
add_action( ‘wp_head’, ‘messages_autocomplete_init_jsblock’ );wp_enqueue_script( ‘bp-jquery-autocomplete’, BP_PLUGIN_URL . ‘/bp-messages/js/autocomplete/jquery.autocomplete.js’, array( ‘jquery’ ) );
wp_enqueue_script( ‘bp-jquery-autocomplete-fb’, BP_PLUGIN_URL . ‘/bp-messages/js/autocomplete/jquery.autocompletefb.js’ );
wp_enqueue_script( ‘bp-jquery-bgiframe’, BP_PLUGIN_URL . ‘/bp-messages/js/autocomplete/jquery.bgiframe.min.js’ );
wp_enqueue_script( ‘bp-jquery-dimensions’, BP_PLUGIN_URL . ‘/bp-messages/js/autocomplete/jquery.dimensions.js’ );
}}
add_action( ‘wp’, ‘messages_add_autocomplete_js’, 2 );function messages_add_autocomplete_css() {
global $bp;if ( $bp->current_component == $bp->messages->slug && ‘compose’ == $bp->current_action ) {
wp_enqueue_style( ‘bp-messages-autocomplete’, BP_PLUGIN_URL . ‘/bp-messages/css/autocomplete/jquery.autocompletefb.css’ );
wp_print_styles();
}
}
add_action( ‘wp_head’, ‘messages_add_autocomplete_css’ );function messages_autocomplete_init_jsblock() {
global $bp;
?>jQuery(document).ready(function() {
var acfb =
jQuery(“ul.first”).autoCompletefb({urlLookup:’root_domain . ‘/wp-load.php’ ?>’});jQuery(‘#send_message_form’).submit( function() {
var users = document.getElementById(‘send-to-usernames’).className;
document.getElementById(‘send-to-usernames’).value = String(users);
});
});<?php
}i you have installed buddypress via a subdomain.
Carsten
i have the same problem…