FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Show all users email address by default in registration?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Show all users email address by default in registration? [message #21804] Fri, 17 December 2004 17:45 Go to next message
rickd is currently offline  rickd   United States
Messages: 7
Registered: December 2004
Karma: 0
Junior Member
Hi.

I want to set the user registration page so that the default for
Show Email Address is YES.

How/where do I make this change?

Thanks.

RickD
Re: Show all users email address by default in registration? [message #21805 is a reply to message #21804] Fri, 17 December 2004 18:20 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
modify register.php.t

FUDforum Core Developer
Re: Show all users email address by default in registration? [message #21806 is a reply to message #21804] Fri, 17 December 2004 18:40 Go to previous messageGo to next message
rickd is currently offline  rickd   United States
Messages: 7
Registered: December 2004
Karma: 0
Junior Member
Hi.

I found the line for Show Email Radio, but I have no knowledge of the coding used here. What must I change to switch the default value to Show Email = Yes?

Sorry for such basic questions, but this is all very new.

Cheers.

RickD
Re: Show all users email address by default in registration? [message #21807 is a reply to message #21806] Fri, 17 December 2004 18:45 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to change:
$uent->users_opt = 4488182;
to
$uent->users_opt = 4488183;


FUDforum Core Developer
Re: Show all users email address by default in registration? [message #21808 is a reply to message #21804] Fri, 17 December 2004 19:46 Go to previous messageGo to next message
rickd is currently offline  rickd   United States
Messages: 7
Registered: December 2004
Karma: 0
Junior Member
Hi.

I'm running version 2.68

In the register.php.t file I have this text shown below. The value 4488116 appears where I think you are referring to 4488182.

For this version, what value should I use?

Thanks again....RickD

/* When we need to create a new user, define default values for various options */
if (!__fud_real_user__ && !isset($_POST['prev_loaded'])) {
$vars = array_keys(get_object_vars($uent));
foreach ($vars as $v) {
${'reg_'.$v} = '';
}

$uent->users_opt = 4488116;
if (!($FUD_OPT_2 & 4)) {
$uent->users_opt ^= 128;
}
if (!($FUD_OPT_2 & Cool) {
$uent->users_opt ^= 256;
}
Re: Show all users email address by default in registration? [message #21809 is a reply to message #21808] Fri, 17 December 2004 19:47 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Just change 4488116 to 4488116 | 1

FUDforum Core Developer
Re: Show all users email address by default in registration? [message #21810 is a reply to message #21809] Fri, 17 December 2004 20:27 Go to previous messageGo to next message
rickd is currently offline  rickd   United States
Messages: 7
Registered: December 2004
Karma: 0
Junior Member
Hi.

I made the change, rebooted, restarted the servers, but the
default option is still set NO.

I then uploaded the file using File Manager, rebooted, etc..., and the default is still unchanged.

Is there another step I need to perform to make the Show E-mail default to YES?

Thanks again.

Rick D
Re: Show all users email address by default in registration? [message #21816 is a reply to message #21810] Sat, 18 December 2004 17:18 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to rebuild the theme after making source code changes.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Qmail Piping to mailing list does not work.
Next Topic: Searching on "multiword phrases"
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 22:16:15 GMT 2024

Total time taken to generate the page: 0.02560 seconds