WordPress.org

Ready to get started?Download WordPress

Forums

my-link-order broken in 2.8.4 (37 posts)

  1. cpetersonorg
    Member
    Posted 4 years ago #

    I updated to fix the security hole in 2.8.3 and now mylinkorder doesn't work. Please someone patch it as this is a great and indispensable plugin :)

  2. froman118
    Member
    Posted 4 years ago #

    Visit the My Link Order page where you do the ordering, it needs to patch a file.

  3. aadimedia
    Member
    Posted 4 years ago #

    I am sing this plug in to organize menus on Connected Home- Easy Home Networking Guide. I upgraded to 2.8.3 for 2.7.1 the plug in was broken. Now I had to upgrade to 2.8.4 and it broken again. I love this plugin but its seems to be very sensitive to upgrades. Creator thanks for your great work. Please please fix the plugin or at least tell us how.

  4. aadimedia
    Member
    Posted 4 years ago #

    Oh well followed suggestion above by forman118. It did apply the patch automatically. Problem resolved. Thanks

  5. maorb
    Member
    Posted 4 years ago #

    I've also upgraded to 2.8.4 and re-patched the file, but this plugin seems not to be working anymore.
    Any ideas?

  6. alfafips
    Member
    Posted 4 years ago #

    Hi,

    maybe after updating your wordpress to > 2.8.3 you use "links" in your widget?
    now you have to use "my-link-order", it works correct now on all of my websites.

    Alfa

  7. cpetersonorg
    Member
    Posted 4 years ago #

    @froman118 - i am visiting the "my link order" page (where i do the ordering, i.e. which category to show first) and i don't see a patch page

  8. cpetersonorg
    Member
    Posted 4 years ago #

    it's working! thanks.

  9. edgypodcastreviews
    Member
    Posted 4 years ago #

    I believe I am having the same difficulty as others with 'My Link Order' not working correctly with 2.8.4. I am so dependent on this plug-in and it has been a work in progress to keep it working correctly during the many WordPress updates.

    1. Alpha. Can you rephrase (simplify) what you did to fix the issue to get 'My Links Order' to display again?
    2. Is there any other plug-ins that are similar to the functionality 'My Link Order' provides? The author of the plug-in wrote that WordPress 2.8.3 was the last version he is going to keep-up with the plug-in.
    "This will also be the last version of this plugin I will release. I am working on a new "2.0" version that will only support WP 2.8 and greater. This jump will finally include the ability to have multiple widgets."

  10. froman118
    Member
    Posted 4 years ago #

    Each time you upgrade WP you have to visit the My Link Order page where you do the ordering. In it's current form the plugin has to patch a core file to make everything play nice with the built in functions.

    The new version of the plugin I want to create will start fresh and not rely on these core files. I also want to switch to the new Widget API that is only supported by 2.8 and above. That will make life a lot easier for everyone.

    Until I have that new version released I'll make sure that the plugin isn't completely broken by a new version, but there will be a point when I'm going to cut off any fixes and those on 2.8 will want to migrate to the new plugin. I've published this plugin for almost 3 years and it really hasn't changed at all and is becoming a pain to maintain.

  11. rptrevor
    Member
    Posted 4 years ago #

    Hmmm... does my-link-order work in WordPress MU? I installed the plugin into my MU site (2.8.4a). I'm seeing the patch in wp-includes/taxononmy.php:

    else if ( 'order' == $_orderby )
    $orderby = 't.term_order';
    elseif ( empty($_orderby) || 'id' == $_orderby )
    $orderby = 't.term_id';

    The My Link Order page under Links seems to work. The My Link Order widget seems to work.

    But the My Link Order widget doesn't display anything in the sidebar...

  12. froman118
    Member
    Posted 4 years ago #

    rptrevor,

    I've never tested it in MU, but in the past I've heard that it has worked correctly. Maybe that changed at some point. Have you tried displaying it without the widget and sticking a call to wp_list_bookmarks in your theme?

    wp_list_bookmarks('orderby=order&category_orderby=order');

  13. rptrevor
    Member
    Posted 4 years ago #

    Thanks! I got it to work. It turned out that if I put anything in the "exclude categories" or "include categories" fields in the widget, nothing shows up. If I leave those fields blank, the links display as expected. I'm not clear on what those fields are supposed to be used for. But the plugin is working - so I'm happy!

  14. timpears
    Member
    Posted 4 years ago #

    It would be nice if there was some instructions on how to use this plug in. The best I can find is that I can drag and drop the links where I want them. But where do I go to drag and drop them is not told. There is no link in the plug in like most. So how I am supposed to drag them is beyond me.

  15. froman118
    Member
    Posted 4 years ago #

    It's under the Links menu.

  16. bugnut
    Member
    Posted 4 years ago #

    hi. i get to the "ordering page" and there is no patch or anything? what can i do?

  17. artnoir
    Member
    Posted 4 years ago #

    I also have a problem. I've used the "enhanced link" plugin, to put the links together by categories. Now, this doesn't work anymore, although it's installed and under widgets. Every link is now showing in a row, but not enhanced under the related category as it was before.

  18. froman118
    Member
    Posted 4 years ago #

    artnoir, My Category Order or My Category Order aren't going to be compatible with "Enhanced Links" as far as I can tell. The widget from the plugin would have to be modified to use the correct sort order.

  19. bugnut
    Member
    Posted 4 years ago #

    i installed My Link Order after installing WP 2.8.4 and i've tried everything to get this plug happening. i deactivated My Category Order and tried it. after "ordering" links i get a message saying links have been ordered but i go to my page and they are the same. is there another option or can i edit one of the php files??

  20. froman118
    Member
    Posted 4 years ago #

    bugnut, did you switch to the My Link Order widget or modify your theme to use wp_list_bookmarks('orderby=order&category_orderby=order'); or something similar.

  21. bugnut
    Member
    Posted 4 years ago #

    widget!!!! thanks froman!

  22. bugnut
    Member
    Posted 4 years ago #

    the only other thing is i have a left and a right sidebar and i would like to place the my links order widget near the top on one side and near the bottom on the other. at first glance it appears i can only use one instance...

  23. froman118
    Member
    Posted 4 years ago #

    Yup, that's on my list of things to do. Time is pretty scarce so it'll happen eventually.

  24. TreeSkier
    Member
    Posted 4 years ago #

    Hi froman,

    I will gladly buy you a beer (or several) if you can help me through
    this post-installation problem. I see these errors when I go to the "My Link Order" page from my toolbar.

    I'm familiar with MySQL and permissions... is user 'yscr_bb51Iz' a new user that you're trying to add for this widget?

    WordPress database error: [Access denied for user 'yscr_bb51Iz'@'localhost' to database 'blog']
    ALTER TABLE wp_terms ADD term_order INT( 4 ) NULL DEFAULT '0'

    WordPress database error: [Access denied for user 'yscr_bb51Iz'@'localhost' to database 'blog']
    ALTER TABLE wp_links ADD link_order INT( 4 ) NULL DEFAULT '0'

    WordPress database error: [Unknown column 't.term_order' in 'order clause']
    SELECT DISTINCT t.term_id, name FROM wp_term_taxonomy tt inner join wp_term_relationships tr on tt.term_taxonomy_id = tr.term_taxonomy_id inner join wp_terms t on t.term_id = tt.term_id where taxonomy = 'link_category' ORDER BY t.term_order ASC

    Thanks,
    - TS

  25. TreeSkier
    Member
    Posted 4 years ago #

    Hi Froman,

    I got into my db and executed those 'alter table' statements manually. That did the trick. Nice widget -- I'm off to send you some beer.

    - TS

  26. TreeSkier
    Member
    Posted 4 years ago #

    Actually, I haven't actually seen the link order change on the published site. They're still displaying in the order in which they were created. I tried forcing my main page to republish and that did not help.

    Browsing around in MySQL, this command:

    'SELECT link_name,link_order from wp_links order by link_order'

    will produce the correct names in the order as I specified with the widget. However, they're just not showing up in that order on the site.

    What's up?

  27. froman118
    Member
    Posted 4 years ago #

    Hi TreeSkier,

    That MySQL user is what your WordPress install is setup to use, if it doesn't have ALTER permission it can't add the needed columns (99.9% of the time it does).

    The last step to get things going is to either modify your theme (if you aren't using widgets) with wp_list_bookmarks('orderby=order&category_orderby=order'); or swap the built in Link widget with the replacement My Link Order widget.

  28. TreeSkier
    Member
    Posted 4 years ago #

    Hi Froman,

    Very cool.... I got the widget running and everything's working great.

    Have a few beers on me,
    - TS

  29. bankrollsports
    Member
    Posted 4 years ago #

    Froman,

    Can you help me? I added the patch to the taxonomy.php file. This seemed to take care of the error on the "link ordering page". However, the links still are not showing up on my blog.

    I have the "My Link Order" widget placed in my sidebar.

    Right now, the only way I can get my links to show up on my blog is to use the regular "Links" widget in my sidebar, but obviously my link ordering doesn't work.

    Can you provide some assistance?

    Lou

  30. bankrollsports
    Member
    Posted 4 years ago #

    Ok...I fixed it. Here is what fixed it for me...

    On this page; http://www.hyperarts.com/blog/wordpress-blogroll-ordering-my-link-order-patch-2-8/

    It says the following;

    At line 683, after this code:

    elseif ( empty($_orderby) || ‘id’ == $_orderby )
    $orderby = ‘t.term_id’;

    you paste the following code:

    else if ( ‘order’ == $orderby )
    $orderby = ‘t.term_order’;

    It's actually the other way around.

    The Code:

    else if ( ‘order’ == $orderby )
    $orderby = ‘t.term_order’;

    should be above this code;

    elseif ( empty($_orderby) || 'id' == $_orderby )
    $orderby = 't.term_id';

    My taxonomy.php (with MyLinkOrder plugin working) looks like this (starting at line 683);

    else if ( 'order' == $_orderby )
    		$orderby = 't.term_order';
    	elseif ( empty($_orderby) || 'id' == $_orderby )
    		$orderby = 't.term_id';

    It's finally working after a few hours of frustration...

Topic Closed

This topic has been closed to new replies.

About this Topic