adding moderation to a community site
Moderator: General Moderators
-
CraniumDesigns
- Forum Newbie
- Posts: 18
- Joined: Fri Nov 07, 2003 1:35 am
adding moderation to a community site
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?
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.
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;
and do whatever.
Just example code to show ideas. Hope that helped.
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)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 nameJust example code to show ideas. Hope that helped.