Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
New Topic and Login buttons not working :(
Avatar
Adam Bloch
Guest
Guests
Dec 2, 2011 - 7:51 am

Hi guys,

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 2, 2011 - 8:40 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Adam Bloch
Guest
Guests
Dec 2, 2011 - 1:53 pm

Hi YS, thanks for your reply!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 2, 2011 - 7:06 pm

yes was doubtful... so you need to correct the theme improperly loading jquery...

Avatar
Adam Bloch
Guest
Guests
Dec 2, 2011 - 7:57 pm

Sorry to sound like such a newb, but how would I go about doing that? 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 2, 2011 - 8:14 pm

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...

Avatar
lordgault
Spain
Member
Free Members
sp_UserOfflineSmall Offline
Dec 3, 2011 - 2:01 am

In my case the login button only works in the root of the forum

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 3, 2011 - 3:13 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
lordgault
Spain
Member
Free Members
sp_UserOfflineSmall Offline
Dec 3, 2011 - 6:22 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 3, 2011 - 6:37 am

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 }
andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625