久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

12下一頁
返回列表 發(fā)帖
查看: 2620|回復(fù): 13

通用云存儲(chǔ)使用教程

6

主題

35

回帖

50

積分

應(yīng)用開發(fā)者

貢獻(xiàn)
0 點(diǎn)
金幣
7 個(gè)
QQ
樓主
發(fā)表于 2024-1-12 00:53:59 | 只看樓主 |只看大圖 |倒序?yàn)g覽 |閱讀模式


插件的參數(shù),重點(diǎn)是region的配置。
七牛云無需region
騰訊云和阿里云需要。

騰訊云參數(shù):
回復(fù)

使用道具 舉報(bào)

34

主題

89

回帖

165

積分

漸入佳境

貢獻(xiàn)
0 點(diǎn)
金幣
32 個(gè)
QQ
沙發(fā)
發(fā)表于 2024-1-12 09:43:11 | 只看Ta
先留個(gè)腳印
回復(fù)

使用道具 舉報(bào)

120

主題

999

回帖

1335

積分

已臻大成

貢獻(xiàn)
18 點(diǎn)
金幣
17 個(gè)
QQ
板凳
發(fā)表于 2024-1-12 11:48:24 | 只看Ta
插件發(fā)布了,還不來寫教程
回復(fù)

使用道具 舉報(bào)

1

主題

361

回帖

409

積分

爐火純青

貢獻(xiàn)
1 點(diǎn)
金幣
33 個(gè)
QQ
地板
發(fā)表于 2024-1-12 17:36:34 | 只看Ta
666可以的  
回復(fù)

使用道具 舉報(bào)

6

主題

35

回帖

50

積分

應(yīng)用開發(fā)者

貢獻(xiàn)
0 點(diǎn)
金幣
7 個(gè)
QQ
5#
 樓主| 發(fā)表于 2024-1-13 01:02:12 | 只看Ta
一定 發(fā)表于 2024-1-12 11:48
插件發(fā)布了,還不來寫教程

同學(xué)喬遷新居,去捧場(chǎng)了。
周日還有一場(chǎng)...

估計(jì)周一周二優(yōu)化一下插件,再寫教程吧
回復(fù)

使用道具 舉報(bào)

18

主題

37

回帖

71

積分

漸入佳境

貢獻(xiàn)
0 點(diǎn)
金幣
11 個(gè)
6#
發(fā)表于 2024-1-13 11:14:18 | 只看Ta
本帖最后由 com叔叔 于 2024-1-13 11:16 編輯

幫你測(cè)試了一下,按裝后在未做任何設(shè)置的情況下點(diǎn)擊附件列表出現(xiàn)這種情況,不知是否正常?


回復(fù)

使用道具 舉報(bào)

6

主題

35

回帖

50

積分

應(yīng)用開發(fā)者

貢獻(xiàn)
0 點(diǎn)
金幣
7 個(gè)
QQ
7#
 樓主| 發(fā)表于 2024-1-13 12:19:32 | 只看Ta
本帖最后由 842939018 于 2024-1-13 12:26 編輯
com叔叔 發(fā)表于 2024-1-13 11:14
幫你測(cè)試了一下,按裝后在未做任何設(shè)置的情況下點(diǎn)擊附件列表出現(xiàn)這種情況,不知是否正常?

謝謝測(cè)試!
不正常,錯(cuò)誤信息表示多了個(gè)')'字符

很奇怪,如果有這個(gè)錯(cuò)誤的話,應(yīng)該是所有人都有這個(gè)錯(cuò)誤才對(duì)。

我再看看,謝謝!
————————————分割線————————————
安裝時(shí),代碼不完整。
我把報(bào)錯(cuò)的整個(gè)文件貼上來
  1. 文件地址:souce/plugin/common_cloud_storage/include/list.php
