1
muhdem
registiration form
  • 2005/4/20 21:42

  • muhdem

  • Just popping in

  • Posts: 4

  • Since: 2004/3/12


How can we change the no to yes at registation form
"Receive occasional email notices from administrators and moderators? "
sacond quastion;in standard how can we change the private notifivation yo e-mail notification after approvinf a news?
thanks

2
hervet
Re: registiration form
  • 2005/4/23 7:01

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


For the first question, it is already checked to yes.
If you want to check no by default, edit the file called /xoops/include/registerform.php adn replace the line :
Quote:

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

with :
Quote:

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


For the second question, I did not tested it but try this.
Edit the file /xoops/register.php and after the line 200, add :
Quote:

$newuser->setVar('notify_method',2);

3
macmend
Re: registiration form
  • 2005/5/26 0:13

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


except in mine it looks like this:

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

and this defaults to no

so where does the 1 or 0 go or is this a change and needs something different?

4
bluenova
Re: registiration form

I'd also like to know this. Any body know what needs to be changed?

5
bluenova
Re: registiration form

Resized Image

6
Mithrandir
Re: registiration form

where is the $user_mailok value set?
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

7
bluenova
Re: registiration form

That's what I'm wandering cause in:
/xoops/include/registerform.php

it just has:

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

And in /xoops/register.php I can't see anything defining the defult to be '0' (no)

8
bluenova
Re: registiration form

Just to clarify this is for XOOPS 2.0.13, any ideas what needs to be changed to make the default value of 'Receive occasional email notices from administrators and moderators?' 'Yes' (1)

9
bluenova
Re: registiration form

Bump

10
errolalvarez
Re: registiration form

Try this line :

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

here is where it takes the changes

I hope it works for you

Login

Who's Online

261 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 261


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