PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

s2Member conflict with some javascript theme

s2Member Plugin. A Membership plugin for WordPress®.

s2Member conflict with some javascript theme

Postby stefanogaruti » August 6th, 2010, 2:10 am

Hi Jason!
I'm seting up a little membership using your great plugin(plugin? no, it's really more than that!!!!) and a theme that use some javascript to show an imsges slideshow.

Unfortunaltely when I activate s2Memeber the slideshow stops working. I'm sure that the conflict is between the theme and s2Member because I deactivated all the plugin and the carousel works, than activate only s2Memeber and it stops.

I'm pretty sure that there is a conflict between the theme js and that little javascript that s2Memeber outputs:
Code: Select all
<script type='text/javascript' src='http://localhost/wpdaZero/?ws_plugin__s2member_js_w_globals=1&#038;qcABC=1&#038;b5aeb75e83ca9e20f956c89f4a375366&#038;ver=1.0051280136190'>


Unfortunately even if I'm quite expert and proficient in php and WordPress, I'm pretty illiterate in Javascript so I'm unable to address this problem.

The live site is: http://www.wpdazero.it: you can check the html source there to see what js is loaded by the theme.

Thanks for your great help!
Stefano

p.s.
just for information, as the live site is only in italian, it's a "cooming soon" membership with videos to learn "WordPress from scratch"
User avatar
stefanogaruti
Experienced User
Experienced User
 
Posts: 11
Joined: July 26, 2010

Re: s2Member conflict with some javascript theme

Postby stefanogaruti » August 6th, 2010, 2:41 am

UPDATE:
I resolved the problem by moving up the
Code: Select all
<?php wp_head(); ?>

call in the theme header (that is the function that outputs the s2Memeber javascript).
Now the s2Member's JS is BEFORE the other js by the theme and the slideshow is running fine...

...now I need to be shure that s2Memeber works properly...
User avatar
stefanogaruti
Experienced User
Experienced User
 
Posts: 11
Joined: July 26, 2010

[RESOLVED] s2Member conflict with some javascript theme

Postby stefanogaruti » August 6th, 2010, 3:09 am

I can confirm that the problem was in the theme:
it included it's own JS files BEFORE the running of wp_head() function that outputs all the other JS included in the "right" and "standard" way by WP and others plugin.

Moving all the theme's JS AFTER wp_head() solved the problem.

Some reference to this issue is here: http://codex.wordpress.org/Using_Javascript
User avatar
stefanogaruti
Experienced User
Experienced User
 
Posts: 11
Joined: July 26, 2010

Re: s2Member conflict with some javascript theme

Postby Jason Caldwell » August 17th, 2010, 1:31 pm

Thank you VERY much for reporting back on this topic.
~ Much appreciated.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 12 guests

cron