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] Output effect: 1876563
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] 序号从0开始
[message:i] 序号从1开始
[message:contacts] 联系人
[message:mobile] 手机
[message:content] 内容
[message:recontent] 回复内容
[message:ip] 用户IP
[message:os] 用户操作系统
[message:bs] 用户浏览器
[message:askdate] 留言时间
[message:replydate] 回复时间
[message:***] 自定义的其它字段
[message:nickname] 会员昵称(V3.0+)
[message:username] 会员账号(V3.0+)
[message:headpic] 会员头像(V3.0+)