Several problems getting this to work properly
sraisz - August 2, 2008 - 15:27
| Project: | SignIt |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I installed signit and created a petition here. http://safevrindavan.com/?q=petition
There are a few problems.
The first was a missing field “Data” in the signit_signatures table.. I added that and it seems fixed.
The other problems are:
1) I get “white screened” when trying to access signit settings in site configuration
2) If CiviCRM related modules are enabled I get errors when editing a petition node
3) There is an extraneous “n/a” appearing at the top of the petition node under the statistics
4) “Send receipt on signing.” Will not stay checked
5) “Signing email message subject:” and “Signing email message body:” just copies whatever text is put in “Email message:”
Any help?

#1
Re: #3,there's this bit of code in signup.module that's creating the "n/a" inside a blockquote:
/*** format the signit email content
*/
function theme_signit_display_message($signit) {
$output = "<blockquote>". check_markup($signit->message) ."</blockquote>";
return $output;
}
I played with all the settings and couldn't figure out where I was supposed to set this message so it wouldn't be "n/a", but no luck. So, I found the only place where I could find signit_display_message being called:
/**
* alert the user that they can't sign again
* display the signit email content
*/
function theme_signit_already_signed($node) {
static $control;
if (! $control) {
$control = 1;
drupal_set_message(t('You have signed this. Thanks for participating!'));
$output = theme('signit_display_message', $node->signit);
return $output;
}
}
And commented out the $output line:
//$output = theme('signit_display_message', $node->signit);Then there's no more "n/a"