19, July 2008

Approve comments before displaying them. I know most of it but have a question. - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Approve comments before displaying them. I know most of it but have a question.
« previous next »
Pages: [1] Print

Author Topic: Approve comments before displaying them. I know most of it but have a question.  (Read 353 times)
My Name is Enigo Montoya
*
Posts: 33
188 credits
Members referred : 0


« on: Feb 24, 2007, 06:57:44 AM »

I know how to build the form and write the info to the database...and I know how to create a display page to pull the info from the database.  What I would like to have is a page in the middle where the site admin can go in and approve comments/testimonials and they would only show on the display page once they have been approved.

Form page > admin page(post fields to this page in form fields so they can be edited if needed) > approved comments page.

It would probably be nice to have a delete and approve button on the admin page, and I have a good idea of how this can be built, but I am not sure how once something is approved to send it to the display page.  Many sites also use this for comments you may make about a photo or other item, the comments are moderated and then they are displayed after approval.  Any help would be appreciated.

Thank you,
Brad
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6277
38488 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Feb 24, 2007, 08:28:52 AM »

Hi,

work that way:

- set a value like ''show' to no in the database (default)
- after the data is send to the database send an email to the admin with a link inisde the email use inside the link there is the ID from the record.
- if the admin clicks the link the value for 'show' is set to yes (for the record with this ID)

show only comments (records) on your site where the value of 'show' = yes


Last blog : 4th of July Lottery from TemplateMonster.com
My Name is Enigo Montoya
*
Posts: 33
188 credits
Members referred : 0


Re: Approve comments before displaying them. I know most of it but have a quest
« Reply #2 on: Feb 25, 2007, 04:56:59 AM »

Olaf,

Thank you for your reply.  I had thought about sending an email notification when someone submitted a comment, so including a link they can click to activate the comment makes since.  I will try some things out and see what I can come up with.

Thanks!
Brad
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6099
Tags : testimonials admin page approve comments Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Approve comments before displaying them. I know most of it but have a question.
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 19, 2008, 07:05:34 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.662
Total Topics: 7.373
Total Members: 3.693
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: talelmouaada

18 Guests, 3 Users online :

12 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.