2011 Posted April 27, 2010 Share Posted April 27, 2010 I have script where Only registered user submit articles but then they get automatically gets published. What i want is Article automatically goes to approval queue and then admin approves them. How can i do that?. Please help me. it means so much to me. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/199924-authors-submit-articles-but-admin-approves-them/ Share on other sites More sharing options...
Alex Posted April 27, 2010 Share Posted April 27, 2010 In the database table for the articles you should have a column used to specifiy whether or not the article has been approved. Say, 0 for unapproved and 1 for approved. By default you can have this column set to 0. You can then create a simple page where you select all of the records from the database that are unapproved (approved = 0) so they can be approved by an administrator. The page that displays the articles would only select articles that have been approved. Quote Link to comment https://forums.phpfreaks.com/topic/199924-authors-submit-articles-but-admin-approves-them/#findComment-1049333 Share on other sites More sharing options...
2011 Posted April 27, 2010 Author Share Posted April 27, 2010 In the database table for the articles you should have a column used to specifiy whether or not the article has been approved. Say, 0 for unapproved and 1 for approved. By default you can have this column set to 0. You can then create a simple page where you select all of the records from the database that are unapproved (approved = 0) so they can be approved by an administrator. The page that displays the articles would only select articles that have been approved. Thanks, That one rang a little bell in my head. I will try that. If anyone have any other answers. Please write them. I really appreciate it. Quote Link to comment https://forums.phpfreaks.com/topic/199924-authors-submit-articles-but-admin-approves-them/#findComment-1049337 Share on other sites More sharing options...
aebstract Posted April 27, 2010 Share Posted April 27, 2010 In the database table for the articles you should have a column used to specifiy whether or not the article has been approved. Say, 0 for unapproved and 1 for approved. By default you can have this column set to 0. You can then create a simple page where you select all of the records from the database that are unapproved (approved = 0) so they can be approved by an administrator. The page that displays the articles would only select articles that have been approved. Thanks, That one rang a little bell in my head. I will try that. If anyone have any other answers. Please write them. I really appreciate it. Nope, that's how you should do it. Quote Link to comment https://forums.phpfreaks.com/topic/199924-authors-submit-articles-but-admin-approves-them/#findComment-1049341 Share on other sites More sharing options...
PFMaBiSmAd Posted April 27, 2010 Share Posted April 27, 2010 About the only thing worth adding would be to use a third value for articles that have been reviewed but rejected so that you don't automatically see them when retrieving new articles awaiting approval. And why not just delete rejected articles you might be asking yourself. Well in most real life applications, data is not actually deleted. Something that might be rejected today, might be usable at a future date and you need to keep a record of who submitted what (perhaps someone keeps submitting similar articles using different usernames and you need some way of tracking who is doing what.) Quote Link to comment https://forums.phpfreaks.com/topic/199924-authors-submit-articles-but-admin-approves-them/#findComment-1049345 Share on other sites More sharing options...
2011 Posted April 27, 2010 Author Share Posted April 27, 2010 In the database table for the articles you should have a column used to specifiy whether or not the article has been approved. Say, 0 for unapproved and 1 for approved. By default you can have this column set to 0. You can then create a simple page where you select all of the records from the database that are unapproved (approved = 0) so they can be approved by an administrator. The page that displays the articles would only select articles that have been approved. Thanks, That one rang a little bell in my head. I will try that. If anyone have any other answers. Please write them. I really appreciate it. Nope, that's how you should do it. Didnt get you Quote Link to comment https://forums.phpfreaks.com/topic/199924-authors-submit-articles-but-admin-approves-them/#findComment-1049350 Share on other sites More sharing options...
2011 Posted April 27, 2010 Author Share Posted April 27, 2010 About the only thing worth adding would be to use a third value for articles that have been reviewed but rejected so that you don't automatically see them when retrieving new articles awaiting approval. And why not just delete rejected articles you might be asking yourself. Well in most real life applications, data is not actually deleted. Something that might be rejected today, might be usable at a future date and you need to keep a record of who submitted what (perhaps someone keeps submitting similar articles using different usernames and you need some way of tracking who is doing what.) you mean something like when user submit the item, the script checks for the almost same title and block them to submit the same titled item twice? Quote Link to comment https://forums.phpfreaks.com/topic/199924-authors-submit-articles-but-admin-approves-them/#findComment-1049351 Share on other sites More sharing options...
PFMaBiSmAd Posted April 27, 2010 Share Posted April 27, 2010 you mean something like when user submit the item, the script checks for the almost same title and block them to submit the same titled item twice? No, no one suggested doing anything like that. The only thing anyone suggested doing was to - use a third value for articles that have been reviewed but rejected so that you don't automatically see them when retrieving new articles awaiting approval. Quote Link to comment https://forums.phpfreaks.com/topic/199924-authors-submit-articles-but-admin-approves-them/#findComment-1049356 Share on other sites More sharing options...
2011 Posted April 27, 2010 Author Share Posted April 27, 2010 Can anyone tell me how can i create the user registration management in http://snewscms.com/ this one? So i can do the stuff easily because the one i have is a old project of mine and a bit complicated. I really appreciate! Quote Link to comment https://forums.phpfreaks.com/topic/199924-authors-submit-articles-but-admin-approves-them/#findComment-1049370 Share on other sites More sharing options...
2011 Posted April 27, 2010 Author Share Posted April 27, 2010 i Know their are few free scripts for registration stuff, and suppose i integrate user script in Snews Cms, then how can i allow users to add pending article in the website? Quote Link to comment https://forums.phpfreaks.com/topic/199924-authors-submit-articles-but-admin-approves-them/#findComment-1049382 Share on other sites More sharing options...
2011 Posted April 27, 2010 Author Share Posted April 27, 2010 Hi Everybody, i'm using http://codecanyon.net/item/php-login-user-management/49008 So my question is, How can i show profile page of users? Please help me with this I dont how can i do that.. that means a lot to me. Please Help me :-\ Quote Link to comment https://forums.phpfreaks.com/topic/199924-authors-submit-articles-but-admin-approves-them/#findComment-1049565 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.