Ekto gammit

About Me widget for WordPress

Since I don’t consider my blog anonymous or ‘seekrit’ I grabbed a text widget and started adding an “About Me’ to my sidebar. After trying to get things aligned, formatted, and adding a few links I started thinking a widget might be nice for this. I had not seen anything like this around, so here it is, my first widget.

“*Fixed in 0.96: Align didn’t work in some themes.”

Here are some installation instructions:

  1. Click the download link below to get the latest version
  2. Drop the AboutMe folder into your wp-content/plugins folder
  3. Go to your Administration:Plugins page and activate the About Me Widget

To configure:

  1. Go to Presentation:Widgets
  2. Move (drag and drop) the widget to where you would like it in your active sidebar
  3. Click on the config button for the About Me widget (little notepad icon thingy on the right)
  4. Enter the title you want visitors to see on the sidebar
  5. Click in the editor window and start designing your own widget!!!

Put together a generic ‘about me’ design:

  1. Select the image icon above the editor (looks like a tree)
  2. Enter the URL (path) to the image (relative is fine, e.g.; /wp-content/uploads/portrait.jpg)
  3. Enter Image Description, Title
  4. Select the appearance tab and use the pull-down menu to apply an alignment class
  5. Click the Update button
  6. Back in the editor now, type some text (a blurb about yourself or your site)
  7. Hi-lite the text and use the pull-down styles menu to apply alignment class/style
  8. Add some links, if you wish, then repeat #7 to the link/anchor text
  9. Close the config window when you’re finished and hit the Save Changes button

This widget is working in current versions of WordPress (2.8+). Please note link to the WP Plugin Directory below…

Here is a current working version: About Me Widget Thanks to John BouAntoun!

*Fixed in v0.91: Cannot select left or right alignment. *Added: Configurable titles for image and links. Thanks Steen.
*Fixed in v0.92: Image ‘alt’ and ‘title’ attributes working now.
*Changed in v0.93: “blurb” respects newlines. Thanks Andy Skelton.
*Fixed in 0.94: Overlapping text issue with default admin theme. Thanks Aaron Brazell. *Added: Configurable font color.
*Added in 0.95: Function getimagesize() added to maintain xhtml validity and page speed.
*Fixed in 0.96: Align didn’t work in some themes. Thanks JR Rozko.
*Fixed in 0.97: Took out the clear that was breaking some themes/sidebars.
*Fixed in 0.98: A solution for people on Dreamhost (and others with hosts using safe_mode/curl). This solution does not use a curl wrapper, but falls back to a relative path. It will require the user to place the image in /wp-content/uploads/. Thanks to Martin Cleaver who generously gave me a temp site at Dreamhost for testing!
*Re-design for 1.0beta: Uses WordPress’ built-in TinyMCE editor for layout/design, produces valid XHTML 1.0 Strict (though this can be broken ;’), designed and tested in WordPress 2.2.1.
*Fixed in 1.01: Bad path to the Image plugin (gave a 404-Not Found), dialed in lineheight – 09/02/07
*Fixed in 1.02: If auto-installed from wordpress.org, TinyMCE would have no buttons (plugin directory name no longer hard-coded). Thanks to guybrush – 09/14/07
-1.03: Sync’ing with http://wordpress.org/extend/plugins/about-me-widget/
-1.04: ditto above

Previous non-TinyMCE version (stable): About Me Widget v0.98

As of 11/16/07 there have been over 14,300 downloads of the About Me Widget. wow.

Feedback appreciated!

