View Thread
All MODs and their Supported Threads goes here in this Section.
[MOD]Publish all submited news as draft
|
|
Creator |
Posted on 21-12-2012 18:56
|
Admin Posts: 17 Joined: 20/12/2012 |
If you have website, when a member submitted news at your website. After you published, news was visible to all members/public. Sometimes, we create user groups, and member posted news for one of your group. For example, if one of your member posted news for one of your user group(eg.Verified), if you published that news, all members can see that post. So, you can published submitted news as draft and from admin panel, you can again published it for only Verified group. To do this, you need to edit submission.php at administrator folder. Open it and find this code: Code Download source $result = dbquery("INSERT INTO ".DB_NEWS." (news_subject, news_cat, news_news, news_extended, news_breaks, news_name, news_datestamp, news_start, news_end, news_visibility, news_reads, news_allow_comments, news_allow_ratings) VALUES ('$news_subject', '$news_cat', '$news_snippet', '$news_body', '$news_breaks', '".$data['user_id']."', '".time()."', '0', '0', '0', '0', '1', '1')"); and changed it to: Code Download source $result = dbquery("INSERT INTO ".DB_NEWS." (news_subject, news_cat, news_news, news_extended, news_breaks, news_name, news_datestamp, news_start, news_end, news_visibility, news_reads, news_allow_comments, news_allow_ratings, news_draft) VALUES ('$news_subject', '$news_cat', '$news_snippet', '$news_body', '$news_breaks', '".$data['user_id']."', '".time()."', '0', '0', '0', '0', '1', '1', '1')"); After you click Publish News button, news will be saved as draft and from admin panel, you can again published it for verified group. - Sorry for my bad english. Edited by Creator on 22-12-2012 05:19 |
|
|
Wanabo |
Posted on 21-12-2012 18:59
|
Super Admin Posts: 30 Joined: 27/12/2010 |
Great idea!
|
|
|
Creator |
Posted on 21-12-2012 19:03
|
Admin Posts: 17 Joined: 20/12/2012 |
Quote I have problem like this. So, after i edit submission.php, problem solved, |
|
Jump to Forum |
Use BBcode or HTML to refer to; '[MOD]Publish all submited news as draft'
BBcode: | |
HTML: |