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