Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support > "yget"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-31-2007, 10:00 AM
tiger2f's Avatar
Casual Pligger
 
Join Date: Mar 2007
Posts: 41
Thanks: 5
Thanked 2 Times in 2 Posts
How to add a check box to the registration?

I want to add a check box that users have to check before completing the registration process and a link to my terms of service page. They must agree to the terms of service first. How can this be done?
Reply With Quote
  #2 (permalink)  
Old 06-04-2007, 04:39 PM
New Pligger
 
Join Date: May 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3 (permalink)  
Old 08-04-2007, 06:51 PM
New Pligger
 
Join Date: Jun 2007
Posts: 22
Thanks: 1
Thanked 0 Times in 0 Posts
Did anyone find a solution to this?
Reply With Quote
  #4 (permalink)  
Old 08-05-2007, 12:33 AM
Casual Pligger
 
Join Date: Jul 2007
Posts: 44
Thanks: 19
Thanked 0 Times in 0 Posts
Smile Extra Check Box

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..
Reply With Quote
  #5 (permalink)  
Old 08-06-2007, 01:32 AM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
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
Reply With Quote
The Following User Says Thank You to dollars5 For This Useful Post:
  #6 (permalink)  
Old 03-28-2008, 06:43 PM
New Pligger
Pligg Version: None
 
Join Date: Mar 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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:
if ($date_valid == 0) {
$main_smarty->assign('submit_error', 'baddatewritten');
$main_smarty->display($the_template . '/submit_errors.tpl');
Go to submit_errors.tpl and add the corresponding errors that you want to display.

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.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
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


Search Engine Friendly URLs by vBSEO 3.2.0