Author |
Topic  |
Carefree
Advanced Member
    
Philippines
4212 Posts |
Posted - 06 May 2008 : 01:45:34
|
I would like a mod that allows different portions of the board to be automatically blocked from under-aged visitors/members. For example, one of the boards I visit occasionally has an adult humor section - and the mods have to review users by birthdate & manually modify the access lists to let people in after they become of age.
That is a bit more effort than I want to put into it. If we could use a check DOB string and if that particular section of the board had an age restriction in effect, the young'ns would be disallowed.< |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 15 May 2008 : 14:12:22
|
It should be possible, but some of our delightful 'yoofs' or 'minors', can easily submit a DOB that allows access permissions.< |
 |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 15 May 2008 : 15:04:45
|
yes but, what if that forum was hidden from younger people they wouldnt know its there unless they initinally on registration supplied an adult age< |
© 1999-2010 MaD2ko0l |
 |
|
Carefree
Advanced Member
    
Philippines
4212 Posts |
Posted - 15 May 2008 : 15:24:49
|
Of course, but then we (as system operators) are covered, we've at least complied with the intent of the law.
I have an idea on how to write this, I'll start on it as soon as I finish the other two which I've promised.< |
 |
|
phy1729
Average Member
  
USA
589 Posts |
Posted - 15 May 2008 : 17:46:14
|
Do you want the age limit to be in conjunction with another forum type or a separate forum type all together?< |
 |
|
Carefree
Advanced Member
    
Philippines
4212 Posts |
Posted - 16 May 2008 : 01:01:03
|
I want the age restriction to work throughout the forums, & either a toggle or a checkbox for the admins to control it within each forum or in a list like the forum order control page.< |
 |
|
Carefree
Advanced Member
    
Philippines
4212 Posts |
Posted - 16 May 2008 : 01:13:33
|
I thought of using the User Groups mod (but not really necessary), adding a global variable value, and then having it check along with the Moderator check.
Alternatively, could use User Groups & determine which forum categories should be off-limits, add them to a single group, & have the new user registration automatically place minors into a group that doesn't have access.< |
Edited by - Carefree on 16 May 2008 05:13:23 |
 |
|
phy1729
Average Member
  
USA
589 Posts |
Posted - 16 May 2008 : 07:04:14
|
I would add another DB column to TOPICS that holds the minimum age perhaps called T_Min_Age. Did you have another way to approach this that you would prefer?< |
 |
|
Carefree
Advanced Member
    
Philippines
4212 Posts |
Posted - 16 May 2008 : 09:38:12
|
Let's not go all the way to topic level, age-restricting by forum is sufficient. I'd rather avoid the unnecessary labor of having to set age limits on each/every post. There's already a minimum age for registration, but it leaves a gap for the teen-aged minors (which I'd rather not fill by a visit to the Feds explaining why some sick pervert was using my board to reach teeny-boppers).< |
 |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
|
phy1729
Average Member
  
USA
589 Posts |
Posted - 16 May 2008 : 18:00:04
|
quote: Originally posted by Carefree
Let's not go all the way to topic level, age-restricting by forum is sufficient. I'd rather avoid the unnecessary labor of having to set age limits on each/every post. There's already a minimum age for registration, but it leaves a gap for the teen-aged minors (which I'd rather not fill by a visit to the Feds explaining why some sick pervert was using my board to reach teeny-boppers).
I meant FORUM oops. I'll have time next Thursday to work on it if you don't get there first.< |
 |
|
GarethMoore1979
Junior Member
 
United Kingdom
220 Posts |
Posted - 16 May 2008 : 18:10:53
|
haha.... your 72 years old- "your too old, get out!!!!" love it!< |
 |
|
Carefree
Advanced Member
    
Philippines
4212 Posts |
Posted - 18 May 2008 : 20:11:40
|
In the bottom of inc_func_member.asp, there are routines which calculate a member's age from DOB. They're tiny, so I'll include them.
I have tried calling this function in several ways to get an age for comparison, but I get a variety of "you're so dumb" messages from my debugger. Would somebody who's used to this bit lend a hand?< |
 |
|
Carefree
Advanced Member
    
Philippines
4212 Posts |
Posted - 25 May 2008 : 08:10:16
|
Here's a routine I wrote for this purpose; it's not doing what I expect it to do, and I'll drive myself batty figuring out why.
Part 1 (in red) works. I've done an output to screen of MMAge and got what I needed.
Part 2 (in green) does not work. It doesn't retrieve the UserGroup_ID from the table. Thus, part 3 is never called and the process fails.< |
 |
|
cripto9t
Average Member
  
USA
881 Posts |
Posted - 25 May 2008 : 12:08:57
|
I may be off the mark, but I think you're missing something.
strSql = "SELECT USERGROUP_ID FROM " & strTablePrefix & "USERGROUP_USERS " &_
"WHERE MEMBER_ID = " & MemberID
Set rsGroups = Server.CreateObject("ADODB.Recordset")
rsGroups.open strSql, my_Conn
if rsGroups.EOF or rsGroups.BOF then
'some error msg
else
USERGROUP_ID = rsGroups("USERGROUP_ID")
end if
rsGroups.close
set rsGroups = Nothing
< |
_-/Cripto9t\-_ |
 |
|
Carefree
Advanced Member
    
Philippines
4212 Posts |
Posted - 25 May 2008 : 17:26:11
|
That fixed part 2, thanks. I had to rewrite part 3, but it now works. Now I have to rewrite the register.asp portion of automatically assigning people (minors) to the minor User Group and this will be done.< |
 |
|
Topic  |
|