Print Page | Close Window

Editing Default Forum Preference Settings

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=10281
Printed Date: 30 March 2026 at 7:19am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Editing Default Forum Preference Settings
Posted By: cnoblit
Subject: Editing Default Forum Preference Settings
Date Posted: 04 May 2004 at 10:28am

Kudos to Bruce, MadDog, Pegraso and the many other Mod Builders.

For new registration I want to edit the default preferences for:

  • Notify me of replies to posts
  • Notify me by email when I receive a Private Message

These radio buttons presently default to "No" (False) and -- for new registrations -- I want them to default to "Yes" (True).

I beliee that the code is here:

<% = strTxtYes %><input type="radio" name="replyNotify" value="True" <% If blnReplyNotify = True Then Response.Write "checked" %> />&nbsp;&nbsp;<% = strTxtNo %><input type="radio" name="replyNotify" value="False" <% If blnReplyNotify = False Then Response.Write "checked" %>

However, I am not sure how to modify this code so that only new registrations default to "Yes/True".

Help?

Thank you.



-------------
Chris Noblit
BoRg Rules



Replies:
Posted By: dj air
Date Posted: 04 May 2004 at 2:08pm

<% = strTxtYes %>

<input type="radio" name="replyNotify" value="True" <% If blnReplyNotify = True OR lngLoggedInUserID = 2 Then Response.Write "checked" %> />&nbsp;&nbsp;<% = strTxtNo %><input type="radio" name="replyNotify" value="False" <% If blnReplyNotify = False AND NOT strMode = "reg" Then Response.Write "checked" %>

the above code will set the yes radio button to true if blnReplyNotify = True or the user is a guest (which they would be if on the page registering)

the false one is checked/selected when blnReplyNotify = False and then page is not a registration page,



Posted By: cnoblit
Date Posted: 04 May 2004 at 2:47pm

Thanks for the response dj air. I modified my register.asp code with your suggestion, but "Notify me of replies to posts" still defaults to "No" for a new member registration.

Here is my modified register.asp code:

<% = strTxtYes %><input type="radio" name="replyNotify" value="True" <% If blnReplyNotify = True OR lngLoggedInUserID = 2 Then Response.Write "checked" %> />&nbsp;&nbsp;<% = strTxtNo %><input type="radio" name="replyNotify" value="False" <% If blnReplyNotify = False AND NOT strMode = "reg" Then Response.Write "checked" %>

Any ideas?

Thanks again.



-------------
Chris Noblit
BoRg Rules


Posted By: dj air
Date Posted: 05 May 2004 at 9:19am

firstly when registering is the yes checked as you wanted.

try this one

<% = strTxtYes %><input type="radio" name="replyNotify" value="True" <% If blnReplyNotify = True OR lngLoggedInUserID = 2 Then Response.Write "checked" %> />&nbsp;&nbsp;<% = strTxtNo %><input type="radio" name="replyNotify" value="False" <% If blnReplyNotify = False AND NOT (strMode = "reg" OR strMode = "new") Then Response.Write "checked" %>

see if that works



Posted By: cnoblit
Date Posted: 05 May 2004 at 10:13am

WooHoo! Worked like a charm this time! Thanks a million dj.

It would be a nice enhancement if there was an administrative option to change the defaults for new user registration.

Thanks again!



-------------
Chris Noblit
BoRg Rules



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net