How do I make a site "age restricted" ?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   How do I make a site "age restricted" ?
Amras_Ancalimon
CZ Super Newbie
Amras_Ancalimon has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Call Centre Customer Advisor
Age: 53
Gender: Male
Status: Offline
Joined: Oct 17, 2004
0.01 posts per day
Posts: 63
Points: 3,249
   
I have a question with a difference.......

I've been creating a site for the wife, for mums-to-be & existing...

[ Register or login to view links on this board.]

I have already set up a hack so users don't get the confirmation
email once registered, they can log straight in, (No Mail YA HAck).

I am also in the process of installing a hack so that new members
MUST enter their date of birth during registration.

How can I set her site up where would-be members have to be
over a certain age..... say 16 ?



Back to top Reply with quote
#2   re: How do I make a site "age restricted" ?
echo
CZ Wiz
 Codezwiz Site Donator
Gender: Male
Status: Offline
Joined: Oct 04, 2003
0.15 posts per day
Posts: 1147
Points: 93
   
What version of Nuke are you using? I found a hack over at [ Register or login to view links on this board.] that lets you add 5 more fields to the registration form, so far there are 4 versions available: Nuke 6.9,7.0, 7.1 and 7.3. Here's a quote from the description:




A Module for PHP-Nuke which allows Administrators to add up to five admin defined text fields to the registration form.


I'm sure there are many ways to achieve this, this is only one of such.



Back to top Reply with quote
#3   re: How do I make a site "age restricted" ?
Amras_Ancalimon
CZ Super Newbie
Amras_Ancalimon has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Call Centre Customer Advisor
Age: 53
Gender: Male
Status: Offline
Joined: Oct 17, 2004
0.01 posts per day
Posts: 63
Points: 3,249
   
For the site I have created, I am using nuke 7.3


I have d/l a copy of the latest version of that hack, plus the 7.3 update.
But whether it will do what I want, I don't know. There is nothing in any
of the descriptions to say you can do anything like what I want icon_cry.gif icon_rolleyes.gif



Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Your going to have to do some editing to the to function new_user and the database. After you have added your field in the nuke_users table just add an input for it.

EXAMPLE:
Age: <input type='text' name='age' size='3'>


Then in the function checknewuser you will need to add a check for it.

EXAMPLE:

//if age less then 16
if ($age < 16) {
echo "User under 16 are not permitted to join";
} else {
  rest of function
}


Then you just need to trust whomever is joining to give the right information.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   re: How do I make a site "age restricted" ?
Amras_Ancalimon
CZ Super Newbie
Amras_Ancalimon has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Call Centre Customer Advisor
Age: 53
Gender: Male
Status: Offline
Joined: Oct 17, 2004
0.01 posts per day
Posts: 63
Points: 3,249
   
Thanks for the coding Telli,

As soon as I add the hacks, I will instigate the code you've
listed. Unfortunately coding isn't my forte so I gotta rely
on helpful folks like yourself LOL

I agree though, if someone does enter false information
you ain't going to know about it, unless of course there
is extra coding that can be added to, to let Admin know
if a user has tried to register more than once



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum