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