復(fù)制代碼
  1. <?php
  2. if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
  3.     exit('Access Denied');
  4. }

  5. $pluginlang = lang('plugin/common_cloud_storage');
  6. showtablerow('', array('class="xiongzhu3"', 'class="xiongzhu4"'),
  7.     array('<button  class="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?'
  8.         . \common_cloud_storage\get_url() . '&attr_type=forum&tmod=list' . '">'. $pluginlang['forum'] . '</a></button>',
  9.         '<button  class="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?'
  10.         . \common_cloud_storage\get_url() . '&attr_type=home_pic&tmod=list' . '">'. $pluginlang['home_pic'] . '</a></button>',
  11.         '<button  class="submit btn" style="border-radius: 3px"><a style="color: white" href="'.ADMINSCRIPT.'?'
  12.         . \common_cloud_storage\get_url() . '&attr_type=portal&tmod=list' . '">'. $pluginlang['portal'] . '</a></button>',
  13.     ),
  14. );
  15. $count=0;
  16. $limit = 10;//單頁數(shù)量
  17. $currenPage = $_GET['page']?$_GET['page']:1;//當(dāng)前頁面
  18. $extra='$extra';
  19. $mpurl = ADMINSCRIPT."?action=plugins&operation=config&identifier=common_cloud_storage&pmod=common_cloud_storage_list&attr_type={$_GET['attr_type']}";

  20. //沒有選擇類型時(shí)
  21. if(!$_GET['attr_type']){
  22.     exit;
  23. }

  24. //展示論壇附件
  25. if($_GET['attr_type']=='forum'){
  26.     $count =  DB::result_first("SELECT COUNT(*) FROM " . DB::table("forum_attachment"));//總數(shù)
  27.     $dataList = array();
  28.     if($count){
  29.         $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('forum_attachment',($currenPage-1)*$limit,$limit));
  30.         foreach ($dataList as $k=>$v){
  31.             $dataList[$k]['info'] =  Db::fetch_first('select * from %t where aid = %i' , array('forum_attachment_'.$v['tableid'],$v['aid']));
  32.             $dataList[$k]['info']['datetime'] = date('y-m-d H:i:s',$dataList[$k]['info']['dateline']);
  33.         }
  34.         unset($k,$v);
  35.     }
  36.     include template('common_cloud_storage:forum_attachment_list');
  37. }

  38. //相冊(cè)附件
  39. if($_GET['attr_type']=='home_pic'){
  40.     $count =  DB::result_first("SELECT COUNT(*) FROM " . DB::table("home_pic"));//總數(shù)
  41.     $dataList = array();
  42.     if($count){
  43.         $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('home_pic',($currenPage-1)*$limit,$limit));
  44.     }
  45.     include template('common_cloud_storage:home_pic_list');
  46. }

  47. //論壇封面附件
  48. if($_GET['attr_type']=='portal') {
  49.     $count =  DB::result_first("SELECT COUNT(*) FROM " . DB::table("portal_attachment"));//總數(shù)
  50.     $dataList = array();
  51.     if($count){
  52.         $dataList = Db::fetch_all('select * from %t limit %d,%d' , array('portal_attachment',($currenPage-1)*$limit,$limit));
  53.     }
  54.     include template('common_cloud_storage:portal_attachment_list');
  55. }
  56. //論壇封面附件
  57. if($_GET['attr_type']=='forum_thread') {
  58.     echo '主題封面';
  59. }

  60. /*分頁*/
  61. if($count){
  62.     echo multi($count, $limit, $currenPage, $mpurl);
  63. }
復(fù)制代碼


回復(fù)

使用道具 舉報(bào)

18

主題

37

回帖

71

積分

漸入佳境

貢獻(xiàn)
0 點(diǎn)
金幣
11 個(gè)
8#
發(fā)表于 2024-1-13 15:26:33 | 只看Ta
842939018 發(fā)表于 2024-1-13 12:19
謝謝測(cè)試!
不正常,錯(cuò)誤信息表示多了個(gè)')'字符


替換為你給的代碼錯(cuò)誤如下

回復(fù)

使用道具 舉報(bào)

6

主題

35

回帖

50

積分

應(yīng)用開發(fā)者

貢獻(xiàn)
0 點(diǎn)
金幣
7 個(gè)
QQ
9#
 樓主| 發(fā)表于 2024-1-15 00:09:58 | 只看Ta
com叔叔 發(fā)表于 2024-1-13 15:26
替換為你給的代碼錯(cuò)誤如下

麻煩加我Q或微信,約個(gè)時(shí)間遠(yuǎn)程。請(qǐng)?zhí)崆鞍惭b向日葵遠(yuǎn)程協(xié)助軟件。

報(bào)錯(cuò)信息是:‘語法錯(cuò)誤,多了一個(gè))’符號(hào),不可能,絕對(duì)不可能。
Q:842939018
微:liuxiongzhu
回復(fù)

使用道具 舉報(bào)

23

主題

41

回帖

72

積分

漸入佳境

貢獻(xiàn)
0 點(diǎn)
金幣
5 個(gè)
10#
發(fā)表于 2024-7-23 12:12:16 | 只看Ta
bug 修復(fù)了嗎
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

  • 關(guān)注公眾號(hào)
  • 有償服務(wù)微信
  • 有償服務(wù)QQ

手機(jī)版|小黑屋|Discuz! 官方交流社區(qū) ( 皖I(lǐng)CP備16010102號(hào) |皖公網(wǎng)安備34010302002376號(hào) )|網(wǎng)站地圖|star

GMT+8, 2025-9-19 10:37 , Processed in 0.075554 second(s), 35 queries .

Powered by Discuz! W1.0 Licensed

Copyright © 2001-2025 Discuz! Team.

關(guān)燈 在本版發(fā)帖
有償服務(wù)QQ
有償服務(wù)微信
返回頂部
快速回復(fù) 返回頂部 返回列表