Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the common calling code for dream weaving to the discuz forum?

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail what is the common calling code for the discuz forum about dream weaving. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

What are the common calling codes for dream weaving to the discuz forum?

Some common calling codes of dream weaving DEDECMS to discuz forum

The calling method of dede calling DZ forum posts and specific section posts

The latest theme of the forum:

{dede:loop table= "cdb_threads" sort= "tid" row= "10"} [field:subject function= "cn_substr ('@ me',30)" /] ([field:lastpost function= "date (/])) {/ dede:loop}

Adjust the theme of a specific section:

{dede:loop table= "cdb_threads" if= "fid=5 and displayorderboat painting 1" sort= "tid" row= "10"} [field:subject function= "cn_substr ('@ me',30)" /] ([field:lastpost function= "date ('Mashi d HV Hutch Migma gramme)" /]) {/ dede:loop}

Show essential posts:

{dede:loop table= "cdb_threads" if= "fid=5 AND digest > 0 and displayorderboat color 1" sort= "tid" row= "10"} [field:subject function= "cn_substr ('@ me',30)" /] ([field:lastpost function= "date ('mhands d Hlypher Misters))" /]) {/ dede:loop}

Forum Star / active member:

{dede:loop table= "cdb_members" sort= "posts" row= "3"}

[field:username/]

Post: [field:posts/]

Join: [field:regdate function= "GetDateMK (@ me)" /] {/ dede:loop}

/ bbs/space.php?uid= [field:uid /] personal information address

/ bbs/uc_server/avatar.php?uid= [field:uid /] & size=middle Forum avatar

Personal space address of / home/space.php?uid= [field:uid /] UCHOME

Call the post:

{dede:loop table= "cdb_threads" if='digest > 0' sort= "tid" row= "10"} [field:subject function= "cn_substr ('@ me',30)" /] {/ dede:loop}

If= "" condition

Example 1: call a post with an ID of 4:

If= "fid=4" calls the post of the specified section

Example 2: call the essence post with ID 4 in the forum

If= "fid=4 AND digest > 0"

Example 3: call posts that reply to more than 20 posts

If= "fid=4 AND replies > 20"

Call the attached post with a picture

{dede:sql sql= "SELECT`attachments`.`aid`, `cdb_ attachments`.`attachment`, `cdb_ threads`.`tid`, `cdb_ threads`.`fid`, `cdb_ threads`.`FROM `cdb_ attachments`LEFT JOIN `cdb_ threads`ON `cdb_ threads`.`tid` WHERE `cdb_ attachments`.`readm` ='0' AND `displayorder` > ='0' AND `filetype` = 'image/pjpeg' GROUP BY tid LIMIT 0rage 2"}

[field:subject function= "cn_substr ('@ me',30)" /] {/ dede:sql} about dream weaving what is the common calling code for the discuz forum is shared here, I hope the above content can be of some help to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report