Hongmu Notes
Home Program Notes

Program Notes

In the final analysis, programmers taking notes is an efficient behavior of recording work experience. It can not only record the various technical problems encountered in the process of program development, but also record the beneficial experiences gained in learning technical knowledge. It can both help...

typecho background custom field multi-selection

typecho background custom field multi-selection Program Notes Typecho

Typecho background custom field multi-select code is as follows, perform research, where the multi-select is the value corresponding to the option name, the default is the first one, mainly depends on the subscript $biaosi = new Typecho_Widget_Helper_Form_Element_Select('biaosi',array('1'=>&…
👁 228
PbootCms column highlighting code and detailed explanation of column calling

PbootCms column highlighting code and detailed explanation of column calling Program Notes PbootCms

Current column menu highlighted chestnut: <ul> <li class="{pboot:if(0=='{sort:scode}')}active{/pboot:if}"><a href="/">Website homepage</a></li>…
👁 128
Pbootcms slide code

Pbootcms slide code Program Notes PbootCms

Slide call example: {pboot:slide num=3 gid=1} <a href="[slide:link]" target="_blank"><img src="[slide:src]" alt="[slid…
👁 179
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 calls the specified column according to the parameters in the extended variable

Empire cms calls the specified column according to the parameters in the extended variable Program Notes Empire cms

EmpireCMS retrieves a specified category based on the parameters in the extended variables [e:loop={&quot;select sonclass, classid, classname, classimg from `[!db.pre!]enewsclass` where classid in($public_r[add_home_class...
👁 209
1 17 18 19 20 21 23