Is it possible to add the setting to this module so a petition can run till possible number of signature has been collected, + a date limit let say a petition will run in 40 days only. I think these are necessary for a feasible Petition campaign.

Comments

gauvain’s picture

Hej Koyauni,
I have just released a beta-3 version where you can choose whether the signature form should be active or not.
Check the devlopment snapshot, if the beta-3 is not availale yet.

The idea to add a date field to automatically inactivate the signature form after a given period of time is quite interesting but i'm uncertain as how to do it.

I think the simplest would be to add a date field to the petition content type with CCK.
Then, the hook_cron would need rewriting to find if there is a CCK date field on the petition content type and, if the given end date is past, automatically inactivate the signature form on cron jobs.

What I am uncertain is how to detect a CCK date field on the petition type? And what to do if there are several added date fields?
Should we force user to call the CCK date field a certain thing?

Thanks for your feedbacks

droshani’s picture

Thank you for the hard work,

I think you can use the similar function which is already exist in Poll and Advance Poll modules where the data settings is an important factor in the setting.

There are two main factors in Petitions One is Duration the petition should run and the other is How many signature is needed for the campaign. I think both needed to be present in the set up of any Petition.

gauvain’s picture

Status: Active » Postponed

I think I have some ideas, but I will not have time to look at it before one or 2 weeks.

droshani’s picture

thanks!

gauvain’s picture

Status: Postponed » Needs review

Hej hej!

I have added a campaign feature in cvs (available as the development snapshot within 12 hours).

This is basic functionality. A themer may like to have the possibility to add on his node-petition.tpl.php something like "12 days left" or "1789 signatures left", so I will also add the relevant variables to the theme template.

Please test and report.

droshani’s picture

Thanks, I am on holiday, I will do ASAP,

droshani’s picture

Is it possible to display access to the Petition as a Block?

gauvain’s picture

Status: Needs review » Closed (fixed)