WordPress.org

Ready to get started?Download WordPress

Forums

WP Social Blogroll
Show nothing until sorting is done (7 posts)

  1. fredde_nu
    Member
    Posted 3 years ago #

    Hi!

    thanks for a nice plugin.

    Maybe you have a feature for this but I wonder if it is possible to have the style="display:none;" on the widget while sorting and when sorting are done switch to display:block or inline or whatever shows the div.

    I was on my way to modify the javascript-file but I guess it is generated every now and then.

    Any ideas about this?

    Thanks!

    /Fredde

    http://wordpress.org/extend/plugins/feed-reading-blogroll/

  2. Erunafailaro
    Member
    Plugin Author

    Posted 3 years ago #

    I have tried to implement this kind of feature some time ago, but could not get it to work on every browser. It did not work on MSIE ...

    I could try again, but it will take some time. A week maybe.

    The javascript-file is regenerated every time a new link is added to your blogroll or if an existing link is modified.

  3. fredde_nu
    Member
    Posted 3 years ago #

    perhaps two js-files one that are rendered on update and one static with preSort() and postSort() functions that are called before and after sort.

    That would be just great!

    Thanks!

    /Fredde

  4. fredde_nu
    Member
    Posted 3 years ago #

    I made the modification to the plugin by myself hope that is okay! Put up a little howto here:
    http://blog.fredde.se/?p=4907

    You can see the english text a bit down on the post.

    Thanks!

    /Fredde

  5. Erunafailaro
    Member
    Plugin Author

    Posted 3 years ago #

    Thank you!

    I'll have a look at it and maybe add some of your code to the next version.

    Of course I would mention you as a contributor in that case.

  6. Rogdor
    Member
    Posted 3 years ago #

    I'd think a better way to handle this is to use CSS classes rather than swapping "display: none;" and "display: block" directly on elements.

    So for instance, if you have a class .feedreading_hideit which contains "display: none;" and the inverse in .feedreading_showit ("display: block;"). I realize it accomplishes the same thing, but it's flexible via jQuery with addClass/removeClass like so:

    Give #feedreading_blogroll_ the .feedreading_hideit by default, then at the end of feedreading_limit_display() place the following:

    $('.feedreading_bookmark').removeClass('feedreading_hideit').addClass('feedreading_showit');

    Relatively simple solution. Extending this technique further, for myself I added a -more- button (since I'm displaying only 6 bookmarks) as well.

  7. fredde_nu
    Member
    Posted 3 years ago #

    Im using script.aculo.us for the fade in effect and it needs a display:none on the element to work otherwise it is nicer to change class. :)

    /Fredde

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic