WordPress.org

Ready to get started?Download WordPress

Forums

Simple Page Ordering
Update that works with 3.4.1 (8 posts)

  1. sbrownin
    Member
    Posted 2 years ago #

    Just curious.... Is there a timeframe to have an updated version that works with 3.4.1?

    http://wordpress.org/extend/plugins/simple-page-ordering/

  2. drskullster
    Member
    Posted 1 year ago #

    Hi,

    I managed to get it to work on WP 3.4.1.

    I noticed in bugzilla console that it was parseJSON() that got wrong characters and thus throwed an JS error. I had php notices in ajax response. So I did something ugly, but it works :

    in simple-page-ordering.js, on line 62, I put

    var results = [], re = /{([^}]+)}/g, text;
    
    while(text = re.exec(response)) {
        results.push(text[1]);
    }
    var changes = jQuery.parseJSON("{" + results[0] + "}");

    in place of

    var changes = jQuery.parseJSON("{" + response + "}");

    The code simply parses the response to get only what's inside curly brackets.

    Of course the best solution would be to get rid of the notices and warnings, but maybe the author could put some checks before using parseJSON ?

    Anyway, great plugin, I've been looking for something simple with seamless integration in WP. Thanks !

  3. Jake Goldman
    10up Engineer
    Plugin Author

    Posted 1 year ago #

    Been super busy, but hoping to make some time within the next week to look at that change and potentially update to 2.0!

  4. drskullster
    Member
    Posted 1 year ago #

    Hi,

    I forgot about this. Actually I realized I was getting php notices in ajax response because WP was in debug mode.

    So for users with standard configuration I guess the plugin should work out of the box :)

    Thanks again !

  5. dizmarkie
    Member
    Posted 1 year ago #

    hope there is a fix soon :) this is the best page/post type order plugin out there. Just doesn't work with the latest build of WP. (3.4)

    I can reorder stuff but the "order" fields do not update accordingly.

  6. dizmarkie
    Member
    Posted 1 year ago #

    Sorry, drskullster's fix does work. i tried and didn't have success and then realized i had an argument off in my query_posts in my template.

    this will do for now for sure but am super excited about a 2.0 version :)

  7. cmwelsh
    Member
    Posted 1 year ago #

    Is anyone getting this error in 1.4.2? Can you paste the error?

    I can't seem to make this glitch happen on my install of 1.0.

  8. cmwelsh
    Member
    Posted 1 year ago #

    Sorry, it's because I already fixed this issue a year ago in my fork on GitHub.

    https://github.com/cmwelsh/wordpress-simple-page-ordering

    Would someone like to merge in my changes? I added some isset() checks to fix this issue for now. I also added a patch to set the menu_order value when a new Page/Post is created.

    https://github.com/cmwelsh/wordpress-simple-page-ordering/compare/upstream...master

    Let me know if I can help anyone further. I love this plugin. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.