Page 1 of 1

adding moderation to a community site

Posted: Thu Jan 08, 2004 7:08 pm
by CraniumDesigns
how can i set up my site to email me whenever a new person registers, so that i can approve them before they are fully activated?

Posted: Thu Jan 08, 2004 7:21 pm
by JAM
Depending on how your site actually works (codewise) there are numerous of ways. One being;

Upon registration, you add the user into a database table as usual, but using TRUE/FALSE, 1/0 or similiar as a value in a field.

Code: Select all

insert into table values('JAM', 'jam@email', 0)
In this example, think of fields as name, mail and activated.

After the actual code of the above insert, you add a mail() function that mails any information required to you. Then browse to a page that lists;

Code: Select all

select * from table where activaded = 0 order by name
and do whatever.

Just example code to show ideas. Hope that helped.