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: « 11 10 9 8 7 6 5 4 3 [2] 1 » Show All

  1. Right, I understand that function… I am just looking for a way to handle the need for a second signature (for specific posts). Is there a method for doing this that I am missing? Thanks, Jess

  2. Jesse Siglow: If you enable the option, this plugin will automatically display the signature on the pages you want. This is mentioned above. The trigger text is meant for those who want to do it manually, or to over-write the setting for a particular post/page. :)

  3. HI there, GREAT plug-in that was definitely in need of release. I have a feature request/suggestion, so please take it as you may: how about having an option for multiple sigs? On my site, we occasionally post news, pr, etc. so it would be great to tag the sig as “posted by” rather than “written by” (but still be able to attribute to authors).

    I realize we can do it by adding in the <!-- ddsig --> by hand, but I am attempting to be as lazy as possible… :)

    Thanks for the great utility!

  4. j O i*: I will keep that in mind :) Glad it worked for you.

  5. Pure Genius comrad! ::Virtual Kiss:: As a gift if you ever require services from my company, let me know and I’ll give you a 20% discount.

  6. j O i*: I looked again and realized that the script (depending on the settings) showed the signature on posts, pages, and the index, but was not checking archive pages. I just uploaded version 1.2 which adds an option for archive pages – which includes both date-based and category archives :)

  7. Just as a footer. It appears on all pages except for the pages sorted by categories. The url is “theartfulbloggers.com/?cat=2″ I have multiple authors and desperately need to differentiate. Advise your thoughts.

  8. j O i*: It depends – where are you placing the trigger text within the post? Posts are displayed differently on different types of pages (index, archives, search, single post view).

  9. i find that the signature does not load when i sort posts by category – how can i adjust this?

  10. I test it Works for WordPress 2.0.5 Thank you

  11. Anthony: No, PHP would not be processed if you added it to the signature.

  12. Question, can you include php as part of the signature as well?

  13. 18
    Bravos

    Admin,
    My apologies. I haven’t done this before and completely lost the location of the options. I was looking under Plugins/Options as opposed to Options/Plugins.

    Sorted now, exactly what I was looking for.
    Thank you.

  14. Bravos: I cannot imagine why a plugin would just disappear. I have not ever heard of this happening with any plugin.

  15. Cancel my question about renaming. I found how to do it in my ftp software.

    However, activated, opened the Plugin admin page and set my signature – only included some standard text and a home page URL in html.
    tested with a blog post and no signature. Went back to Plugin admin and the plugin has disappeared from the toolbar.
    Deactivated, deleted from the folder and reloaded – no change.

    Any suggestions?

    Regards

Pages: « 11 10 9 8 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.