Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 2.4   Updated Sunday, February 22nd, 2009 at 8:20pm

User Bio Popup plugin for WordPress

This WordPress plugin searches posts and pages for the nicknames of authors. When it finds one, it turns it into a link which brings up a popup window with the author’s bio and image. It uses the contents of the ‘About Yourself’ field in the user’s profile for the actual bio, and the image used depends on which of the two methods you select. The options page for this plugin allows you to configure the popup’s heading, width, height, and more. It also is fully customizable with the built-in CSS in the popup template file.

Download

  If you have found this page useful, please consider donating. Thanks!

Instructions

  • Download dd-user-bio-popup.zip and uncompress
  • Upload dd-user-bio-popup.php to your plugin directory
  • Upload ddub-template.php to your theme directory
  • Enable the plugin
  • Configure the plugin options (under DDUserBioPopup). More information on that is below

Upgrading

Be sure to download both files when you upgrade, and check the options and the information on this page to make sure something has not been changed.

Change Log

  • 09-29-07 Version 2.4 – ‘Load Default Options’ button added. Tested with WP 2.3
  • 05-16-07 Version 2.3 – Updated for WordPress 2.2.
  • 04-06-06 Version 2.2 – Now in the options, you enter the FULL URL to the images directory. It should help make things a bit more standard. Everything validates now as well.
  • 04-05-06 Version 2.1 – Image detection code improved, gravatar code improved, and a few other little things.
  • 04-04-06 Version 2.0 – Popup code completely redone. Now popup window has it’s own template file. Images are now supported (Uploaded and Gravatars), as well as many other fixes and updates.
  • 04-02-06 Version 1.0 – First release.

Using images

The image used depends on your settings. This plugin allows you to create a directory, and upload images to it. You must simply specify the full URL to this directory in the options.

If you like, you could use a directory that your other author’s have access to, so they can upload their images themselves.

For image file names, simply use the author’s nickname – lower case, with spaces removed. The plugin will search for matching files that are either jpg, gif, or png.

Example

Let’s say your wordpress installation is at http://www.somesite.com/wp/ and you create a subdirectory called authors for the images. In your options page you would enter http://www.somesite.com/wp/authors/ for the directory.

Let’s also say that you have a user called Some User. You would want to call the image someuser.jpg (or gif or png). That’s it!

Now if the plugin cannot find a matching image, and Gravatars are enabled, it will try to find one by using the author’s email address (in their profile).

This plugin uses its own code for Gravatars, so you do not have to install anything else. If you are already using a Gravatar plugin, that is fine. They will not conflict.

Configuring

The CSS code for the popup window is contained in the template file (ddub-template.php). Feel free to change this to fit your site.

Options

Here are the settings available in this plugin’s options page in the WordPress admin panel.

Author images directory

This is the full url to your author image directory. This is where you can choose to store images for each author.

Use Gravatars?

If enabled, and an author image cannot be found in the specified directory, the author’s gravatar will be used. If you want to always use gravatars, just leave the ‘author images directory’ option blank.

Heading for the popup

This will be shown at the top of the popup window. If you want to include the user’s name, use %U.

Hover text for link

This will be shown when the visitor’s mouse is hovered over the link. If you want to include the user’s name, use %U.

Popup window width

Self-explanatory.

Popup window height

Self-explanatory.

CSS for popup window

This allows you to completely customize the popup window. The #wrapper div is around the content.

Other Modifications

If you would like the popup window to have a scroll bar, just search for the following code in the main script file:

scrollbars=0

And change it to this:

scrollbars=1

Pages: « 7 [6] 5 4 3 2 1 » Show All

  1. Hey and thank you for the nice plugin.
    However, the word “nice” here is for complimentation matter, not as a matter of fact :)

    I installed the plugin on my WP 2.7.1. My blog’s primary language is Arabic, and so are the nicknames of the authors.

    The plugin didnt work for me. I installed it, made authors dolfer and placed inside it photos of the authors that comply with the photos’ conditions.But the plugin never works and the atuhors’ names are never turned into “links”. Even after changing the nicknames into something in English (which I thought the cause), it still doesnt work . What could the reason be ?

    http://www.al-rasid.com/blog

    Thanx

  2. Dude, you are the BOMB! Thanks so much for the great plugin.

    Eric

  3. Eric: Search in the main script file for this:

    scrollbars=0

    And replace it with this:

    scrollbars=1

  4. I’m wondering if there is a way that I can make the box have a scroll bar. What code would I put in?

    Let me know.

    Eric

  5. This plugin has been tested in the latest release of WordPress (2.7.1)

  6. I’d love to see an option to show a users page and not a pop-up window. :)

  7. Can the plugin pickup author bio content from an URL instead of “About yourself”? In other words, can it just simply display the content of an URL instead?

    Thanks

    PN

  8. The User Bio Popup plugin make me this error into the popup window:

    Fatal error: Call to a member function on a non-object in /home/wp-includes/query.php on line 10

    Why?

    I use Wordpress 2.3.3

  9. Dear admin,

    If you could spend a couple minutes to help me with this please… in this page of mine with your plugin in effect, http://veggyplease.com/?page_id=45, the nickname Mr White… opens the correct pop-up bio but the hover text gives the title for Mr Green (another user) instead of Mr White. It shouldn’t work like that should it?

    Thanx so much in advance,
    Mr Green

  10. HolisticGal: First you need to tell us what the problem is?

  11. I can’t get this to work. We’ve got multiple authors and I’ve tried everything I know. Anyone have any ideas? thanks

  12. Abhishek: This plugin will only turn author nicknames into links if they are in a post or page – not in the template files directly.

  13. I’ve installed your plugin and the code I use to get the author’s nickname on Wordpress 2.2 is <?php the_author(); ?> on revieware.net.

    It’s a multi-user blog and I just cant seem to find out why the popup link is not being generated. Would really appreciate some help here.
    Thanks,
    Abhishek

  14. 77
    Darren

    Would it be simple enougth to have the bio show as a page in the site rather than a pop-up?

  15. Foggy: The width and height of the popup can be adjusted in the options page for this plugin, under the WordPress admin panel.

Pages: « 7 [6] 5 4 3 2 1 » Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.