1
tmreg
Taking away the option of not recieving emails
  • 2006/11/20 1:15

  • tmreg

  • Not too shy to talk

  • Posts: 137

  • Since: 2006/7/20


I am trying to figure out a way I can not give new users the option to not accept administrator emails. taking away the option on the form is not as hard as making sure the default is "yes". People only register for my site to get on a newsletter mailing list and it makes it hard when they check no and I have to change them manually.

any thoughts?
-Matt

2
hervet
Re: Taking away the option of not recieving emails
  • 2006/11/22 12:23

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


in the file called /xoops/register.php, replace this line :
$user_mailok = (isset($_POST['user_mailok']) && intval($_POST['user_mailok'])) ? 0;


with :
$user_mailok 1;


but it's not a very good idea

Login

Who's Online

284 user(s) are online (239 user(s) are browsing Support Forums)


Members: 0


Guests: 284


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