找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 12815|回复: 11

discuz 论坛贴内标签怎么调用

  [复制链接]
发表于 2015-7-23 18:16:23 | 显示全部楼层 |阅读模式
如图   3II@WGMI8UQXWC$MFDKTDXF.png
回复

使用道具 举报

 楼主| 发表于 2015-7-23 18:17:00 | 显示全部楼层
在线等  谢谢大神
回复

使用道具 举报

 楼主| 发表于 2015-7-23 18:18:03 | 显示全部楼层
大神们  求助   求助   求助
回复

使用道具 举报

 楼主| 发表于 2015-7-23 18:19:20 | 显示全部楼层
求助  求助  在线等
回复

使用道具 举报

 楼主| 发表于 2015-7-23 18:20:01 | 显示全部楼层
我现在调用的是标题   标题有点长  不是很合适   想调用那个贴内标签
回复

使用道具 举报

发表于 2015-7-24 00:45:39 | 显示全部楼层
内容页TAG代码$post[tags]
http://www.dz7.com.cn/discuz-790-1-3.html
(出处: DZ起点网_免费Discuz视频教程)
回复

使用道具 举报

 楼主| 发表于 2015-7-28 09:21:09 | 显示全部楼层
技术帮助 发表于 2015-7-24 00:45
内容页TAG代码$post[tags]
http://www.dz7.com.cn/discuz-790-1-3.html
(出处: DZ起点网_免费Discuz视频 ...

<!--{if $_G['setting']['thumbstatus'] && $attach['thumb']}-->
                                                <img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if}

style="cursor:pointer" id="aimg_$attach[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}

&aid=$aidencode&noupdate=yes&not;humb=yes{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode{else}

{$attach[url]}$attachthumb{/if}" inpost="1" alt="$post[tags]" title="$_G[forum_thread][subject]" {if $_GET['from'] != 'preview'}{/if} />
                                        <!--{else}-->
                                                 <img{if $attach['price'] && $_G['forum_attachmentdown'] && $_G['uid'] != $attach['uid']} class="attprice"{/if} id="aimg_$attach

[aid]" aid="$attach[aid]" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes&not;humb=yes

{else}{$attach[url]}$attach[attachment]{/if}" file="{if $attach[refcheck]}forum.php?mod=attachment{$is_archive}&aid=$aidencode&noupdate=yes{else}{$attach[url]}$attach

[attachment]{/if}" $widthcode id="aimg _$attach[aid]" inpost="1" alt="$post[tags]" title="$_G[forum_thread][subject]" {if $_GET['from'] != 'preview'}{/if} />
                                        <!--{/if}-->
回复

使用道具 举报

 楼主| 发表于 2015-7-28 09:23:21 | 显示全部楼层
技术帮助 发表于 2015-7-24 00:45
内容页TAG代码$post[tags]
http://www.dz7.com.cn/discuz-790-1-3.html
(出处: DZ起点网_免费Discuz视频 ...

我把代码贴出来吧   两段代码  alt=“$post[tags]”   调用出来的是数组array
回复

使用道具 举报

发表于 2015-7-28 12:41:00 | 显示全部楼层
lxy136997084 发表于 2015-7-28 09:23
我把代码贴出来吧   两段代码  alt=“$post[tags]”   调用出来的是数组array

<!--{eval print_r($post[tags]);}-->  //打印出数组,看看里面的结构

<!--{loop $post[tags] $tag}-->   //loop循环
    $tag
<!--{/loop}-->
回复

使用道具 举报

 楼主| 发表于 2015-7-28 13:38:38 | 显示全部楼层
技术帮助 发表于 2015-7-28 12:41
//打印出数组,看看里面的结构

   //loop循环

不会了,看不懂,我是个新手
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|Discuz代码分析|Discuz目录结构|DZ起点网 ( 蜀ICP备13000518号-15 )

GMT+8, 2024-5-16 15:34 , Processed in 0.063759 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表