Hongmu Notes
Home Program Notes Addition of message function to pbootcms website
Program Notes PbootCms

Addition of message function to pbootcms website

Addition of message function to pbootcms website

Message board tags

Scope of application: Can be used anywhere on the site
Tag function: used for users to submit messages and retrieve message records

1. Leave a message and submit the form

<form action="{pboot:msgaction}"  method="post">
    联系人:<input type="text" name="contacts" >
    手机:<input type="text" name="mobile" >
    内容:<input type="text" name="content" >
    验证码:<input type="text" name="checkcode" ><img   title="点击刷新"  src="{pboot:checkcode}" onclick="this.src='{pboot:checkcode}?'+Math.round(Math.random()*10);" />
    <button type="submit">提交</button>
</form>

The form submission method is POST, and the field names submitted in the form need to be consistent with the fields added in the background custom form, otherwise the submission will fail.

If you need more fields, please add message form fields in the background custom form, and then add form fields in the front desk.

Label description:

{pboot:msgaction} is the message form receiving address

{pboot:checkcode} is the verification code image address

2. Message record list

{pboot:message num=*}

    <p>[message:contacts]</p>

    <p>[message:content]</p>

{/pboot:message}

The retrieved message records are paginated by default, just use the paging code of the content list.

Content privacy, use interception function:

[message:mobile substr=1,3]****[message:mobile substr=8]  输出效果:187****6563 

Control parameters:

num=* quantity, optional, is the paging size of the retrieved message

page=* Whether to paginate 1 or 0, optional, used to turn off paging

lg=* Retrieve messages in the specified language, optional. If all is set, all languages will be used. If this parameter is not added, the default is the current language (V1.3.7+)

3. Available tags for message record list

[message:n] The serial number starts from 0
[message:i] The serial number starts from 1
[message:contacts] Contacts
[message:mobile] mobile phone
[message:content] content
[message:recontent] reply content
[message:ip] User IP
[message:os] User operating system
[message:bs] User browser
[message:askdate] message time
[message:replydate] reply time
[message:*] Other customized fields

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

pbootcms introduces public file code

pbootcms introduces public file code Program Notes PbootCms

1. Template file nested reference {include file=***.html} Instructions for use: It can be used nested, such as: index.html nests a head.html, and nested comm.html in head.html supports the use of subdirectories, such as: {include file=comm/*.html} 2. Time formatting tag style=*, such as: within...
👁 235
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

Recommended reading

Pipe unblocking and house leak repair website template 1011

Pipe unblocking and house leak repair website template 1011 Practical Collection Yiyou template

This set of eyoucms templates is suitable for the pipe unblocking and house leak repair industries. It has a professional design style and can display pipe unblocking services, leak repair projects, technical solutions and customer cases. Helps home maintenance companies display their brands online to attract home and business customers. Template display Installation instructions Website backend: /login.php Account: admin Password: admin Related articles Summary of common problems in Yiyou CMS installation Yi...
👁 55
Industrial Electronic Components Service Provider Website Template 1012

Industrial Electronic Components Service Provider Website Template 1012 Practical Collection Yiyou template

An eYouCMS website template designed for industrial electronic component service providers, featuring a modern, tech-oriented design with clear information hierarchy. Ideal for showcasing electronic component products, technical support, and solutions – helping electronic component distributors or manufacturers build their online brand identity and expand their reach among industrial customers. Template Preview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: eYouCMS Installation...
👁 35
Responsive large-scale enterprise group website template – 1013

Responsive large-scale enterprise group website template – 1013 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for large electronics enterprise groups. It features a modern and sophisticated design style along with comprehensive functional modules, making it perfect for showcasing the group's organizational structure, business segments, product portfolio, and corporate culture. It is an excellent choice for large electronics technology companies looking to establish a branded official website. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Common Installation Questions for EyouCMS...
👁 54
Resource website typecho001 template

Resource website typecho001 template Program Notes Typecho

typecho001 template template please do not modify the folder name of this template. The folder name is: typecho001 1.4 Fix the js output problem on the article page 1.3 Fix the error prompt when the plug-in is not installed Optimize the list page code output 1.2 Fix the comment function and add a custom homepage title 1.1 Fix the comment reply asymmetry function Add a separate title setting function on the homepage Add the website favicon.ico icon Add one...
👁 198
Responsive Smart Technology Device Website Templates – 1014

Responsive Smart Technology Device Website Templates – 1014 Practical Collection Yiyou template

An eyouCMS responsive website template designed for smart technology device manufacturers. Its cutting-edge design style is ideal for showcasing smart device products, technical solutions, and real-world application scenarios. This template helps smart technology companies build an innovative online brand image and attract investment as well as customers. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for YouyouCMS...
👁 36
Modification of typecho paging style

Modification of typecho paging style Program Notes Typecho

Sir, times have changed! Typecho is currently the most perfect solution, because Baidu can only see the code of fixed thinking. The actual generated HTML code is breathtakingly clean and fully customized, including adding classes to the li element, adding classes to the a element, adding classes to the previous page and next page, and removing the li tags that come with typecho to express more. I can even add some text to the content inside...
👁 517