Support » Plugin: WP Social Blogroll » [Plugin: WP Social Blogroll] Show nothing until sorting is done

  • 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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Erunafailaro

    (@erunafailaro)

    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.

    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

    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

    Plugin Author Erunafailaro

    (@erunafailaro)

    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.

    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.

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: WP Social Blogroll] Show nothing until sorting is done’ is closed to new replies.