Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[求助] 在页面嵌入插件viewthread_posttop中如果得到post id

[复制链接]
hdsoso 发表于 2013-11-3 13:07:16 | 显示全部楼层 |阅读模式
在插件外部
  1.         <!--{hook/viewthread_posttop $postcount}-->
  2.     <div style='text-align:right;'>
  3.     <!--{hook/viewthread_hdsoso_posttop $postcount}-->
  4.     $post[pid]
  5.     </div>
复制代码
通过$post[pid] 可以得到回帖的id,
那么如何在viewthread_hdsoso_posttop  插件内部得到 $post[pid]  ,怎么传过去呢?,$postcount 怎么在插件内部得到呢?
  1. for($i=0;$i<20;$i++){
  2.                   $post_message[]="<a href='plugin.php?id=hdsoso_qa:action&act=add_answer&pid=".$postcount."'>提交答案</a></div>";
  3.               }  
复制代码




回复

使用道具 举报

四叶草工作室 发表于 2013-11-3 13:38:00 | 显示全部楼层
不错,支持下
回复

使用道具 举报

1314学习网 发表于 2013-11-3 13:47:03 | 显示全部楼层
global $postlist;
回复

使用道具 举报

兲楽 发表于 2014-2-26 00:45:23 | 显示全部楼层
你是学开发插件吗
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-11-25 04:10 , Processed in 0.247761 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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