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

Home » FUDforum » How To » Defaults in new Profiles
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Defaults in new Profiles [message #10716] Sun, 08 June 2003 12:22 Go to next message
Victor_M is currently offline  Victor_M   United States
Messages: 51
Registered: January 2003
Location: NJ, USA
Karma: 0
Member
When new users register, is there a way to have their profile default settings be different than they are now?

For example, the Email Post Notification is by default set to Yes. I'd prefer to have it default to No. Any way I can do this?
Re: Defaults in new Profiles [message #10722 is a reply to message #10716] Sun, 08 June 2003 16:06 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 the source code of register.php.t

FUDforum Core Developer
Re: Defaults in new Profiles [message #10759 is a reply to message #10722] Mon, 09 June 2003 16:27 Go to previous messageGo to next message
Victor_M is currently offline  Victor_M   United States
Messages: 51
Registered: January 2003
Location: NJ, USA
Karma: 0
Member
Forum version 2.3.8

I changed this in register.php.t

Quote:

*
* If this is users first vist to the registration form setup the
* default values
*/
if ( empty($usr->id) && empty($error) ) {
$reg_display_email = 'Y';
$reg_ignore_admin = 'N';
$reg_email_messages = 'Y';
$reg_pm_messages = 'Y';
$reg_append_sig = 'Y';
$reg_show_sigs = 'Y';
$reg_show_avatars = 'Y';
$reg_show_im = 'Y';
$reg_invisible_mode = 'N';
$reg_notify = 'N';
$default_view = $GLOBALS['DEFAULT_THREAD_VIEW'];
}


But when I tried a new registration, the notify was still set to "Y". Is there something else I need to do?

(The only change I made was $reg_notify = 'N'. While testing I tried changing $reg_ignore_admin to 'Y' but that didnt take either.)

Re: Defaults in new Profiles [message #10760 is a reply to message #10759] Mon, 09 June 2003 16:33 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
Did you rebuild the theme after making the changes?

FUDforum Core Developer
Re: Defaults in new Profiles [message #10764 is a reply to message #10760] Mon, 09 June 2003 17:44 Go to previous message
Victor_M is currently offline  Victor_M   United States
Messages: 51
Registered: January 2003
Location: NJ, USA
Karma: 0
Member
Your a genius prottoss Smile

That did it. Thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problems with PATH_INFO temlate set
Next Topic: Fatal errors, broken PM's and general chaos
Goto Forum:
  

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

Current Time: Fri Nov 22 19:59:55 GMT 2024

Total time taken to generate the page: 0.02223 seconds