查看: 246|回复: 6

通用云存储使用教程 New

[复制链接]

3991

主题

353

回帖

4481

积分

论坛元老

积分
4481
发表于 2024-1-13 13:10:02 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x
先占个坑,获取帖子地址。
插件发布后,再写内容

免责声明

1.本网站所收集的部分公开资料来源于互联网,转载的目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。
2.如果您发现网站上有侵犯您的知识产权的作品,请与我们取得联系,我们会及时修改或删除。

上一篇:优化手机版导读和版块的帖子列表展示数量 New
下一篇:添加一套QQ表情! New

回复

使用道具 举报

114

主题

372

回帖

559

积分

高级会员

积分
559
发表于 2024-1-13 13:10:09 | 显示全部楼层
先留个脚印
回复 支持 反对

使用道具 举报

153

主题

356

回帖

610

积分

高级会员

积分
610
发表于 2024-1-13 13:10:31 | 显示全部楼层
插件发布了,还不来写教程
回复 支持 反对

使用道具 举报

153

主题

356

回帖

610

积分

高级会员

积分
610
发表于 2024-1-13 13:11:00 | 显示全部楼层
666可以的
回复 支持 反对

使用道具 举报

114

主题

372

回帖

559

积分

高级会员

积分
559
发表于 2024-1-13 13:11:11 | 显示全部楼层
同学乔迁新居,去捧场了。
周日还有一场...

估计周一周二优化一下插件,再写教程吧
回复 支持 反对

使用道具 举报

159

主题

389

回帖

665

积分

高级会员

积分
665
发表于 2024-1-13 13:11:32 | 显示全部楼层
帮你测试了一下,按装后在未做任何设置的情况下点击附件列表出现这种情况,不知是否正常?

d1.png
回复 支持 反对

使用道具 举报

170

主题

381

回帖

666

积分

高级会员

积分
666
发表于 2024-1-13 13:12:08 | 显示全部楼层
谢谢测试!
不正常,错误信息表示多了个')'字符

很奇怪,如果有这个错误的话,应该是所有人都有这个错误才对。

我再看看,谢谢!
————————————分割线————————————
安装时,代码不完整。
我把报错的整个文件贴上来
  1. 文件地址:souce/plugin/common_cloud_storage/include/list.php
复制代码
  1. <?phpif (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {    exit('Access Denied');}$pluginlang = lang('plugin/common_cloud_storage');showtablerow('', array('class="xiongzhu3"', 'class="xiongzhu4"'),    array('<button  class="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>',        '<button  class="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>',        '<button  class="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);}
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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