Weaving Dream Dedecms Information Publishers publish articles by default automatically approve updates and generate HTML pages

Source: Internet
Author: User

  Weaving Dream Dedecms Information Publishers publish articles by default automatically approve updates and generate HTML pages
  
Always thought that the Dedecms information publisher in the background post, not to administrator audit to show, today a buddy asked me this question. Q: "Can I publish directly and generate HTML automatically, saving you the hassle of not having to be audited by an administrator?" "It's not possible for me to talk to him first, but not to be displayed until the administrator has audited it." Oh, I have spent so long time, such a simple question to answer so layman!
  
Method One: A careful study, there is a way, let the information Publisher's permission to automatically generate HTML after the post article, and automatically generate the list page and the homepage, in the following ways:
  
if (! Testpurview (' A_check,a_acccheck,a_mycheck ') {$arcrank =-1;} Arcrank = 1 means no audit Arcrank = 0 indicates that an article that has been audited has this sentence in the process of the saved code, and Before writing to the database check that there are no permissions, respectively, "Audit any document" "Audit authorization Document" "Audit my published documents" The three, as long as there are one of these three rights, then the published article is already audited, otherwise there is no audit. So the solution is in the background: System settings, user group settings, information Publisher permissions to him plus the "audit My published documents" This permission, by default, does not have this permission. Of course, any of the above three permissions can. Then modify the dede/templets/article_add.htm, the inside of the where adminrank<= ' $urank ' Removed on OK!
  
Method Two: Dede execute sql:update dede_arcrank set adminrank=1 where membername= ' open browsing ';

Recommended reading for small series:

Weave Dream Dedecms Not approved article updated to current time

Weaving Dream Dedecms Information Publishers publish articles by default automatically approve updates and generate HTML pages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.