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
JQuery issue WordPress theme + Simple Press
Avatar
MartiL
Member
Free Members
sp_UserOfflineSmall Offline
Jan 24, 2012 - 11:35 am

Hi all,

I have a new theme for my site; I've got everything working accept ... another JQuery issue 🙁

Here's a link to the theme: http://freetotry.me/cosmomagazine/ I can't link to the theme on my site, had to de-activate it because users can't post; the button's don't work anymore. Same with editing, postbag and such.

Does anybody know what to do to solve the JQuery issues? I've asked the Cosmo-people, but they don't know SP and couldn't help me).

Many thanks in advance!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 24, 2012 - 12:10 pm

Not having much luck eh?
So - what;s the problem exactly?
Interestingly I see some jQuery libraries being loaded on your site but not jQuery itself.
if you want me to look at what is going on with SP then it will need to be activated I am afraid,

andy-signature.png
YELLOW
SWORDFISH
Avatar
MartiL
Member
Free Members
sp_UserOfflineSmall Offline
Jan 24, 2012 - 4:18 pm

I was afraid you might say that wink

I'll activate the theme and forum, it'll be on http://vertrekkersinfo.nl in about an hour or so.

Thx!

Avatar
MartiL
Member
Free Members
sp_UserOfflineSmall Offline
Jan 24, 2012 - 4:32 pm

Oké. forum is online @ http://vertrekkersinfo.nl/forum/

I've created a testforum (first forum, http://vertrekkersinfo.nl/foru.....est-forum/) where you shoud have full access.

Thanks again for all your help, high time I head over to PayPal kiss

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 24, 2012 - 5:20 pm

Well let's see if we can get you up and working first.

I have never seen anything quite like this! Usually it is because jQuery is being abused and loaded incorrectly. This time I can't find it at al! And NONE of the forum scripts are being loaded either.

Try this first: Forum admin > Integration - turn off the option to load javascript in the footer.

If that doesn't do anything you need to check that your theme has the mandatory call to wp_head() in the header and wp_footer() in the footer. These are usually in the header.php and footer,php templates. Actually you should check these anyway.

lastly some code is being loaded that IS causing an error but you will need to find it I am afraid. It is this:

<script type="text/javascript">
    /* slider */
    $(document).ready(function() {
        $('.slideshow').cycle({
            fx: 'fade', /* choose your transition type, ex: fade, scrollUp, shuffle,scrollLeft, etc...*/
            next:   '#next_navigation',
            prev:   '#prev_navigation',
            timeout: 12000,
            pause:   1
        });
    });
</script>

This is just plain wrong. You see the two $ usages? These should both be replaced with the word jQuery for Wp to function properly. This is not working now (slider?) whatever it is because it is throwing an error and stopping.

I'll be closing down in about 5 minutes for the night but will be back in the morning,

andy-signature.png
YELLOW
SWORDFISH
Avatar
MartiL
Member
Free Members
sp_UserOfflineSmall Offline
Jan 25, 2012 - 7:00 am

Thank you!

The java-in-footer option was already turned off and the mandatory calls are in place. Off to find that code now!

BTW, I noticed, in header.php:

wp_deregister_script('jquery');  /*we don't want to load default jQuery from Wordpress*/

As I n00b I'm wondering if that should be there?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 25, 2012 - 7:06 am

No it should not. That is EXACTLY what you Do want - to load it from WordPress.
The problem is I couldn't see it being loaded anywhere else unless it has been bundled into an amalgam, of scripts by the theme author.
That might explain why the forum scripts are not being loaed as well as they are dependent upon jQuery.

why do these people do such awful things?!!!

andy-signature.png
YELLOW
SWORDFISH
Avatar
MartiL
Member
Free Members
sp_UserOfflineSmall Offline
Jan 25, 2012 - 7:27 am

I dunno frown

I shouldn't have bought their themes 🙁 They're "full of surprises" and the support is non-existent. If I could afford it I'd simply buy another theme, but for now this will have to do. On the bright side: I'm learning to look at code and actually understand some of it wink

Anyway, can I remove that line -has no business being there!- without creating all sorts of new problems? I'll email Cosmo about it, don't expect much of an answer but at least they'll know its causing their customers all sorts of headaches.

Avatar
MartiL
Member
Free Members
sp_UserOfflineSmall Offline
Jan 25, 2012 - 7:35 am

Well, I deleted "wp_deregister_script('jquery');  /*we don't want to load default jQuery from Wordpress*/" from header.php and the world didn't end laugh And at least posting works again, just no mod-tools. My members are pretty good so it's OK if that takes some time.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 25, 2012 - 11:37 am

So is that test site working like this now so I can go take another look?

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626