×

Notice

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

TOPIC: HOWTO: Checkbox instead of SELECT for email notify

HOWTO: Checkbox instead of SELECT for email notify 6 years 11 months ago #11126

  • Hari Karam Singh
  • Hari Karam Singh's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
Using the code below in your custom template you can "hack" in checkbox rather than the default select dropdown:
Notify me of followups via email
 
							Don't email me replies
							Email me replies

Then you just need to style the Select with visbility: hidden (not sure whether display:none will still work).

The issue here is that client.js references the selected box's "selectedIndex" so you cant just replace the form element.

Incidently this also default to "do notify". If you dont mind the default being off, you can replace the select bit with {notifyselect}

Hope this helps someone...

HOWTO: Checkbox instead of SELECT for email notify 6 years 11 months ago #11127

  • Hari Karam Singh
  • Hari Karam Singh's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
Bummer, no code escaping...

HOWTO: Checkbox instead of SELECT for email notify 6 years 11 months ago #11132

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 154
  • Thank you received: 1081
Where what?

HOWTO: Checkbox instead of SELECT for email notify 6 years 11 months ago #11135

  • Hari Karam Singh
  • Hari Karam Singh's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
The forum post seems to strip html code...

It was code to allow a checkbox rather than the dropdown select for subscribe to comments... It goes in a template file

HOWTO: Checkbox instead of SELECT for email notify 6 years 11 months ago #11141

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 154
  • Thank you received: 1081
If you wish you can use this: pastebin.com/
Just give us the link

HOWTO: Checkbox instead of SELECT for email notify 6 years 11 months ago #11142

  • Hari Karam Singh
  • Hari Karam Singh's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
  • Page:
  • 1
Time to create page: 0.087 seconds