Hi guys,
Support Forum
My only surprise is the notion that previous versions of SP worked.
Your jQuery is being killed off by a script in your theme (magazinum/js/script.js) and after that nothing works that requires jQuery.
This is the sad old tale of a theme (or maybe plugins) NOT using the WP API and the WP supplied jQuery and jQuery UI components which so often causes all kinds of problems to SP and to many other plugins that rely on these libraries.
jQuery itself is loaded from ‘code.jquery.com’ and the UI from ‘ajax.googleapis.com’ – neither of which are guaranteed to be the versions needed by any specific version of WP nor is the base jQuery going to be compiled in the ‘no conflict’ mode required by WP.
This is often done in the mistaken belief that they will load faster which is questionable at best.
You could try forcing SP to load it’s javascript in the header (Forum admin > Wp integration) and at least if the theme code is written properly this may then force the WP versions to be used.
you will have to find where you theme (it could be a plugin) is loading the external jquery library…
lets figure out theme or plugin first…
lordgault: I have a probable fix for this. This will either be in the next update or if you want to made a small code edit I can give you the code to try.
Yellow Swordfish said
lordgault: I have a probable fix for this. This will either be in the next update or if you want to made a small code edit I can give you the code to try.
Good for you! And we, of course, would also be grateful to know if this resolved that particular problem.
Right – the file you need is /sp-startup/forum/sp-forum-framework.php
About three quarters of the way down, around line 217 of the file there is this block of code:
# check if this is a redirect from a failed save
if ($sfvars['pageview'] == 'topic' || $sfvars['pageview'] == 'forum') { ?>
if(jspf('#spPostNotifications').html() != '') {
jspf('#spPostNotifications').show();
spjOpenEditor('spPostForm', 'post');
}
<?php }
Change that for this block:
# check if this is a redirect from a failed save
if ($sfvars['pageview'] == 'topic' || $sfvars['pageview'] == 'forum') { ?>
if(jspf('#spPostNotifications').html() != null) {
if(jspf('#spPostNotifications').html() != '') {
jspf('#spPostNotifications').show();
spjOpenEditor('spPostForm', 'post');
}
}
<?php }
Yellow Swordfish said
Good for you! And we, of course, would also be grateful to know if this resolved that particular problem.
Right – the file you need is /sp-startup/forum/sp-forum-framework.php
About three quarters of the way down, around line 217 of the file there is this block of code:
# check if this is a redirect from a failed save
if ($sfvars['pageview'] == 'topic' || $sfvars['pageview'] == 'forum') { ?>
Excellent. Thanks for the update.
That fix will, of course, be in the next update.
I'm also having the (same?) problem as OP. In my case, I've already determined that my theme is not at fault (Mystique 3.1). I switched to Twenty Eleven and Twenty Ten and neither let me use the New Post button or the New Topic button.
When I click on "New Topic" from within a thread, it leads me back up level (though the address still shows: "?new=topic" at the end. When I click on "New Post", it just doesn't do anything. I see in Firefox's Add-on Bar (the one at the bottom that displays a link's or button's target link) that it shows "javascript:void(null)".
I'm going through my WP plugins now to see if any of them are affecting SP5.
I went and individually disabled each plugin, refreshed my forum topic page, and clicked on each button. I even went and deactivated and reactivated Simple Press to no avail. It seems none of my WP plugins or theme is causing this problem. I'm going to try and deactivate the SP plugins to see if any of them are affecting these buttons.
Edit:
The SP Plugins don't seem to be affecting either of those buttons either.
Edit #2:
I found a fix that works for me. I set "Load javascript in footer" to green (on) in Admin > Forums > WP Integration. Now the two buttons, "New Topic" and "New Post" work for me.
There is fix for this here: https://simple-press.com/support-forum/sp5-general-topics/new-topic-and-login-buttons-not-working/page-2/
Or it will be in the next update.
This should only effect read-only mode