Closed (fixed)
Project:
Petition Node
Version:
6.x-1.1-beta2
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2009 at 14:48 UTC
Updated:
2 Jul 2009 at 06:40 UTC
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
Comment #1
gauvain commentedHej 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
Comment #2
droshani commentedThank 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.
Comment #3
gauvain commentedI think I have some ideas, but I will not have time to look at it before one or 2 weeks.
Comment #4
droshani commentedthanks!
Comment #5
gauvain commentedHej 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.
Comment #6
droshani commentedThanks, I am on holiday, I will do ASAP,
Comment #7
droshani commentedIs it possible to display access to the Petition as a Block?
Comment #8
gauvain commented