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.3   Updated Saturday, September 22nd, 2007 at 7:19pm

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

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

  • 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 -->

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).

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

  1. Simple question from a simple user.
    How do I rename to file with .php extension?
    I have tried Save Target as… and copied/pasted in to Notepad then renamed but both give me filename.php.txt.
    Regards

  2. 14
    web2

    Great Plugin!! How can I get the signature to work for the RSS feed??

  3. Puzzled: I will give my standard answer :) Try re-downloading the plugin, and if that does not work, try temporarily disabling your other plugins.

  4. 12
    Puzzled

    The following and similar errors show on plugin activation and when trying to edit a post:
    “Warning: Cannot modify header information - headers already sent by (output started at…”

  5. I tried to use the trigger <!-- ddsig --> but wasn’t working.

    After looking into the code I saw that $found_trigger from:

    if ($found_trigger) { 			// If trigger found, process
    		$content = str_replace('<!-- ddsig -->', $the_sig, $content);

    wasn’t defined and I replace it with $found because I saw above that this might be the condition.

    Now it is working nice.

  6. 10
    enrico

    hi

    id like to exclude the signature when a post is featured in a specific category.
    how can i do?

    pls let me know
    tnx
    enrico

  7. [...] Add Sig created by Admin: Add a custom signature to the bottom of posts with the author’s information. [...]

  8. [...] Add Sig - Add a custom signature to the bottom of posts with the author’s information. [...]

  9. Ge-Linkt 09-08-06…

    New Links / 09-08-06

    ……

  10. [...] Grab it from Dragon Design’s website. [...]

  11. [...] I didn’t see the point of this plugin (which adds an email-like sig to your posts) at first, unless you have a multi-author blog, but I reckon it would be a pretty useful thing to have in your RSS feed. This method could be adapted. [...]

  12. Version 1.1 has been released - It lets you choose what pages the signature is displayed on - the index, posts, and/or pages.

  13. [...]   Add signature,增加签名档在文章底部。 post signature [...]

  14. [...] Plugin-ul il gasiti aici. Posturi similare:Plugin-uri WordPress pe care la folosescHiQ pe blogMovable Type EnterpriseMarti il am invitat pe Jeremy Wright la Radio LynxCat de binevenit este un forum al bloggerilor? [...]

  15. [...] Grab it from Dragon Design’s website. [...]

Pages: « 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.