Author |
Topic |
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 01 August 2008 : 04:47:11
|
Since a petition is visible to all signers by default, not sure why you'd need to protect it from being printed ... but it doesn't effect the functionality, so feel free.< |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 01 August 2008 : 07:20:13
|
Good point, but the rationale behind keeping the printout separate is when the organiser wants to forward/handover the printout signatures, they know that the receipient will get a true number of 'signees' collated together. It'll also save many other people putting in printouts, and then having to isolate each duplicated sig. We organised a country wide petition a while ago, handed them into parliament in one go, instead of dribs and drabs. Just a thought.< |
Edited by - Andy Humm on 01 August 2008 07:25:18 |
|
|
Massimo
Junior Member
Italy
125 Posts |
Posted - 03 August 2008 : 10:15:29
|
Fix insert secure e-mail. (You Must enter a valid e-mail address)
open petition.asp and modify:
Look for:
%> <!--#INCLUDE FILE="config.asp"--> <!--#INCLUDE FILE="inc_sha256.asp"--> <!--#INCLUDE FILE="inc_header.asp" --> <%
Replace it with:
%> <!--#INCLUDE FILE="config.asp"--> <!--#INCLUDE FILE="inc_sha256.asp"--> <!--#INCLUDE FILE="inc_header.asp" --> <!--#INCLUDE FILE="inc_func_member.asp" --> <%
Look for:
End If If Request.Form("name") = "" Then Err_Msg = Err_Msg & "<li>Please enter your name</li>" & vbNewLine End If If Request.Form("email") = "" Then Err_Msg = Err_Msg & "<li>Please enter your email address</li>" & vbNewLine End If If Request.Form("message") = "" Then Err_Msg = Err_Msg & "<li>Please enter a message</li>" & vbNewLine End if
Replace it with:
End If If Request.Form("name") = "" Then Err_Msg = Err_Msg & "<li>Please enter your name</li>" & vbNewLine End If If Request.Form("email") = "" Then Err_Msg = Err_Msg & "<li>Please enter your email address</li>" & vbNewLine End If if EmailField(Request.Form("Email")) = 0 then Err_Msg = Err_Msg & "<li>You Must enter a valid e-mail address</li>" end if If Request.Form("message") = "" Then Err_Msg = Err_Msg & "<li>Please enter a message</li>" & vbNewLine End if
;) < |
Massimo Farieri Snitz Italian Community =============== http://www.snitz.it http://www.superdeejay.net/forum/
|
|
|
Lon
Starting Member
USA
47 Posts |
Posted - 29 November 2008 : 17:25:30
|
I've modified mine to only display signatures to administrators. It would also be nice to be able to have a clean-up button. Something to erase all the signatures when it is complete, or maybe archive them. Or how about 2 petitions or more going at the same time?, that might be a little more difficult.
Great MOD, I believe my users will enjoy it and use it.
Lon< |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 22 December 2008 : 17:35:27
|
Lon, I haven't tried this code but maybe a new case in admin_petition.asp line 97 might work. I have not looked into where we could active this action, maybe a link in the admin page - any ideas
< |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 22 December 2008 : 18:49:58
|
Lon You might want to try this: petiton.asp lines 231 to 233 amend to read
The above code in red adds alink next to the printer icon which is only visible for admins logged in
then at line 402 before the 'case sign' add the following
Merry Christmas Andy
< |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 23 December 2008 : 22:38:13
|
Rather than deleting the contents of a previous petition database, why not use one of the varfields as a petition title, then when ready to create a new petition, rename the petition table automatically to "petition+(the existing title)", and finally recreate the blank petition table?< |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 24 December 2008 : 03:25:11
|
Good call, I think the original concept of leatherlips' petition mod was based around ther original guestbook software. Would this suggestion be too difficult to achieve CF? rgds andy< |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 24 December 2008 : 08:10:10
|
It shouldn't pose a problem, no. I'll see if I cannot write the mod changes sometime today.< |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 25 December 2008 : 04:17:02
|
OK I had to do a bit of writing, but it's functional.
Features: - Adds a title to the petition
- Automatically renames the petition table to the title of the petition
- Recreates the blank petition table
- Resets the petition message & title fields of the petition options table
Download at SnitzBitz.< |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 25 December 2008 : 05:28:45
|
CF, Merry Christmas, Santa provides, so does CF...A big thank you from the UK.< |
|
|
jgs
New Member
Netherlands
95 Posts |
Posted - 27 January 2009 : 11:55:11
|
I've tried the update for the petition mod, but I got an error:
Microsoft JET Database Engine error '80040e10'
No value given for one or more required parameters.
/forum/admin_petition.asp, line 68
After reading this thread, I checked the database. Before and after is was exactly the same size. So I tried the alternative database update. Got the succesfull update reply, but the database remains exactly the same size.
I'm using an Access 2000 database.
Following, I tried a little experiment, I downloaded the database, manually added a field P_TITLE (texfield, 50 positions, not required, other options in Access on no, and now no error. It seems your dbs file is still not working, at least not with Access database. I only added the field, is more required?
Edit: first test, made a title, downloaded the dB, the title was in the file, changed it, replaced the dB on the server and indeed, the name of the petition had changed. Looks as if it's working.< |
Info about my forum: http://www.govvd.nl/forumsoftware.htm list of Mods included. Most of userinterface translated into Dutch. |
Edited by - jgs on 27 January 2009 12:02:49 |
|
|
jgs
New Member
Netherlands
95 Posts |
Posted - 27 January 2009 : 12:17:36
|
I cheered to early, the name of the petition doesn't show up in the petition itself. But I don't get errors.
Noticed another error, the 3 additional fiels were missing.
I'm back to 1.2
< |
Info about my forum: http://www.govvd.nl/forumsoftware.htm list of Mods included. Most of userinterface translated into Dutch. |
Edited by - jgs on 27 January 2009 12:34:59 |
|
|
Topic |
|