Yes, I did see that on the Wiki and thought it might be outdated, but wasn’t sure.
Tried to use if(!sp_forum_api_support()) but it just made the forum not work at all, no errors but nothing displayed outside the header/footer of the WordPress theme.
I am using it within a custom function in functions.php. To make a long story short, the site itself uses functions from an old version of jQuery (I am working with the frontend developer to update those calls which are incompatible with newer versions), therefore necessitating a load of a specific jQuery version, like so.
if (!function_exists('my_scripts_method')) {
function my_scripts_method() {
if (!is_admin()) {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');
wp_enqueue_script( 'jquery' );
}
}
}
add_action('init', 'my_scripts_method');
The is_admin part works to fix the backend (this jQuery version is also incompatible with the backend portion of SimplePress) but I want to fix the frontend as well since certain portions of the forum are broken with this outdated version of jQuery.
I tried changing the if statement to
if (!is_admin() && !sp_is_forumpage()) {
But like I said it says the function doesn't exist at this point in WordPress. I have perhaps a problem that may be related to this, which is when an Admin is logged into the Forum the "Add Topic" or "Reply" buttons are broken. I'm attempting to troubleshoot this but it appears the js is obfuscated somewhat which is making it hard to determine the exact error. I can see the hidden divs there (in fact, make them visible manually and submit a post), just the button does not work - no errors. Moderators and regular users can use this button fine.
Thanks for your help.