lxy136997084 发表于 2015-7-23 18:16:23

discuz 论坛贴内标签怎么调用

如图

lxy136997084 发表于 2015-7-23 18:17:00

在线等谢谢大神:hug:

lxy136997084 发表于 2015-7-23 18:18:03

大神们求助   求助   求助

lxy136997084 发表于 2015-7-23 18:19:20

求助求助在线等

lxy136997084 发表于 2015-7-23 18:20:01

我现在调用的是标题   标题有点长不是很合适   想调用那个贴内标签

技术帮助 发表于 2015-7-24 00:45:39

内容页TAG代码$post
http://www.dz7.com.cn/discuz-790-1-3.html
(出处: DZ起点网_免费Discuz视频教程)

lxy136997084 发表于 2015-7-28 09:21:09

技术帮助 发表于 2015-7-24 00:45
内容页TAG代码$post
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="$attach" src="{STATICURL}image/common/none.gif" zoomfile="{if $attach}forum.php?mod=attachment{$is_archive}

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

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

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

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

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

lxy136997084 发表于 2015-7-28 09:23:21

技术帮助 发表于 2015-7-24 00:45
内容页TAG代码$post
http://www.dz7.com.cn/discuz-790-1-3.html
(出处: DZ起点网_免费Discuz视频 ...

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

技术帮助 发表于 2015-7-28 12:41:00

lxy136997084 发表于 2015-7-28 09:23
我把代码贴出来吧   两段代码alt=“$post”   调用出来的是数组array

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

<!--{loop $post $tag}-->   //loop循环
    $tag
<!--{/loop}-->

lxy136997084 发表于 2015-7-28 13:38:38

技术帮助 发表于 2015-7-28 12:41
//打印出数组,看看里面的结构

   //loop循环


不会了,看不懂,我是个新手{:3_44:}
页: [1] 2
查看完整版本: discuz 论坛贴内标签怎么调用