DedeCms When publishing an article, if the author and source are not filled in, the default source of the page is unknown, and the default author is admin (the ID of the publishing article account). If you do not want to do this, you can modify it according to the following method, and the page will automatically display the author and source.
Modification method:
Open the article_add.php file in your administrator directory (dede by default), find lines 95 to 97, and set the default
//Process the saved content
if(empty($writer))$writer=$cuserLogin->getUserName();
If (empty ($source)) $source='Unknown ';
Change to
//Process the saved content
If (empty ($writer)) $writer='This is the default author ';
If (empty ($source)) $source='This is the default source ';
Pay attention to the text encoding when modifying.
SQL Batch Modify Author and Source
Log in to the administrator background, find "System=>SQL command line tool=>Run SQL command line", and enter the command you need to execute in the box, as follows:
UPDATE dede_archives SET writer='Author you need to modify 'WHERE writer=' ';
UPDATE dede_archives SET source='Source you need to modify 'WHERE source=' ';
If you want to change all sources and authors into a unified source and author, just remove the "where" condition, that is:
UPDATE dede_archives SET writer='Author you need to modify '
UPDATE dede_archives SET source='Source you need to modify '
Statement: All articles on this site, unless otherwise specified or marked, are originally published on this site. No individual or organization is allowed to copy, embezzle, collect and publish the content of this website to any website, book and other media platforms without the consent of this website. If the content of this website infringes upon the legitimate rights and interests of the original author, please contact us for handling.