![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Hi all, new to this Pligging - but I am getting to grips with it - brilliant stuff. I too would like to be able to have a tick box for "I have read your terms and conditions". Any help appreciated. Phil |
| |||
|
Did anyone find a solution to this?
|
| |||
|
Edit: Sorry, I misunderstood the question. The following steps are only for adding checkbox in the story/news submission section and not in the registration section. Hi all, No, I am not an expert but this is what I think you should do: Create an extra field using the inbuilt extra fields feature. (You will have to manually modify two pages, libs/extra_fields.php and yget/submit_extra_fields.tpl). During modification you will need to change the extra text field into checkbox. You also have to enable the extra fields in the admin section. You do not have to change anything in the database as the extra fields columns are already there. ![]() However, during display, the extra field (checkbox) will be visible unless you choose to modify link_summary.tpl and remove that extra field. I have downloaded, beta 9.7 and partly followed the image upload instructions to make a couple of extra fields (not checkbox). Last edited by termite; 08-05-2007 at 12:35 PM.. |
| ||||
|
Why waste an extra field for a 1 time check? Just add a checkbox input field, add an javascript onSubmit() to validate the status of checkbox (should be checked), if checked - return true, else display an alert requiring user to get validated. You can see it live at Meme or Lame / Published News |
| The Following User Says Thank You to dollars5 For This Useful Post: | ||
| |||
|
Further, if you want to add verification on your own, you need to edit Submit.php, editlink.php, submit_errors.tpl, and Lang_english.conf Once you've put in your validation code in submit.php, you can copy it over to editlink.php. Then in the case of the error you are going to want to use code like: Quote:
Then, finally, go to lang_english.conf and add the language to display in case of the error. This might reset your language settings for other areas, so be sure to double check. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Registration should have Terms of Agreement check | dbpatel | Suggestions | 1 | 07-04-2008 04:24 PM |
| Double optin possible (registration with verification (to avoid spam complaints) | soplar10 | General Help | 2 | 06-12-2008 08:14 AM |
| Registration | surender | General Help | 1 | 12-18-2007 06:49 PM |
| adding check box to registration form | guile82 | General Help | 1 | 08-13-2007 01:45 AM |





Linear Mode

