通用云存储使用教程
插件的参数,重点是region的配置。七牛云无需region
腾讯云和阿里云需要。
腾讯云参数: 先留个脚印 插件发布了,还不来写教程 666可以的 同学乔迁新居,去捧场了。
周日还有一场...
估计周一周二优化一下插件,再写教程吧 帮你测试了一下,按装后在未做任何设置的情况下点击附件列表出现这种情况,不知是否正常?
谢谢测试!
不正常,错误信息表示多了个')'字符
很奇怪,如果有这个错误的话,应该是所有人都有这个错误才对。
我再看看,谢谢!
————————————分割线————————————
安装时,代码不完整。
我把报错的整个文件贴上来 文件地址:souce/plugin/common_cloud_storage/include/list.php<?phpif (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) { exit('Access Denied');}$pluginlang = lang('plugin/common_cloud_storage');showtablerow('', array('class="xiongzhu3"', 'class="xiongzhu4"'), array('<buttonclass="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?' . \common_cloud_storage\get_url() . '&attr_type=forum&tmod=list' . '">'. $pluginlang['forum'] . '</a></button>', '<buttonclass="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?' . \common_cloud_storage\get_url() . '&attr_type=home_pic&tmod=list' . '">'. $pluginlang['home_pic'] . '</a></button>', '<buttonclass="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?' . \common_cloud_storage\get_url() . '&attr_type=portal&tmod=list' . '">'. $pluginlang['portal'] . '</a></button>', ),);$count=0;$limit = 10;//单页数量$currenPage = $_GET['page']?$_GET['page']:1;//当前页面$extra='$extra';$mpurl = ADMINSCRIPT."?action=plugins&operation=config&identifier=common_cloud_storage&pmod=common_cloud_storage_list&attr_type={$_GET['attr_type']}";//没有选择类型时if(!$_GET['attr_type']){ exit;}//展示论坛附件if($_GET['attr_type']=='forum'){ $count =DB::result_first("SELECT COUNT(*) FROM " . DB::table("forum_attachment"));//总数 $dataList = array(); if($count){ $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('forum_attachment',($currenPage-1)*$limit,$limit)); foreach ($dataList as $k=>$v){ $dataList[$k]['info'] =Db::fetch_first('select * from %t where aid = %i' , array('forum_attachment_'.$v['tableid'],$v['aid'])); $dataList[$k]['info']['datetime'] = date('y-m-d H:i:s',$dataList[$k]['info']['dateline']); } unset($k,$v); } include template('common_cloud_storage:forum_attachment_list');}//相册附件if($_GET['attr_type']=='home_pic'){ $count =DB::result_first("SELECT COUNT(*) FROM " . DB::table("home_pic"));//总数 $dataList = array(); if($count){ $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('home_pic',($currenPage-1)*$limit,$limit)); } include template('common_cloud_storage:home_pic_list');}//论坛封面附件if($_GET['attr_type']=='portal') { $count =DB::result_first("SELECT COUNT(*) FROM " . DB::table("portal_attachment"));//总数 $dataList = array(); if($count){ $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('portal_attachment',($currenPage-1)*$limit,$limit)); } include template('common_cloud_storage:portal_attachment_list');}//论坛封面附件if($_GET['attr_type']=='forum_thread') { echo '主题封面';}/*分页*/if($count){ echo multi($count, $limit, $currenPage, $mpurl);} 替换为你给的代码错误如下
麻烦加我Q或微信,约个时间远程。请提前安装向日葵远程协助软件。
报错信息是:‘语法错误,多了一个)’符号,不可能,绝对不可能。
Q:842939018
微:liuxiongzhu bug 修复了吗
页:
[1]