Tagged with: , , ,
Posted in Computers, Things, widgets, WordPress
158 comments on “About Me widget for WordPress
  1. Steen says:

    Hi, nice widget! However, a few bugs:
    * The text-algnment automatically changes to ‘center’ no matter what I type
    * The image has a fixed title ‘Sam portrait’
    * Perhaps ‘Work background’ isn’t the best choice for all people, perhaps simply ‘More’ would be better

    I know I can hack the aboutme.php, but I’d just let you know.
    Anyway, I like the widget, and had in fact been searching for one the last few days. Great timing 🙂

  2. Sam says:

    Steen: Thanks! I took a look at the text-alignment, found the bug and realized it was hiding another ;') 2 bugs for one! ok, taking my pill now…. The 'fixed' or hard-coded titles issues is a great point, I need to Add that to the config section so the user can name them. This is something I will address in the morning (and a lot easier then sniffing out image dimensions ;') EDIT: Fixed text-alignment issue and added image and link title configuration in v0.9.

  3. Andy Skelton says:

    Hi Sam,
    This widget looks like a good idea to me! There is something out of balance in the interface though. Most of the widget audience might not know enough HTML to do a <br /> after every line. I’d suggest converting line breaks. You can use the wpautop function or roll your own.
    Cheers!

  4. Lautreamont says:

     In Response to: "[…] It’s important that you identify yourself to your visitors. The About Me widget from Sam Devol helps you to identify yourself in style. No HTML knowledge required! […]":  Nice plugin. Yet I don't feel there's a need to identify. It depends on the blog philosophy. IMHO

  5. Appears to be broken in Firefox 1.5. Text is overlapping the fields making it impossible to know what to type and where.

  6. Sam says:

    Aaron: It’s not Firefox, it’s ME (actually it was my ‘style’)!

    Anyway, fixed in .94 ;’) Thanks Aaron.

  7. Keiran says:

    I had the same problem as Aaron, then downloaded the .94 version. A lot better – the text doesn’t overlap the fields anymore. However, all the text is too far left, so it doesn’t all show on the screen now.

    Thanks for this plugin!

  8. Sam says:

    Keiran: Fixed without version change. Let me know if you see any problems… Thanks!

  9. JR Rozko says:

    Just wondering if there is a way to align the image to the right or center.

    Thanks

  10. Sam says:

    JR: Alignment works with most themes, but let me make a change so that it will work with any theme. Check back today for v0.96…
    EDIT: Ok, posted 0.96, should be ok now.

  11. JR Rozko says:

    awesome – thanks!

  12. xinfo says:

    Great plugin just waiting to use this

  13. Greekstories says:

    Hi,
    I downloaded and installed the Aboutme Widget. I put in it in the folder plugins/widgets.
    Then I chose a widget-enabled template and tried to configure the whole. BUT there is no configuration button for the Aboutme widget. What is wrong?

  14. Sam says:

    Your current theme “Head” doesn’t support widgets.

  15. Hey there Sam,

    Thanks for the tip on editting the font size settings on your widget.

  16. Sam says:

    Welcome Serge, glad it worked for you…

  17. Greekstories says:

    Hi again,
    I know that my current theme does not support widgets. I tries your widget with another theme that supports widgets and it doesn’t work for me the problem being what I mentioned in my previous port. Any clues?

  18. Donald Woulard III says:

    Where do I get a widget enable template?

  19. Sam says:

    You can find some widget enabled themes here: The theme viewer.

  20. “To configure: 1. Go to Admin Presentation:Sidebar Widgets and click on the config button.”

    Okay, new weird issue: I placed the php in my plugins folder and activated it in Admin: Plugins–but I still don’t see a “config button” or in fact *anything* under the Presentation tab–? Do I need to add a line of code into the Sidebar php file, and then change my css as well? Help! And thanks for a cool-looking bit o’ code. :o)

  21. Oh wait… forgot to install widget stuff from WP. Neeeever miiiiiind. must be late here! ;oP

  22. J. Pisano says:

    Sam,

    I love your “About me” widget. It may be the single best about me widget I have come across for WordPress, especially in its’ simplicity.

    Quick Question regarding Opera and the widget; I opened up my blog in the Opera Browser, for the first time, and saw that Opera splits the “about me widget” for some reason right after the photo and caused my whole sidebar to drop down to the end of the page. I can’t seem to see anything that would cause that, but I am not a great coder. If you have Opera, and wouldn’t mind, would you check it out and let me know if you think it’s the widget or my own web site problem.

    Thanks,

    Joe

  23. Sam says:

    Not sure why it’s whacky in your theme, but this fixes it:

    Open aboutme.php in a text editor and go to line 105. It looks like this:
    echo '

  24. I'll try some more testing when I get a chance, see if I can replicate this...

  • J. Pisano says:

    Sam,

    I edited the code and it worked. Thank you very much for your time and troubleshooting expertise! It is greatly appreciated.

    Joe

  • Zach Everson says:

    Great plugin, Sam! Is there anyway I can adjust the font size though? When I used it, the text in that widget was smaller than the rest of the text on my sidebar.

    Thanks!

  • Sam says:

    Zach: If you open aboutme.php in a text editor and scroll down, about 5 or 6 lines before the end of the file are several echo statements. The text-related ones all contain font-size: 0.8em by default.

    Just change 0.8em to whatever you like.

  • Wrhona says:

    Your plugin is great. Good thing someone had created it. Thanks a lot…

    However, I seem to have a problem aligning them with the rest in my sidebar. I have tried changing paddings in my style sheet, but it won’t work. Any idea what might cause this? Is it with the layout?

    thanks for the help
    Wrhona

    (Edit by Sam: Contacted Wrhona by email for more info…)

  • Luke The Obscure says:

    I installed the widget and got it configured, but it made my sidebar all screwy! Not sure exactly what the problem was, but I figured out that deleting the folowing code from the php file fixed it:

    style="clear:both;display:block;color: '.$fontcolor.';margin: 0 0 1em 0;font-size: 0.8em;font-weight: normal;line-height: 125%;text-align:'.$alignall.';"

    It’s in there defining the li style after the image.

    Hope that makes sense… Probably just a conflict with my theme.

  • Sam says:

    The alignment issues some are experiencing will be addressed in the next release. For the moment, you can open aboutme.php and delete clear:both; (It is the only ‘clear:both;’ reference, so don’t worry, you can’t delete the ‘wrong’ one ;’)

  • Hi Sam,

    Great Widget…but am having one issue. Really lame but I can’t get the photo to upload. Not sure if I put the photo in the wrong directory.

    I created an “uploads” directory under public_html/wp-content/ and saved the brendan.jpg photo there.

    When I put in the image URL into the about me widget, I put in

    hxxp://digitalphocus.com/public_html/wp-content/uploads/brendan.jpg

    and get the view that see on digitalphocus.com

    am i missing something?

    Thanks!

  • Sam says:

    brendan: The correct path would be /wp-content/uploads/Brendan.JPG (drop the public_html) . Note the caps too, paths are case-sensitive.

    You might want to shrink that image as well, it’s currently 800 x 1200 (and 237kb). You want it about 80 x 120…

  • brendan says:

    Hi Sam,

    I’ve put in http://digitalphocus/wp-content/uploads/Brendan.JPG

    I keep getting

    getimagesize(http://digitalphocus/wp-content/uploads/Brendan.JPG) [function.getimagesize]: failed to open stream: Permission denied in /home/digimon3/public_html/wp-content/plugins/widgets/aboutme.php on line 35

    Is this just b/c I’m trying to upload too big an image?

  • Sam says:

    Or it may be that your server is running PHP in safe_mode. (See notes above re: cURL)

    Note that you are missing the ‘.com’ in your domain name…

  • brendan says:

    Hi Sam,

    That got it. Leaving out the “.com” was my problem. Now, I just have to shrink that photo and I’m golden.

    Thanks so much.

  • Elisabeth says:

    I really like this widget. I haven’t yet been able to configure it completely to my liking- but I’m looking forward to playing around with it more. Thanks for sharing this!

  • Rori says:

    I’d like to use it, but I keep getting an error and it will not show the images.

    Warning: getimagesize
    ailed to open stream: no suitable wrapper could be found in /wp-content/plugins/widgets/aboutme.php on line 35

  • Sam says:

    rori: I believe that’s because your host is running PHP in safe_mode and wants a cURL ‘wrapper’. I have a fix in testing… Thanks for your patience.

    PS Feel free to test the alpha at the link at the end of the article, and let me know how it works for you.

  • brendan says:

    HI Sam,

    Well, I got the photo up and running but i’ve got these “>>” in the box. Anything I can do to eliminate these?

    Thanks!

  • brendan says:

    Also, not sure if I can increase the font size for the verbage around the photo?

    Thanks.

  • Sam says:

    Brendan: That may be part of your themes styling for lists. If you send me a link (or post it here) I’ll take a look…

    Font size is set in the aboutme.php file. Look near the bottom (lines 105, 106 and 107) and you’ll see a reference to font-size: 0.8em;. Change that to 0.85em, 0.9em or whatever floats your boat ;’)

  • brendan says:

    Is this what you’re looking for: digitalphocus.com/public_html/wp-content/themes/bosco/style.css

  • 9 Pings/Trackbacks for "About Me widget for WordPress"
    1. WordPress????? » Blog Archive » About Me widget says:

      […] ????: ???? […]

    2. WordPress Widgets » Blog Archive » About Me says:

      […] It’s important that you identify yourself to your visitors. The About Me widget from Sam Devol helps you to identify yourself in style. No HTML knowledge required! […]

    3. WordPlay » Blog Archive » links for 2006-07-21 says:

      […] About Me widget for WordPress : Sam Devol (tags: wordpress plugins widgets) […]

    4. » New Things says:

      […] For instance, I modified Sam Devol about me widget to make a sub for my spending habits. It was pretty simple to do and I’m extremely happy with the results. The only problem I’m having is getting the CSS to show the way I would like. But, not too shabby for about 2 days worth of work. […]

    5. Three Times Daily » Blog Archive » More blog changes says:

      […] Added the Sam Devol’s About Me widget at the top of the sidebar, which also includes a link to the new contact form. […]

    6. ?? » Blog Archive » About Me widget says:

      […] ????: ???? […]