设为首页收藏本站

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย

返回列表 发布新帖
查看: 100|回复: 9

通用云存储使用教程

153

主题

122

回帖

300

积分

中级会员

积分
300
发表于 2024-8-6 16:16:48 | 查看全部 |阅读模式
插件的参数,重点是region的配置。
七牛云无需region
腾讯云和阿里云需要。

腾讯云参数:

本帖子中包含更多资源

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

×

137

主题

122

回帖

274

积分

注册会员

积分
274
发表于 2024-8-6 16:17:14 | 查看全部
先留个脚印

147

主题

113

回帖

281

积分

注册会员

积分
281
发表于 2024-8-6 16:17:40 | 查看全部
插件发布了,还不来写教程

164

主题

115

回帖

296

积分

注册会员

积分
296
发表于 2024-8-6 16:17:49 | 查看全部
666可以的

137

主题

122

回帖

274

积分

注册会员

积分
274
发表于 2024-8-6 16:18:02 | 查看全部
同学乔迁新居,去捧场了。
周日还有一场...

估计周一周二优化一下插件,再写教程吧

130

主题

100

回帖

245

积分

注册会员

积分
245
发表于 2024-8-6 16:18:15 | 查看全部
帮你测试了一下,按装后在未做任何设置的情况下点击附件列表出现这种情况,不知是否正常?

本帖子中包含更多资源

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

×

157

主题

123

回帖

295

积分

注册会员

积分
295
发表于 2024-8-6 16:18:22 | 查看全部
谢谢测试!
不正常,错误信息表示多了个')'字符

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

我再看看,谢谢!
————————————分割线————————————
安装时,代码不完整。
我把报错的整个文件贴上来
  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);}
复制代码

147

主题

113

回帖

281

积分

注册会员

积分
281
发表于 2024-8-6 16:18:37 | 查看全部
替换为你给的代码错误如下

本帖子中包含更多资源

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

×

153

主题

122

回帖

300

积分

中级会员

积分
300
 楼主| 发表于 2024-8-6 16:19:13 | 查看全部
麻烦加我Q或微信,约个时间远程。请提前安装向日葵远程协助软件。

报错信息是:‘语法错误,多了一个)’符号,不可能,绝对不可能。
Q:842939018
微:liuxiongzhu

137

主题

122

回帖

274

积分

注册会员

积分
274
发表于 2024-8-6 16:19:40 | 查看全部
bug 修复了吗
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

投诉/建议联系

点我~

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 应用中心
  • 建议反馈
Copyright © 2001-2025 DiscuzQ源码网. 版权所有 All Rights Reserved.   |网站地图
关灯 在本版发帖
扫一扫反馈建议
返回顶部
快速回复 返回顶部 返回列表