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
Unable to post in topic body!
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 10:35 pm

so this only happens with Mingle active??  because something, must be mingle then, is doing things wrong...  its loading jquery ui from another location:

<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js?ver=3.3.2'></script>

and its an older version...  and thus conflicting with the version that WP loads...  read more:  http://codex.simple-press.com/.....-conflict/

the wp devs and community is really trying to get this themes and plugins to quit loading js wrong like that...  they really should just use the version that comes with WP...

so, next step would be to edit that mingle plugin and find where its incorrectly loading that old version of jquery ui...

then we can help you put the proper code in place in the plugin... ie

<?php wp_enqueue_script('jquery-ui-core'); ?>
 <?php wp_enqueue_script('jquery-ui-widget'); ?>
Avatar
a_creative_life
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 10:47 pm

Thanks Mr Papa. So is this a matter of opening up the jquery files inside the Mingle plugin folder and editing them..?

 

I see these files:

jquery.elastic.js
jquery.qtip-1.0.0-rc3.min.js
jquery.ui.core.js
jquery.ui.datepicker.js
mingle.js.php
ui.core.js
ui.datepicker.js:

 

Do I need to edit code inside each of them??

Thanks!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 10:59 pm

no...  you need to find the one file that outputs the code I put in post above...  assuming it mingle of course... wink

Avatar
a_creative_life
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 11:13 pm

Can you paste in what "the code" is?

 

Is it this:

<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js?ver=3.3.2'></script>

??

 

OR


1 <?php wp_enqueue_script('jquery-ui-core'); ?>
2  <?php wp_enqueue_script('jquery-ui-widget'); ?>

 

??

 

And can you explain what you mean by "the file that outputs the code"?

 

Thank you!

Avatar
a_creative_life
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 11:22 pm

In searching through the files inside the Mingle plugin folder, so far I've found this file:

/problem-with-post-edit-buttonome7/melissw6/public_html/creativeignitionclub/wp-content/plugins/mingle/classes/controllers/MnglAppController.php

Which contains this code:

 function enqueue_mngl_scripts()

  {

    global $mngl_blogurl;

    $mngl_js = $mngl_blogurl . '/index.php?mingle_js=mingle';

    if(MnglUtils::is_version_at_least( '3.0-beta2' ))

      wp_enqueue_style( 'jquery-ui-all', 'http://ajax.googleapis.com/aja.....ery-ui.css' );

    else

      wp_enqueue_style( 'jquery-ui-all', MNGL_CSS_URL . '/jquery/ui.all.css' );

        

    wp_enqueue_style( 'mingle',  MNGL_CSS_URL . '/mingle.css' );

    wp_enqueue_script( 'jquery-elastic', MNGL_JS_URL . '/jquery.elastic.js', array('jquery') );

    wp_enqueue_script( 'jquery-qtip', MNGL_JS_URL . '/jquery.qtip-1.0.0-rc3.min.js', array('jquery') );

    

    if(MnglUtils::is_version_at_least( '3.0-beta2' ))

    {

      wp_enqueue_script( 'jquery-ui', 'http://ajax.googleapis.com/aja.....-ui.min.js', array('jquery') );

      wp_enqueue_script( 'mingle', $mngl_js, array('jquery','jquery-elastic','jquery-qtip','jquery-ui') );

    }

    else

    { // load older javascript libraries

      wp_enqueue_script( 'jquery-new-ui-core',    MNGL_JS_URL . '/ui.core.js', array('jquery') );

      wp_enqueue_script( 'jquery-ui-datepicker', MNGL_JS_URL . '/ui.datepicker.js', array('jquery','jquery-new-ui-core') );

      wp_enqueue_script( 'mingle', $mngl_js, array('jquery','jquery-elastic','jquery-qtip','jquery-new-ui-core','jquery-ui-datepicker') );

    }

 

---------

Does that help? I'm not sure what to do with this, if it does. rolleys

Thanks!

Avatar
a_creative_life
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 11:39 pm

I have to get this site ready to launch, so I'm deactivating Mingle. HOWEVER, I have an old version of the site on a temporary domain, where Mingle is still active:

http://club.melissadinwiddie.com

Temporary login credentials are the same:

user: test

pw: t3st

 

I'd still really love to get Mingle to play nice with S:P, so I'll wait for your reply to my post above.

Thanks for all your help -- I really appreciate it!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 23, 2012 - 12:56 am

yes... try changing:

      wp_enqueue_script( 'jquery-ui', 'http://ajax.googleapis.com/aja…..-ui.min.js', array('jquery') );

to

wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-widget');
Avatar
a_creative_life
Member
Free Members
sp_UserOfflineSmall Offline
May 23, 2012 - 1:06 am

Thank you!

Question: there are two places that 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css' shows up (see my copy & paste in post 15 above).

Do I just replace the second one? And do I replace it with BOTH lines of code in your reply (post 17 above)?

Thanks!

Avatar
a_creative_life
Member
Free Members
sp_UserOfflineSmall Offline
May 23, 2012 - 1:12 am

OH! MY! GOD! I just did exactly that, replaced:

 

wp_enqueue_script( 'jquery-ui', 'http://ajax.googleapis.com/aja…..-ui.min.js', array('jquery') );

 

with:

wp_enqueue_script('jquery-ui-core');

wp_enqueue_script('jquery-ui-widget');

 

And it's WORKING!!!!!!!!!

 

You, sir, are a MIRACLE WORKER!!!!

 

Blessings and thanks a MILLION!!!!

🙂

 

So far I've only done it on my test site. Will try it on my real site...

 

THANK YOUUUU!!!

 
2  
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 23, 2012 - 1:12 am

hey, you are keeping me up! can I go to bed yet? lol, jk kiss

please reread my post...  its not a .css file...  but a jquery ui min... its in this section

    if(MnglUtils::is_version_at_least( '3.0-beta2' ))
    {
      wp_enqueue_script( 'jquery-ui', 'http://ajax.googleapis.com/aja…..-ui.min.js', array('jquery') );
      wp_enqueue_script( 'mingle', $mngl_js, array('jquery','jquery-elastic','jquery-qtip','jquery-ui') );
    }
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