The MU forums have moved to WordPress.org

How to: build your own widget (12 posts)

  1. andrea_r
    Moderator
    Posted 15 years ago #

    I've written a post on how to make a VERY basic widget, and also provided the blank framework for one.

    If you've ever just wanted to be able to paste code in a widget and have it show up, here ya go. Or even turn a plugin function call into a widget, that too.

    http://wpmututorials.com/plugins/build-your-own-widget/

  2. Trent
    Member
    Posted 15 years ago #

    Nice article andrea! Thanks for sharing!

  3. easysleeper
    Member
    Posted 15 years ago #

    This works great! thank you very much. Can someone elaborate a bit on how to add an option to this? to receive user input when adding and get that data to the widget.

    Thanks

  4. andrea_r
    Moderator
    Posted 15 years ago #

    If you look at the next widget I released, it takes input from the user.

    http://wpmututorials.com/plugins/so-easy-my-mom-can-use-it-the-image-badge-widget/

    Study that, and you should be able to figure it out.

  5. gpo1
    Member
    Posted 15 years ago #

    Can you do a framework for buddypress?

  6. ebiladdress
    Member
    Posted 14 years ago #

    link appears dead.

    interesting topic, anyone have follow up?

  7. wpmuguru
    Member
    Posted 14 years ago #

    Both of the links above work fine. I just tested them.

  8. leisegang
    Member
    Posted 14 years ago #

    is it possible to have a global widget that is NOT removable? without hardcoding all the templates?

  9. andrea_r
    Moderator
    Posted 14 years ago #

    possible? Yes.

  10. ebiladdress
    Member
    Posted 14 years ago #

    I mis-spoke before, the link wasn't directly from this post but in the first tutorial posted.

    When I go to http://wpmututorials.com/plugins/build-your-own-widget/
    and click the link for http://wpmututorials.com/files/2009/01/build-a-widget.txt it gives 404.

  11. andrea_r
    Moderator
    Posted 14 years ago #

    Thanks, duly noted.

    Also, I need to update that post as it's even easier to make widgets now.

  12. ebiladdress
    Member
    Posted 14 years ago #

    Love your work Andrea :) I follow you from forum to forum sometimes without looking for you at all lol

    I'm trying to follow in the footsteps of those such as yourself!

    Eric

About this Topic

  • Started 15 years ago by andrea_r
  • Latest reply from ebiladdress