我想把该主题的附件图片都调用出来要怎样改?
SQL代码如下- <?php
- if(!defined('IN_DISCUZ')) {
- exit('Access Denied');
- }
- class plugin_yxf_authorthread {
- function plugin_yxf_authorthread() {
- require DISCUZ_ROOT . './forumdata/cache/plugin_yxf_authorthread.php';
- $this->plugin=$_DPLUGIN['yxf_authorthread'];
- /*
- if(isset($this->plugin['vars']['usefids'])){
- $usefids=$this->plugin['vars']['usefids'];
- $usefids=$usefids?unserialize($usefids):'';
- $usefids=is_array($usefids)?$usefids:array();
- $this->plugin['available']=$this->plugin['available']&&in_array($GLOBALS['fid'],$usefids)?1:0;
- }
- if(isset($this->plugin['vars']['usegids'])){
- $usegids=$this->plugin['vars']['usegids'];
- $usegids=$usegids?unserialize($usegids):'';
- $usegids=is_array($usegids)?$usegids:array();
- $this->plugin['available']=$this->plugin['available']&&in_array($GLOBALS['groupid'],$usegids)?1:0;
- }
- */
- }
-
- function viewthread_postbottom_output(){
- if(!$this->plugin['available']) return array();
- @extract($this->plugin['vars']);
- global $db,$tablepre,$page,$postlist,$fid,$tid;
- if($page!=1||!is_array($postlist)) return array();
- $usefids=unserialize($usefids);
- if(!is_array($usefids)) $usefids=array();
- if(!in_array($fid,$usefids)) return array();
- $usegroups=unserialize($usegroups);
- if(!is_array($usegroups)) $usegroups=array();
- foreach ($postlist as $post){
- if($post['first']){
- if(!in_array($post['groupid'],$usegroups)) return array();
- $dyfids=unserialize($dyfids);
- if(is_array($dyfids)){
- $dyfidss=$split='';
- foreach ($dyfids as $dfid){
- if(!empty($dfid)){
- $dyfidss.=$split.$dfid;
- $split=',';
- }
- }
- if(empty($dyfidss)) return array();
- $dyfids=" and fid in ($dyfidss) ";
- }
- else return array();
- $orderwayarray=array('replies desc','dateline desc','views desc','rand()');
- $orderway=intval($orderway);
- $orderway=" order by ".$orderwayarray[$orderway];
- $authorid=$post['authorid'];
- $threadlist=array();
- $rs=$db->query("SELECT tid,subject FROM `{$tablepre}threads` WHERE `authorid` =$authorid $dyfids and displayorder>=0 and tid!=$tid $orderway LIMIT 0 , $dynum");
- while ($rw=$db->fetch_array($rs)) {
- $rw['cutsubject']=cutstr($rw['subject'],$cutstrnum,'');
- $threadlist[]=$rw;
- }
- if(empty($threadlist)||count($threadlist)<$limitnum) return array();
- break;
- }else return array();
- }
- $return='';
- include(template('yxf_authorthread:viewthread'));
- return array($return);
- }
-
-
- /*
- function (){
- if(!$this->plugin['available']) return '';
- @extract($this->plugin['vars']);
-
- }
- */
- }
- ?>
复制代码 好心人帮帮我!!!!! |