1
jimkarvo
"Receive occasional email notices"
  • 2006/4/7 9:16

  • jimkarvo

  • Not too shy to talk

  • Posts: 169

  • Since: 2005/9/19


By default it is "no"

How I can change it to "yes"?
whttp://www.pc4allgr.com - Greek community for PCs

PC4ALL Admins' Team!

2
Herko
Re: "Receive occasional email notices"
  • 2006/4/7 9:59

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


privacy regulations in many countries prefer opt-in on messages being sent, not opt-out. Meaning: defailt set to 'no' and concious action required by the user to opt in on these emails.

You can change it in the register.php file, line 125 (XOOPS 2.0.13.2):
change this line
$user_mailok = (isset($_POST['user_mailok']) && intval($_POST['user_mailok'])) ? 0;


into this:
$user_mailok = (isset($_POST['user_mailok']) && intval($_POST['user_mailok'])) ? 1;


(the ? 1 : 0; becomes ? 0 : 1;). This changes this behaviour for registration of new users. Please note that I think this is a privacy regulation improper use.

For existing users you can only change the state in the database. But that would most definately be a breach of privacy regulations, as these people chose not to opt in.

Herko

3
jimkarvo
Re: "Receive occasional email notices"
  • 2006/4/7 12:16

  • jimkarvo

  • Not too shy to talk

  • Posts: 169

  • Since: 2005/9/19


Ok, herko!


Thenks
whttp://www.pc4allgr.com - Greek community for PCs

PC4ALL Admins' Team!

4
JCash
Re: "Receive occasional email notices"
  • 2011/10/17 11:12

  • JCash

  • Just popping in

  • Posts: 66

  • Since: 2011/2/22


Same question but Xoops code has changed :
Quote:

$reg_form->addElement(new XoopsFormRadioYN(_US_MAILOK, 'user_mailok', $user_mailok));


--> how could I make Yes checked by default ?

5
JCash
Re: "Receive occasional email notices"
  • 2011/10/17 14:20

  • JCash

  • Just popping in

  • Posts: 66

  • Since: 2011/2/22


About I modified the wrong file (class/ registerform.php), the right seems to be www/ register.php

$user_mailok = (isset($_POST['user_mailok']) && intval($_POST['user_mailok'])) ? 1 : 0;

has to be

$user_mailok = (isset($_POST['user_mailok']) && intval($_POST['user_mailok'])) ? 0 : 1;

Solved.

Login

Who's Online

396 user(s) are online (281 user(s) are browsing Support Forums)


Members: 0


Guests: 396


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits