1. Which file is the database configuration file of version 7.0?
7.0 version database configuration file:/e/config/config.php
6.6 and below version database configuration file:/e/class/config.php
2. Forgot background login What to do with the authentication code?
View the contents of the "$ecms_config['esafe']['loginauth']" variable in the /e/config/config.php file.
3. If you don’t want to display the “Mall” menu in the background, how do you do this?
Answer: Backend>System>System Parameter Settings>Model Settings: Just check "Mall" for the "Close Backend Menu" item.
4. After changing the column directory address, why is the information page address not updated?
Answer: Because 7.0 directly stores the address in the database, after changing the directory rules, you need to go to: Backend>System>Data Update>Update Information Page Address: Update the content page address in the data table. (Note: Look at the menu on the left, not in the "Data Update Center" page)
5. How to turn off online modification of dynamic page templates
Answer: If you do not want to enable modification of dynamic page templates in the background, you can modify/ The value of the "$ecms_config['esafe']['openeditdttemp']" variable in the e/config/config.php file is 0.
6. Topic comment form
Answer: The topic comment access address /e/pl/?doaction=dozt&classid=topic ID
The topic comment form needs to add:
7. Why does the "Update Topic" page not display the topic? ?
Answer: Because the "Update Topic" page is a separate topic management function designed for users who do not have permission to manage topics. Administrators can set "users who can update topics" when adding a topic, so that even if they do not have permission to manage topics, they can manage and update topics on the topic update page. Authorization is more convenient.
8. Why can’t the rating function on the comment page be used?
Answer: If you want to use the scoring function of the model, you need to add two fields "infopfen" (number of ratings) and "infopfennum" (number of ratings) to the model data table. Detailed steps:
Backstage > System >Manage data table>Manage fields>Add field:
Score field: fill in "infopfen" for the field name, fill in "score" for the field identifier, select "Large Numerical Type (INT)" for the field type, and default for other fields , click submit;
Number of raters field: fill in "infopfennum" for the field name, "number of raters" for the field identifier, select "Large Numerical Type (INT)" for the field type, and default to other fields, click submit;
Two fields After adding, the model can use the scoring function.
Recommended to study "Empire cms tutorial"
9. How to call the topic information in version 7.0?
Answer: To call the topic information, use the "index smart tag" (e:indexloop) instead.
[e:indexloop={index category ID, number of displayed items, operation type, column ID, system model ID, additional SQL conditions}]
Template code content
[/e:indexloop]
10. How to call the recommended information of the topic?
Answer: "Additional SQL conditions" setting of "Index Smart Label":
All recommended information use: 'isgood>0'
Use second-level recommended information: 'isgood=2'
11. What should I do if the number of information in the column is incorrect?
Answer: You can go to the backend>System>Data Update>Data Update Center> to update the number of column information.
12. How to call multi-value fields?
Answer: Multi-value field storage method: multiple values are separated by "||||||", and each option in the value is separated by "::::::". The following is an example of displaying multi-valued fields in a content template:
<?php $morefr=explode('||||||',$navinfor[字段名]); $mfcount=count($morefr); for($mfi=0;$mfi<$mfcount;$mfi++) { $morefrf=explode('::::::',$morefr[$mfi]); ?> 选项1:<?=$morefrf[0]?> 选项2:<?=$morefrf[1]?> 选项3:<?=$morefrf[2]?> 选项4:<?=$morefrf[3]?> ...... <?php } ?>
13. Where is the setting of "Feedback of information processing results to members"?
Answer: You can see the setting options by modifying the information.
14. Why can’t you add the “checked=1” condition when calling with SQL?
Answer: Because the information to be reviewed and the release information in version 7.0 are stored in separate tables, calling the foreground information no longer requires the checked=1 condition, which is more efficient. Just remove this SQL condition.
15. What are the PHP variables on the topic page?
Answer: The current topic ID or current topic subclass ID variable is "$GLOBALS['navclassid']".
When it is a topic subcategory page, the topic ID variable is "$GLOBALS['navinfor']['ecmsbid']". When it is equal to 0, it is a topic page. It is easier to identify the topic page and the topic subcategory page. .
16. When refreshing all information content pages, it prompts "Table '*.phome_ecms_news_data_' doesn't exist"
Answer: The reason is that there is a problem with the data itself. Does the information index table phome_ecms_table name_index have an ID? record of.
Solution: Enter the database and delete the ID records that do not exist in the index table. You can also clean up at the bottom of the data update
The above is the detailed content of Summarize the frequently asked questions about the use of Imperial CMS7.0. For more information, please follow other related articles on the PHP Chinese website!