×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Set Notification Default to On

Set Notification Default to On 8 years 6 months ago #20699

  • Pat Nims
  • Pat Nims's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Is there a way to set the "notify" default to "on" as a user enters comments?

Thanks.

Set Notification Default to On 8 years 6 months ago #20732

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
You'll have to create a template override for default_form.php and set checked property on the notify input field.

Set Notification Default to On 8 years 6 months ago #20742

  • Pat Nims
  • Pat Nims's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Thanks. I created the override template and looked at the HTML but did not find an option for changing the default value. (limited programming skills). Could you let know the code I'm looking to change and the correct values?

Set Notification Default to On 8 years 6 months ago #20744

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
in default_form.php you have
			<input type="checkbox" value="1" {{#user.notify}}checked="checked"{{/user.notify}} name="notify"
			name="ccomment-notify" />
change it to
			<input type="checkbox" value="1" checked="checked" name="notify"
			name="ccomment-notify" />

This should do the trick.
Regards,
Daniel

Set Notification Default to On 8 years 6 months ago #20747

  • Pat Nims
  • Pat Nims's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
Thanks. Sorry to be so clueless, but where can I find default_form.php? A filezilla search of my site did not find any default_form.php files in any of the comments folders.

Set Notification Default to On 8 years 6 months ago #20755

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Pat,
Don't be clueless, read the docs :)
compojoom.com/support/documentation/ccomment/ch07#idp237680

Regards,
Daniel
  • Page:
  • 1
Time to create page: 0.128 seconds