Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Editing Default Forum Preference Settings
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Editing Default Forum Preference Settings

 Post Reply Post Reply
Author
cnoblit View Drop Down
Newbie
Newbie
Avatar

Joined: 27 April 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote cnoblit Quote  Post ReplyReply Direct Link To This Post Topic: Editing Default Forum Preference Settings
    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.

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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,

Back to Top
cnoblit View Drop Down
Newbie
Newbie
Avatar

Joined: 27 April 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote cnoblit Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
cnoblit View Drop Down
Newbie
Newbie
Avatar

Joined: 27 April 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote cnoblit Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.