Home > CMS Tutorial > DEDECMS > How to call the guestbook on the homepage of DreamWeaver

How to call the guestbook on the homepage of DreamWeaver

藏色散人
Release: 2019-12-03 10:00:16
Original
2609 people have browsed it

How to call the guestbook on the homepage of DreamWeaver

How to call the guestbook on the homepage of DreamWeaver?

Calling the guestbook on the homepage of Dedecms

{dede:loop table='dede_guestbook' sort='dtime' row='10' titlelen='36' typeid='40' if='ischeck=1'}  
<a href="[field:phpurl/]/plus/guestbook.php"> 
[field:uname /] 
<img src="[field:phpurl/]/plus/guestbook/images/[field:face /].gif" alt="" /> 
[field:msg function="cn_substr(&#39;@me&#39;,30)"/] 
[field:ip /] 
 </a> 
 {/dede:loop}
Copy after login

Where [field:uname /] is the nickname of the calling user

is Call the user avatar

[field:msg function="cn_substr('@me',30)"/] to call the comment content

[field:ip /] to call the IP address of the poster

Knowledge expansion:

We know that using the custom form function provided by DedeCMS, we can create forms as needed for front-end users to submit, such as: online orders, online Some common interactive applications such as registration. So how is it called in the foreground? Many friends have asked questions. Today I will briefly talk about the method of calling the front desk.

dedecms5.6 Custom form content homepage calling code example:

{dede:loop table=&#39;dede_diyform1&#39; sort=&#39;&#39; row=&#39;10&#39; if=&#39;&#39;}
<a href=&#39;[field:lianjie/]&#39; target="_blank">[field:shenghuo/]</a>
Copy after login

{/dede:loop} 'dede_diyform1' is the name of the table you want to call [field:lianjie/] is you If you want the field names of the added table to be displayed immediately after submission without review, select "Full disclosure" in the "Public front list and content page?:" option of adding a new form.

The above is the detailed content of How to call the guestbook on the homepage of DreamWeaver. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template