Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • I realized that my site was having the same problem, and stumbled on this post. Did anyone ever find a way to make the two plugins work?

    I did find something of a work-around(with some results) by adding a custom field to each page where I had inserted a table. I could then copy all the text from my table and drop it in the field on each page. By including it in the Indexing Options, the search results started picking up these pages.

    What was surprising is that in the excerpt, it shows all the data straight from the table (as a long messy paragraph with no line breaks, of course), including text that I had removed when pasting it to the custom field. So, for example, in the excerpt, you see:

    ImageItem/DescriptionMSRPEducation Price Drop-In Ceiling Projector MountPerfect projector mounting for suspended ceilingsAVM-PRO-DCP-UNV202-SVSilverAVM-PRO-DCP-UNV202-BKBlack$160.00$160.00$99.00$99.00

    I don’t know if this helps at all for coming up with a solution of sorts, but I thought I’d post what I found.

    Thread Starter heather.m

    (@heatherm-1)

    Update: I later discovered that while installing wp on the new server, it was somehow set in debug mode. Once that was fixed, I no longer received these and similar messages. I have since removed my modifications to the code and full functionality returned.

    Thread Starter heather.m

    (@heatherm-1)

    Never mind. I discovered that debug mode got turned on somehow. Turning it back off hides the error messages.

    Thread Starter heather.m

    (@heatherm-1)

    Thanks! I didn’t realize that while installing wp on the new server, debug mode somehow got turned on. After turning that off, a lot of problems were cleared up.

    Thanks Dudesl! Your research and explaination was exactly what I needed. ??

    Thread Starter heather.m

    (@heatherm-1)

    Alas! I figured it out! In case anyone else has this problem (which seems unlikely), I’m posting the solution.

    Turns out that the problem was how I had enqueued my scripts. Being a newbie, I didn’t set up my functions file properly. I discovered this when working through some other issues later. After finally getting that sorted out yesterday, today I remembered the problems I had with the js libraries for this plugin. I just tested them out and all is well now. Yay!

    Here’s the magical code:

    <?php
    function my_mootools() {
        if (is_page('home')) {
            wp_register_script('mootools', '/wp-content/themes/my-theme-name/js/mootools-1.2-core.js', false, '1.2.0');
            wp_enqueue_script('mootools');
            wp_deregister_script('jquery');
            wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js', array('mootools'));
        }
    }
    add_action('wp_print_scripts', 'my_mootools');
    ?>
    <?php
    function my_jquery_not_home() {
        if (!is_page('home')) {
            wp_deregister_script('jquery');
            wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js');
        }
    }
    add_action('wp_print_scripts', 'my_jquery_not_home');
    ?>

    I was only using the mootools for a something specific on the home page (probly a frivolous use of a separate library, i know. but i really couldn’t get what i needed from any jquery plugins). At any rate, there are now 2 php functions above, the first is to enqueue both the mootools and jquery on the home page only. The key to making the js libraries for this plugin work lies in that first function. By setting the array on jquery to ‘mootools’, mootools now loads first. Fancy that! It’s in the codex, but somehow, I never paid it attention. Now everything is great!

    Sidepoint: In case you were wondering, the 2nd function is to set jquery for every other page besides home. I had tried making the jquery line separate from the ‘my-mootools’ function, with the array to load mootools 1st. Unfortunately, the array also means jquery will not load at all unless mootools loads. Since I was only loading it on the home page, the rest of the site was losing jquery. By setting 2 functions, 1 for home and 1 for not home, I get to separate mootools from the rest of the site w/o losing jquery (so every page of my site no longer has to load a heavy js library that isn’t being used, speeding things up a bit).

    Hope this helps someone save a lot of time one day ??

    Thread Starter heather.m

    (@heatherm-1)

    awesome! pasting it in worked perfect! figures i would be trying to do this the more complicated way ??

    thanks so much for the help!

    Thread Starter heather.m

    (@heatherm-1)

    oh, the code for the character is & #10003;
    (in case that helps). thanks for any help!

    Thread Starter heather.m

    (@heatherm-1)

    Alright, no problem. Figured it wouldn’t hurt to check! lol :). Thanks Tobias.

    -Heather

    Thread Starter heather.m

    (@heatherm-1)

    In case anyone else is interested…
    On closer inspection I found where the problem comes in, but have no clue how to fix it. The js libraries are set in no conflict mode already, so no worries on that front. When the libraries are activated, the plugin is somehow loading jquery before mootools. I don’t really have experience in all this, it’s been learn as I go (yikes!), but I’ve found that my mootools usage breaks unless mootools is loaded first, then jquery. After messing around with it for a while and doing a lot of research, I’ve got nothing. So I’ll just use the tables w/o the libraries. But I figured I’d post what I found here in case someone else ever needs it – as a jump start of sorts ??
    – Heather

    Thread Starter heather.m

    (@heatherm-1)

    Thanks for the quick response! I did try all 3, but had the same problem. I’ll probably take your advice and ask the DataTables author. When I was looking through the forums yesterday, I found old posts regarding earlier versions where people were having similar issues, and he said that he often forgets to set his code in no-conflict mode. Maybe that’s the problem. If I figure it out I’ll post it here in case someone else runs into the same problems. Thanks again for all your help!

    same prob. unable to create new event on wp 3.0

Viewing 12 replies - 1 through 12 (of 12 total)