Author |
Topic  |
|
Jonathan8146
Starting Member
21 Posts |
Posted - 21 December 2007 : 05:55:48
|
Using latest version with MS SQL
I have two questions relating to the registration process. I have the forum application set up to use NT login credentials but would like to enhance it a bit, if possible.
Q1) As the administrator I do not want to have to get involved in the day to day running of the many forums that may be created once I have initially created them. I have managed to make a modification so that moderators of a forum can add and remove other moderators to that forum, but can't see how I initially automatically get members into the list of "potential" moderators. I think I need to change their M_LEVEL from 1 to 2 when they are first registered, but can't see where to make the necessary code change.
Q2) Also when new people become members I want to be able to automatically pick up their e-mail address from AD and add that to their registration details. Again, I cannot see where to make the necessary code changes to do this.
Any help gratefully appreciated, even if just to say no, can't be done. |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 21 December 2007 : 10:03:19
|
1. You want to make all members potential moderators?
2. Must say that don't know the NT auth code, but should be one of the procedures NTauthenticate, ChkAccountReg, NTuser. Haven't looked at them, so have a look. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
Jonathan8146
Starting Member
21 Posts |
Posted - 21 December 2007 : 10:12:12
|
1) Yes. Basically, I don't want to have to keep looking at the forums. Once I've created a forum the person who requested that forum will be made a moderator and can then add/remove additional moderators. I've enabled that bit, but as far as I can see I, as the administrator, still have to make members potential moderators, i.e. M_LEVEL = 2. I'd like to change things so that when new members join, rather than be M_LEVEL = 1 they are M_LEVEL = 2 but I can't see where that bit occurs.
2) I was afraid you might say that. My eyes are getting very tired scanning the code, but I'll persevere. |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 21 December 2007 : 10:29:29
|
I made some changes to the NT Auto-login code a long time ago, so the details are a little fuzzy... If memory serves, you'll need to change NTAuthenticate() in inc_func_common.asp to grab the information you want and store it in a Session variable and/or the cookie. Then you'll need to go to register.asp and modify the code that adds a new user to actually use that information. All I had done was use it to grab their full name for the first/last name and use their NTLogin as their user name.
Never bothered with the e-mail since our system is set up so if you just give the NT Username in the To: etc. it will get routed to the right person. 
HTH |
 |
|
Jonathan8146
Starting Member
21 Posts |
Posted - 21 December 2007 : 10:50:43
|
Thanks. I'll give it a look when my eyes stop itching. |
 |
|
|
Topic  |
|