Hongmu Notes
pbootcms common code storage

pbootcms common code storage Program Notes PbootCms

1. When using pbootcms for data collection, if you wish to configure a scheduled publishing task, you can add the following code to your PHP publishing script: if (file_exists('num.txt')) {$updata_num = file_get_contents('num.txt'); $updata_num++;...
👁 228
pbootcms ajax no refresh loading next page technology

pbootcms ajax no refresh loading next page technology Program Notes PbootCms

JS code: // Define some basic variables // `Page` represents the current page number, calculated as `{page: current} + 1` – for example, this would be the second page; `parseInt` ensures that this value is of type `Int`. `var Page = parseInt('{page: current}') + 1;` // `Num` represents the number of items per page; by default, the list displays 2 items per page,...
👁 249
Customer service code on the side of the website Foldable ball customer service display

Customer service code on the side of the website Foldable ball customer service display Summary of pitfalls

First, the HTML code: <section id= "cebian"> <div class= "all close"> <div class= "shang"> <div class="mune&q...
👁 155
Empire cms gets the pictures inside the content php

Empire cms gets the pictures inside the content php Program Notes Empire cms

if(empty($add['titlepic'])){ $str = $add['newstext']; $isMatched = preg_match(&quot;/&lt;img .*?(?=src)src=\&quot;([^\&quot;]+)\&quot;/si&quot;, $str,…
👁 200
Imitate the bottom html of a Douyin footer

Imitate the bottom html of a Douyin footer Summary of pitfalls

CSS code: * {box-sizing: border-box; margin: 0; padding: 0;} a {text-decoration: none; color: #fff} #footers.footer {background: #171725; min-height...
👁 116
Website access to Baidu map

Website access to Baidu map Summary of pitfalls

Now, define an HTML element with an `id` attribute: `<div id= "maps">` `<%/div>` Then, include the Baidu JS script: `<script src= "//api.map.baidu.com/api?type=webgl&v=1.0&ak=IqqChZ...">`
👁 216
Empire cms 4 million article homepage high-efficiency calling code

Empire cms 4 million article homepage high-efficiency calling code Program Notes Empire cms

Due to the relatively low server specifications, using SQL's `RAND()` function for randomization is definitely not feasible—it's too slow. Therefore, I changed my approach: I first created a table with two fields—one for the article ID and one for the category ID—and then used this table to perform region-based randomization. This approach enables efficient randomization. However, there's a problem: relying solely on SQL isn't reliable, so I wrote some PHP code. After testing, the homepage loads within two seconds—but...
👁 210
What are the call tags of pbootcms content page?

What are the call tags of pbootcms content page? Program Notes PbootCms

Content Detail Page Tag – Scope of Use: To be used on content detail pages, including both single-page and list-based detail pages. – Function: Outputs relevant information about the current content: {content:id} – Content ID; {content:scode} – Category Code; {content:subscode} – Subcategory Code; {content:sortname} – Category Name; {content:su... – Subcategory Name.
👁 267
pbootcms list page call

pbootcms list page call Program Notes PbootCms

1. The current section content list `{pboot:list} <a href= "[list:link]">[list:title]</a> </a> {/pboot:list}` should only be used on list pages and supports pagination; it can only be used once per page. Otherwise: older versions may experience pagination conflicts, while newer versions may display identical content....
👁 341
pbootcms paging call

pbootcms paging call Program Notes PbootCms

Here's an example!<br/>--Pagination--<br/>{pboot: if ({page:rows}> 0)}<br/><nav aria-label= "Page navigation" class= "my-4"><div class= "pagin...">
👁 269
1 294 295 296 297 298 315

🔥 Popular articles

Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3752
Imperial cms imitation website tutorial corresponding notes

Imperial cms imitation website tutorial corresponding notes Program Notes Empire cms

Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq1810216796 QQ exchange group: 9589723231 Imperial cms website installation. Hello everyone, welcome to learn the imperial cms imitation website tutorial. I am Hong Mu qq: 1810216796 qq exchange group: 958972323 Build an imperial program. If you have a server and have built an imperial website on the server, then...
👁 3413
Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014

Empire cms7.5 payment upgraded and optimized version of the library sample automatically generates word/PDF documents paid copy download with payment system member center whole site template source code sitemap Baidu push + installation tutorial 014 Practical Collection empire template

This set of templates has a complete member center on mobile and PC. The member center template is also very good! By the way, there are also corresponding locomotive collection rules! Regarding installation, upload the direct installation version, install it directly, and then restore the data in the background. There is a view more on the mobile phone. If there is a problem, you can copy the view more code in index.js on the PC. If it has not taken effect yet, please check whether the js file renderings are referenced...
👁 2697