दिसम्बर 11 2017 20:32:49
Language Switcher
नेविगेशन
· Start/घर
· Downloads/डाउनलोड
· Faq/एफ.ए.क्यू
· Forum/चर्चा मंच
· Weblinks/वेब लिंक्स
· Rules/नियम
· Privacy/गोपनीयता नीतियाँ
· Contact/संपर्क करें
· Search/खोज करें
· Advance Fusion Search
बॉक्स चिल्लाऊँ
You must login to post a message.

24-07-2017 21:53
Hello all members.
View Thread
Who is here? 1 guest(s)
All MODs and their Supported Threads goes here in this Section.
 Print Thread

[MOD]Publish all submited news as draft

Creator
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:
Download source  Code
$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:
Download source  Code
$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 10:49
 
http://www.samuel.cuccfree.org
Wanabo
Great idea!
Cool
 
Creator
Wanabo wrote:

Great idea!


Grin I have problem like this. So, after i edit submission.php, problem solved,Grin
 
http://www.samuel.cuccfree.org
Jump to Forum:
New Thread Post Reply
Gebruik BBcode of HTML om naar; '[MOD]Publish all submited news as draft', te verwijzen!
BBcode:
HTML:
उपयोगकर्ता ऑनलाइन
· अतिथि ऑनलाइन: 1

· सदस्य ऑनलाइन: 0

· कुल सदस्य: 75
· नवीन सदस्य: bacchanal
लॉग इन
उपयोगकर्ता नाम

पासवर्ड



अभी तक सदस्य नहीं?
रजिस्टर करने के लिए यहाँ क्लिक करें.

पासवर्ड भूल गए?
नए पासवर्ड यहाँ अनुरोध करें.
अंतिम देखा उपयोगकर्ताओं
Your ad here below?
Website Version

Download latest
PHP Fusion Package
This Website is using PHP Fusion v7.02.07 as Current Version.

Portfolio
· BetterClimate.Net
· ComplaintSupport.Com
· Daily-Breaking-News.Com
· Kidiot.Org
· Php-Fusion.Asia
· Php-Fusion.Cn
· Php-Fusion.Fr
· Php-Fusion.Org
· Php-Fusion.Start-Pages.Com
· Rain-Radar.Com
· Speed-Testing.Net
· Start-Pages.Com
· WebhostingTrouble.Com
· WebmasterTrouble.Com
551,374 unique visits