View Single Post
Old 06-09-2009, 07:38 AM   #3 (permalink)
jamiemac2005
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,884
OS: Vista, various linux distros


Re: Admin controlled, user testimonials

They way i'd go about it is having a "testemonials" table in your db, with a "status" column, with a numeric code to represent whether the testemonial has been approved(0="pending", 1="approved", 2="declined" or something, you could even just delete the declined testemonials). Since you haven't given a language i can't knock out any code...

Then on your testomonials page have a query that selects all the testemonials which have a status of "1", and echos them on the page, then in your admin side, a form which lists the testemonials with a status of "0", and gives a checkbox or similar to approve/disapprove a testemonial...

It's easily done, it just takes a bit of head work and time.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline   Reply With Quote