When I click the "quote" link - there is no signature in the comment box. People writing posts forget to sign.

Andrzej

CommentFileSizeAuthor
#1 quote-signature.patch802 byteskaare

Comments

kaare’s picture

Version: » 4.6.x-1.x-dev
StatusFileSize
new802 bytes

And here is a patch that fixes it.

Common subdirectories: quote.orig/po and quote/po
diff -u quote.orig/quote.module quote/quote.module
--- quote.orig/quote.module	2004-11-26 11:10:27.000000000 +0100
+++ quote/quote.module	2005-11-28 07:05:04.000000000 +0100
@@ -63,6 +63,8 @@
  * Implementation of hook_menu().
  */
 function quote_menu($may_cache) {
+  global $user;
+
   if (!$may_cache) {
     // reference quote.css, if it exists
     $quotecss = drupal_get_path('module', 'quote') .'/quote.css';
@@ -88,6 +90,9 @@
         $subject = $node->title;
       }
       $_POST['edit']['comment'] = '[quote='.$author.']'.$msg.'[/quote]'."\n";
+      if ($user->uid) {
+        $_POST['edit']['comment'] .= $user->signature;
+      }
       if (strpos($subject, t('Re:')) === false) {
         $subject = t('Re:') .' '. $subject;
       }

Apply with

$ patch -p1 < path/to/quote-signature.patch

from the folder quote.module resides in.

Zen’s picture

Version: 4.6.x-1.x-dev » master
Assigned: Unassigned » Zen
Status: Active » Fixed

This has been fixed in HEAD (4.7).

Thanks
-K

Zen’s picture

Status: Fixed » Closed (fixed)