Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: I can'y crop my avatar!

@4ella

Participant

@mercime is right this is a javascript issue, cropping function conflicts with some code or plugin, happily I have discovered yesterday the same issue immediately after installing ajax message box in single.php from this site http://flintmaker.com/code/jquery-fade-message-in-or-out/ which I wanted to use to greet people with ajax message conditionally by knowing where are they from (using maxmind geoip which already works) and if they come from search engines, after removing that
line
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
from header.php cropping function start to work again, on wordpress.stackexchange.com are many answers (one of them cropping related and most of them speaks about this solution in code below in functions.php or bp_custom.php what are solutions which doesn’t work for me too 🙁

// Javascript conflict
function mytheme_enqueue_scripts() {
       wp_deregister_script('jquery');
       wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"), false, '1.4.2');
       wp_enqueue_script('jquery');
}
add_action('wp_enqueue_scripts', 'mytheme_enqueue_scripts');

Hopefully @mercime should help me how to avoid this js conflict, I am unfortunately not able to use ajax-admin.php instead jquery as most people there advice to use.
WP 3.6 and BP 1.8 beta2 and I use bp default theme

Skip to toolbar