Hongmu Notes
Home Program Notes Empire cms

Empire cms

Commonly used and practical Empire CMS codes – a collection of code snippets utilized in Empire CMS, such as those for creating and invoking navigation menus, implementing pagination, and performing various database queries, among others.

Empire cms retrieves columns based on column id

Empire cms retrieves columns based on column id Program Notes Empire cms

Empire cms calls the column list php code based on the column id<?php /******Parameter configuration begins******/ //If the parameters are left blank, all will be called $classid = ""; /******Parameter configuration ends******/ if(empty($classid)){ $where = "isla…
👁 247
Creation of search form for empire cms7.5

Creation of search form for empire cms7.5 Program Notes Empire cms

It's best to carefully review this code before replacing the form you want to clone; otherwise, if any errors occur, I won't be held responsible. <form action= "!--news.url--]e/search/index.php" method= "post" name= "searchform"...
👁 548
How to retrieve the sub-table fields from the Empire CMS list page?

How to retrieve the sub-table fields from the Empire CMS list page? Program Notes Empire cms

To access the content of a sub-table field within a list template, you should use the "list.var support program code." Below is an example of list.var template code used to retrieve the "newstext" field from a news sub-table: $fr=$empire->fetch1("select newstext from {$dbtbpre}ecms_news_data_{$r...
👁 229
Empire cms7.5 adds TAG auxiliary plug-ins in batches

Empire cms7.5 adds TAG auxiliary plug-ins in batches Program Notes Empire cms

This plugin is merely a supplementary add-on; the Empire version does not matter – either 7.5 or 7.2 will work. Duplicate tags will not be successfully inserted. PHP code: <?php require('../e/class/connect.php'); require('../e/class/db_SQL.php'); $link=db_connect(); $e...
👁 242
How to use sql statement to delete all article information in empire cms7.5 and let the ID start from 1

How to use sql statement to delete all article information in empire cms7.5 and let the ID start from 1 Program Notes Empire cms

The Empire CMS system can be completely emptied using the following SQL statements – this includes all article content, categories, tags, and member groups. If you have just purchased a new template and the data contained within it does not meet your requirements, you can use the following SQL commands: `TRUNCATE `[!db.pre!]ecms_news`;` or `TRUNCATE `[!db.pre!]ecms_news_check`...`.
👁 156
Empire CMS uses smart tags to call the "previous article" and "next article" of the current article

Empire CMS uses smart tags to call the "previous article" and "next article" of the current article Program Notes Empire cms

To retrieve the "Previous Article" and "Next Article" codes for the current article using the Lingdong Tag in EmpireCMS: [e:loop={'selfinfo',1, 0, 0, 'id&lt; '.$navinfor[id].'','id desc'}] &lt;a href=&quot;&lt;?php echo $bqsr[titleurl];$pre='tr...
👁 263
Empire cms call search keywords

Empire cms call search keywords Program Notes Empire cms

Pseudo-static search <?php $urls = $_SERVER[&quot;QUERY_STRING&quot;]; $sid = explode(&quot;=&quot;,$urls); $sids = $sid[2]; $res = $empire->fetch1("select...");
👁 222
Empire cms uses sql to replace content field values ​​in batches

Empire cms uses sql to replace content field values ​​in batches Program Notes Empire cms

To perform batch content field value replacement using SQL with Empire CMS, use the following query: `UPDATE phome_ecms_news_data_1 SET newstext = REPLACE(newstext, 'Original', 'Current')`. Note: `phome_ecms_news_data_1` is the name of the data table; you may replace this with any valid table name. `newstext` is the field targeted for batch replacement. This query is designed for batch...
👁 205
The title code of the content page of the empire cms list page

The title code of the content page of the empire cms list page Program Notes Empire cms

Site Name: <?=$public_r['sitename']?&gt;站点链接:[!--news.url--]所有页面的关键词和描述调用代码:&lt;title&gt;[!--pagetitle--] - &lt;?=$public_r['sitename']?> <title>...
👁 378
Empire cms7.5 list pagination title display

Empire cms7.5 list pagination title display Program Notes Empire cms

For websites built using the EmpireCMS software, the title on the category list page is default set to be identical across all pagination pages – meaning the `title` tag remains the same from the first page to the last page of the category list – which can have negative impacts on website optimization. The EmpireCMS list page template tag `!--pagetitle--` returns the page number; to display the text "Page X" (where X is the page number), use the following configuration: `<title>...</title>`.
👁 296
1 7 8 9 10