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 1.32   Updated Wednesday, July 1st, 2009 at 8:20pm

Add Signature Plugin for WordPress

This plugin lets you display a custom signature at the bottom of your posts. Simply type the text you want in the options page and configure it to display on every post, or manually display it by adding the trigger text wherever you like. You can also add in author information using the included variables – login name, first name, last name, nickname, email address, website, and description/bio. It get this information from the author’s account settings. It currently supports up to three different signature templates.

Download

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

Instructions

  • Download the above file, rename it from .txt to .php, and upload it to your plugins directory.
  • Enable the plugin.
  • Configure the plugin options (under DDAddSig).
  • Test it out by viewing a post.

Change Log

  • 07-01-09 Version 1.32 – Fixed bug when using more than 3 sigs. Sigs are now wrapped in a div with the class ddsig_wrap.
  • 02-17-09 Version 1.31 – Added five extra signature fields (7 total now), updated display of options.
  • 09-22-07 Version 1.3 – Added two extra signature fields. Added ‘Load Default Options’ button. Added option to display signature on search pages.
  • 11-27-06 Version 1.2 – Added option to show the signature on date/category archive pages.
  • 07-26-06 Version 1.1 – You can now choose to show the signature on the index, posts, and/or pages.
  • 07-23-06 Version 1.0 – First release.

Signatures

You can use HTML and CSS in your signatures. The following variables can also be used to display author information (they are case-sensitive):

  • %LOGIN% – Login name
  • %FIRST% – First name
  • %LAST% – Last name
  • %NICK% – Nickname
  • %EMAIL% – Email address
  • %URL% – Website
  • %DESC% – Description/Bio

Standard Usage

To show the signature on a post or page, simply type in the proper trigger text.

Primary signature:
<!-- ddsig -->

Signature 2:
<!-- ddsig2 -->

Signature 3:
<!-- ddsig3 -->

Etc..

Note: Be sure you enter the trigger text using the ‘Code View’ in WordPress – not the new visual text editor.

Automatic Usage

If you prefer, you can have the plugin automatically display the signature on the pages you specify with the options below. Note: These options only apply to the primary signature.

Display on index page
When enabled, this option will show the signature after each post on your index page.

Display on posts
When enabled, this option will show the signature on each single post page.

Display on static pages
When enabled, this option will show the signature on each static page.

Display on archive pages
When enabled, this option will show the signature on each archive page. This includes both date and category archives.

Display on search pages
When enabled, this option will show the signature on each search results page.

Other Uses

What if you want to show an image of the author at the bottom of the posts? Standard WordPress profiles do not include an option for an author image, but it is easy to do with this plugin.

Just add something like this to your signature field:

<img src="/authors/%NICK%.jpg" />

Then all you have to do is create an ‘authors’ directory on your server, containing an image for each author (with their nickname for the filename).

Modifications

Disable automatic line breaks in signatures
Find this code in the script:
$ddsig_data = get_option('ddsig_data');After it, add the following:
$ddsig_data = str_replace(array("\n","\r"), array("", ""), $ddsig_data);That will strip out the newline/return characters from the signature. To do the same to the other signature fields, just duplicate that line with the other variable names (ddsig_data2, etc..)

Pages: « 12 11 10 [9] 8 7 6 5 4 3 21 » Show All

  1. This plugin has been tested, and works, with the latest release of WordPress – 2.8

  2. Thank you so much for your instructions on removing line breaks. I’m going to update the plugin and give it a go. I wish I was as smart as you guys :-)

  3. Version 1.32 has been released

    This update fixes the bug when using more than 3 signatures (thanks for pointing that out Mike).

    Signatures are also now wrapped in divs with the class ddsig_wrap.

    Instructions have been added to show how the code can be modified to strip out newlines/returns from the signatures (for David)

    Enjoy!

  4. Great plug in! I was searching for a plug in that would insert a different signature based on what category my post was it. Let me know if that would be an option…

  5. Oh wow, I must say I really love this plugin. Just one thing though…. is there any way to turn off the automatic line breaks in the signatures. I have the Disable WPAUTOP plugin installed to disable line breaks but that doesn’t seem to have any effect on your plugin to stop line breaks in HTML when placed in a signature. Is there a line of code in the plugin I can remove to make it stop placing auto line breaks?

  6. Gracias! Es lo que buscava mucho tiempo. Es perfecta ayuda para todoos autores de bloges.

  7. Hi – Got a problem when using this plugin to output the website of the user on all posts. Bascially, the users website is properly listed, but prefixed with the url of the blog – so it outputs a 404 error page of course. How do I remove the prefix? I’m using the primary option in my settings. Thanks!

  8. Hi. Looks like a great plugin.

    A couple of things:

    1) There’s a bug with the extra sigs you added.

    $content = str_replace('<!-- ddsig2 -->', $the_sig2, $content);
    	$content = str_replace('<!-- ddsig3 -->', $the_sig3, $content);
    	$content = str_replace('<!-- ddsig3 -->', $the_sig4, $content);
    	$content = str_replace('<!-- ddsig3 -->', $the_sig5, $content);
    	$content = str_replace('<!-- ddsig3 -->', $the_sig6, $content);
    	$content = str_replace('<!-- ddsig3 -->', $the_sig7, $content);

    Copy/paste error.

    2) Can you wrap the output in a div tag so that the output can be styled using a custom css.

    Thanks

  9. 127
    Pia

    Can you make it so that users while submitting articles can submit unique signature for each post they submit or is there any othee plugin available for that?

  10. 126
    Steve

    Still not quite sure where to put my signature content.
    The only options are to edit the file outside of my domain, then upload or to edit the file through the text view. I don’t see anything resembling “code view” in my admin area.

    Any suggestions would be helpful.

    Thanks!

  11. Tnaks for the information on the plugins..

  12. Version 1.31 Released

    This update adds five signature blocks, for a total of seven. It has been tested with the latest release of WordPress (2.7.1)

    There have been many comments regarding various customizations of the script, and while these are all possible, I am unable to implement everything, or create custom versions for everyone.

    As with all of my plugins, if you would be interested in paying to have a custom version made, please let me know.

  13. Thanks for the great plugin. Really is helpful;)
    Where can we increase the font size?
    Right now is very small.
    Also, when selecting for auto insert, does not function. Any suggestions?

    Thank you again!

  14. Really Love it! Just one minor suggestion. Is there any way it can be displayed completely under all the code when using auto insertion! If I user center tags it can’t recognize the the seperation of post and sig!

    Still love it!

  15. 121
    mark

    sorry, i guess i mean, MORE than just 3 signatures?

Pages: « 12 11 10 [9] 8 7 6 5 4 3 21 » 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.