adding moderation to a community site

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
CraniumDesigns
Forum Newbie
Posts: 18
Joined: Fri Nov 07, 2003 1:35 am

adding moderation to a community site

Post 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?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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.
Post Reply