normen
Forum Replies Created
-
So the fishbook theme is missing that hook, use the theme edit workaround or find a proper hook in the theme.
For all who dont want to wait, extending this plugin to buddypress forum posts is as easy as adding the following line to syntaxhighlighter.php:
add_filter( 'bp_get_the_topic_post_content', array(&$this, 'parse_shortcodes'), 7 );I suggest adding it after
// Register generic hooks.Cheers,
NormenForum: Plugins
In reply to: W3 Total Cache – Object Cache – Buddypress Forum ProblemHaving the same problem here, but not only with w3c cache but also with other object caches (e.g. from here: http://codex.buddypress.org/getting-started/improving-performance/ ). Guess its a buddypress problem?
Cheers,
NormenForum: Fixing WordPress
In reply to: wp_check_password override fatal errorOk, I am sorry, I solved it myself. I was deluded by the fact that the functions seem “overridable” but they are in fact not (anymore?)
Proper way to do this in WP is like this (for those running into the same issue):
add_filter('check_password', 'my_check_password', 9, 4 );
function my_check_password($check, $password, $hash, $user_id = '') {
if($check) return true;
// SMF forum compatible check
$user_info = get_userdata($user_id);
$check = ( $hash == sha1( strtolower( $user_info->user_login ) . $password) );
if ( $check && $user_id ) {
// Rehash using new hash.
wp_set_password($password, $user_id);
$hash = wp_hash_password($password);
return true;
}
return false;
}