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. Great plugin – just what I was looking for to add an easy link to a charity website to every post so that wherever you read it – my page or an RSS feed – the link is there as reminder to click on and donate.
    Cheers!

  2. The signature works fine for my 2.5.1 WP blog. Unfortunately, I’m trying to add HR tags into it and it won’t show up, but I’ll figure it out on my own probably. Thanks for the simple plug-in.

  3. Can you have more than 3 sigs?

  4. Thanks for the plugin. It works like a charm. It will be nice if there is a hack to make it work inside the template and switch it on and off accordingly.

  5. I am wondering how I can change the plugin so that the signature is placed at the TOP of a post (reight before the post) rather than at the end?

    Thanks for any help you can provide.

  6. 100
    Gabriel

    Hi exelent Plugin, I am from Argentina, My english is a lit bit bad.
    I want to put the signature in the comments. Is iT Possible? And One Signature per User Registered.
    Thanks-

  7. 99
    WPnoob

    I’m new to wordpress and can’t figure this plugin out. I installed it and it shows as a plugin in WP, and also shows as activated. However, I can’t get it to DO anything. If I add to a post, that literal text gets added to the post. What am I doing wrong??

  8. sorry to duplicate. I forgot the code tag…

    Why isn’t this working? I want to use the photo file that is already upload and associated with their user profile.

    
    <img src="/public_html/blog/wp-content/uploads/userphoto/%NICK%.jpg" />
    

    I actually wanted to insert the thumbnail, so I put .thumbnail.jpg
    but whether or not I want to do it with the thumbnail, I cannot get this to work.

    As a suggestion, it would be great if you had a tag just to use the photo that is uploaded for each user profile, instead of suggesting we create a new directory.

    Very useful plugin. I have been using it for a while, but could never figure out the photo part.

  9. Why isn’t this working?

    I actually wanted to insert the thumbnail, so I put .thumbnail.jpg
    but whether or not I want to do it with the thumbnail, I cannot get this to work.

  10. hi.
    thx for this great plugin :-)
    Is it possible to add the signature NOT too all post? i want it just for posts in certain categories. I allready have templates for these posts, but who do i insert the code ?
    thx a lot!

  11. Dear Dagon,
    excellent plugin! Thank you.

    I sometimes split longer posts into multiple pages (by using the wp ‘nextpage’ tag). Is there a way for the sig not to appear at the bottom of all of them, but only in the last one?

  12. Hello Alastair,

    I love your DD Add Signature Plugin and we use it on our Foliovision website to add author headshots to every article.

    Unfortunately it seems to have problems with forms, i.e. a form makes the signature appear twice. I’ve documented the issue here: DD Add Signature Plugin: Trouble with Technology. Perhaps you could let me know if you have any suggestions or workarounds.

  13. I would like to add content to every post made on blog by feedwordpress. Something like: This article does not reflect the opinions of myblog.com… Is it possible and how?

  14. 92
    Samuel Agboola

    Can this plugin be modified to insert the signature in-line with the text? I want to add a signature that is literally the last characters of the last line of every post. I could do it manually but it’d mean a lot of silly cutting and pasting. If I remove the tags, using WPAUTOP, the whole post formatting breaks down.

  15. I could not get sigs 2 and 3 to output. I went through the code and hacked it to get it to work for sigs 2 and 3. I’ll be happy to share the hacks, if interested.

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.