{/dede:loop}"."/> {/dede:loop}".">

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

How to call the guestbook on the homepage of DreamWeaver

藏色散人
藏色散人Original
2019-12-03 10:00:162493browse

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}

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

a47bca1e484c86aea760de696abb2511 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>

{/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!

Statement:
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
Previous article:How to use {dede:field}Next article:How to use {dede:field}