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...

Apple cms video list tag comparison table (fill in the video sorting tags in the official website document)

Apple cms video list tag comparison table (fill in the video sorting tags in the official website document) Program Notes Apple cms

order sorting order desc reverse order, asc forward order by sorting based on start from which item num gets the number of items ids specifies a set of 1,2,3 ID; type specifies to get the category data all all; 1,2,3 specifies; class specifies an extended category supports multiple actions, comedy tag specifies tag supports multiple aaa, xxxlevel specifies recommended value supports multiple 1,2...
👁 245
How does Empire CMS call the sub-column under the specified parent column?

How does Empire CMS call the sub-column under the specified parent column? Program Notes Empire cms

In the code, $Fclassid = 1;//Parent column ID $SelectClassStyle = 'current'; //The style when currently selected🔒 Hidden content: View after comment<?php //Parent column ID $Fclassid = 1; $SelectClassStyle = 'current'; // Query the first-level menu...
👁 2948
The empire cms picture collection is output and called on the content page

The empire cms picture collection is output and called on the content page Program Notes Empire cms

&lt;? $arrayImg = explode(PHP_EOL,$navinfor['morepic']); foreach($arrayImg as $v): $ImgDataArray = explode('::::::',$v); ?&gt; &lt;li data-responsive=…
👁 231
How do you create the built-in Image Collection and Download fields in Empire CMS?

How do you create the built-in Image Collection and Download fields in Empire CMS? Program Notes Empire cms

Create a field directly in the News table! Image Collection Field: Replace the HTML code in the form with: 🔒 Hidden Content: View after commenting <script> function dopicadd() {var i; var str=""; var oldi=0; var j=0; oldi=parseInt(document.a...
👁 338
EmpireCMS – Quickly modify data titles and title images when creating a clone site, making testing easier.

EmpireCMS – Quickly modify data titles and title images when creating a clone site, making testing easier. Program Notes Empire cms

Modified SQL code for desired effect 🔐 Hidden content: View after commenting. `UPDATE `phome_ecms_news` SET `title` = CONCAT('This is a test article; the article ID is', id, ',', 'Please modify the article in the backend section if needed');` – Quick batch thumbnail setup: Thumbs are configured directly using PHP. PHP code: Randomly retrieve files from a specified folder...
👁 639
EmpireCMS Special Call and Database Table

EmpireCMS Special Call and Database Table Program Notes Empire cms

The built-in thematic fields available for listing calls are: Thematic ID: [!--self.classid--]; Thematic Title: [!--pagetitle--]; Thematic Description: [!--class.intro--]; Thematic Thumbnail URL: [!--class.classimg--]; Thematic list can be queried using the Lingdong Index Tag: [e:loop={"select * fro...
👁 359
EmpireCMS – Frequently Used Function Library Extension (Continuously Updated)

EmpireCMS – Frequently Used Function Library Extension (Continuously Updated) Program Notes Empire cms

Inbound time – shows how many seconds or hours ago the content was published 🔒 Hidden content: View after commenting. Function: `user_beforeTime($givenTime) { $givenDateTime = new DateTime($givenTime); $currentTime = new DateTime(); $time...`
👁 466
EmpireCMS – Optimizing the database by removing the article description field

EmpireCMS – Optimizing the database by removing the article description field Program Notes Empire cms

Delete the `smalltext` summary field; then, for each article query, extract the first 80 characters as the article summary – this is suitable for websites where custom summaries are not required. Supports querying specified database tables. Function: `function user_smalltext($id, $stb, $fontNume = 80,$tabe = 'news') {global $empi...`
👁 277
pbootcms randomly calls articles with high efficiency (not adding rand() to database query)!

pbootcms randomly calls articles with high efficiency (not adding rand() to database query)! Program Notes PbootCms

pbootcms is okay, but the calling method is a bit lacking! I originally wanted to call the article randomly, but I only found random calls. However, this kind of database query sorting is very performance-intensive! Thousands of articles are fine, but tens of thousands or hundreds of thousands of articles, then just wait for it to lag! So I did some research and found that pbootcms supports php tags, which is great! So the calling method that comes with php+, the combination of the two produced the legendary...
👁 420
pbootcms moves content fields to secondary tables (improves website speed)

pbootcms moves content fields to secondary tables (improves website speed) Program Notes PbootCms

In fact, it doesn’t really move! First create a model field: SQL migrate content field to ext content field: 🔒 Hide content: View after comment INSERT INTO ay_content_ext (contentid, ext_contents) SELECT id, content FROM ay_content; UPDATE "mai…
👁 371
1 2 3 4 5 23