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 high-efficiency random call tag PHP code

Empire cms high-efficiency random call tag PHP code Program Notes Empire cms

High-efficiency random selection: <?php $num=$empire->num("select tagid from {$dbtbpre}enewstags"); $randnum=100; $randids=''; $randdh=''; for($i=1;$i&lt;=$randnum; $i++)"...
👁 379
Imperial CMS 7.5 function decryption field processing function

Imperial CMS 7.5 function decryption field processing function Program Notes Empire cms

Preface: When adding or modifying fields, you can configure the "Backend Addition Information Processing Function," "Backend Modification Information Processing Function," "Frontend Addition Information Processing Function," or "Frontend Modification Information Processing Function." These allow you to specify separate functions for processing field content; this approach is commonly used for models that have special requirements regarding the storage format of field content. Today, we will briefly explain how to create these processing functions. Basic setup steps: 1. Write the processing function; 2. Import the function...
👁 364
Introduction to common functions of Imperial CMS

Introduction to common functions of Imperial CMS Program Notes Empire cms

I. `esub()` Field Extraction Function Syntax: `esub(string, number of characters to extract, suffix)`. Note: The suffix specifies the content appended after the extracted characters; this parameter can be omitted. Example: `<?=esub('12345678', 6)?>` returns: `123456`; `<=?=esub('12345678', 6, '…')?>` returns: `12...`
👁 253
Determine whether a certain field exists on the empire content page

Determine whether a certain field exists on the empire content page Program Notes Empire cms

$navinfor['befrom'] – simply use an if statement to check it; replace 'befrom' with your own field.
👁 151
The php code of Liang Shang, the secondary column of the empire cms

The php code of Liang Shang, the secondary column of the empire cms Program Notes Empire cms

For any unclear sections, please refer to this article: https://www.4s5.cn/archives/52.html&lt;?php if($class_r[$GLOBALS[navclassid]][bclassid]==0){$classid=$GLOBALS['navclassid'];}else{$cl...
👁 298
Empire CMS list template using php

Empire CMS list template using php Program Notes Empire cms

1. Check the box labeled "Use Program Code"; 2. Assign "list.var" to the variable $listtemp $keyboard = $r['keyboard']; $keyboard_arr = explode(&quot;,&quot;,$keyboard); $keyboard_str = ''; for($i=0;$i...
👁 173
Empire list page calls column alias

Empire list page calls column alias Program Notes Empire cms

&lt;title&gt;&lt;?php $cr=$empire-&gt;fetch1(&quot;select bname from phome_enewsclass where classid='&quot;.$GLOBALS[navclassid].&quot;' limit 1&quot;…
👁 204
Empire CMS batch extracts the first picture of the news text content as a SQL statement for the title thumbnail

Empire CMS batch extracts the first picture of the news text content as a SQL statement for the title thumbnail Program Notes Empire cms

Please back up your database before running the following script! The "News Body Text" field stored in the text file is not available! To use the "News Body Text" field as the primary table, use the following SQL statement: `UPDATE phome_ecms_news SET titlepic = CONCAT(Replace(SUBSTRING_INDEX(SUBSTRING_INDEX(newstext, '"src...`
👁 150
The use of custom fields in Empire Navigation

The use of custom fields in Empire Navigation Program Notes Empire cms

[e:loop={&quot;select classid,classname from {$dbtbpre}enewsclass where bclassid=0 and showclass=0 order by myorder,classid desc&quot;,0,24,0}] &lt;?p…
👁 248
Empire CMS fields, add information processing functions in the background

Empire CMS fields, add information processing functions in the background Program Notes Empire cms

Preface: When adding or modifying fields, you can configure the "Backend Addition Information Processing Function," "Backend Modification Information Processing Function," "Frontend Addition Information Processing Function," or "Frontend Modification Information Processing Function." These allow you to specify separate functions for processing field content; this approach is commonly used for models that have special requirements regarding the storage format of field content. Below is a brief explanation of the basic steps for creating and configuring these processing functions: 1. Write the processing function; 2. Copy the function to e/c...
👁 386
1 6 7 8 9 10