模板标签里面
求助:下面这个代码是调取用户自己发布的帖子,有没有办法调取出来,用户自己回答过的帖子呢?另外用户回答的内容能不能调取出来?
{module module=wenda uid=$user.id order=updatetime page=1}
<article class="question user-question">
<h3>
<a title="{$t.title}" href="{$t.url}">{$t.title}</a>
</h3>
{php $field = dr_field_options($ci->module['field']['is_comment']['id']);}
<span class="question-type-main">{$field[$t.is_comment]}</span>
<div class="question-content">
<div class="question-bottom">
<span class="question-category"><a href="{dr_cat_value($t.catid, 'url')}"><i class="fa fa-folder"></i>{dr_cat_value($t.catid, 'name')}</a></span>
<span class="question-date"><i class="fa fa-clock-o"></i> {dr_fdate($t._updatetime)}</span>
<span class="question-comment"><a><i class="fa fa-comments"></i> {$t.comments}</a></span>
<span class="question-view"><i class="fa fa-eye"></i> {$t.hits}</span>
</div>
</div>
</article>
{/module}
插件版权:官方插件
插件名称:问答插件
{comment module=wenda uid=$user.id} {/comment}回答的帖子{comment module=wenda uid=$user.id order=updatetime } {$t.content} {/comment}{comment module=wenda uid=$user.id join=wenda on=cid order=updatetime } {$t.title}{$t.content} {/comment}试试这个,我没有测试{comment module=wenda uid=$user.id join=wenda on=cid order=updatetime } {$t.title}{$t.content} {/comment} {$debug}看看结果标签解析:{list action=comment module=wenda uid=24 join=wenda on=cid order=updatetime}关联数据表(dr_wenda)不存在变量前缀:t开发模式:已开启数据缓存:后台未开启缓存分页功能:未开启{comment module=wenda uid=$user.id join=1_wenda on=cid order=updatetime } {$t.title}{$t.content} {/comment} {$debug}{comment module=wenda uid=$user.id join=1_wenda on=id,cid order=updatetime } {$t.title}{$t.content} {/comment} {$debug}mysqli_sql_exception #1054
{comment module=wenda uid=$user.id join=1_wenda on=cid,id order=updatetime } {$t.title}{$t.content} {/comment} {$debug}标签解析:{list action=comment module=wenda uid=24 join=1_wenda on=cid,id order=updatetime}查询解析: SELECT * FROM dr_1_wenda_comment LEFT JOIN `dr_1_wenda` ON `dr_1_wenda_comment`.`cid`=`dr_1_wenda`.`id` WHERE `dr_1_wenda_comment`.`uid` = 24 AND `dr_1_wenda_comment`.`status` = 1变量前缀:t开发模式:已开启数据缓存:后台未开启缓存总记录数:13分页功能:未开启可用字段:id、cid、cuid、uid、author、content、support、oppose、avgsort、sort1、sort2、sort3、sort4、sort5、sort6、sort7、sort8、sort9、reply、in_reply、status、inputip、inputtime、zuijiadaan、catid、title、thumb、keywords、description、hits、url、link_id、tableid、updatetime、displayorder、is_comment、price、comments、fstatus、_inputtime