Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议添加chevereto图床支持 #125

Open
longdoer opened this issue Oct 31, 2022 · 2 comments
Open

建议添加chevereto图床支持 #125

longdoer opened this issue Oct 31, 2022 · 2 comments

Comments

@longdoer
Copy link

longdoer commented Oct 31, 2022

chevereto图床在可以通过调用前端JS执行上传,并回填bbscode编码。
/include/functions.php 1081行 建议增加配置参数控制判断。
如下:替换chevereto图床域名即可,以下以我的图床www.picgo.net为例:
1、参数控制文本框增加chevereto嵌入代码:
<script async src="//www.picgo.net/sdk/pup.js" data-url="https://www.picgo.net/upload" data-auto-insert="bbcode-embed" data-mode="manual"></script> <button data-chevereto-pup-trigger data-target="#<?php echo $text ?>" >上传图片</button>

2、没有填写嵌入代码则走原有逻辑/include/functions.php 1081行代码。

12112

@longdoer longdoer changed the title 建议添加chevereto支持 建议添加chevereto图床支持 Oct 31, 2022
@xiaomlove
Copy link
Owner

考虑增加按钮,不会改动原有的功能。

@ArthurHDF
Copy link

随着瓷、套、柠檬包括豆瓣都启用了防盗链,导致转载过来的图片经常无法正常显示。因此建议增加对自建的Chevereto图床的支持,另外也可以参考auto-feed脚本的图片链接直接转图床的代码,方便从有防盗链的网站进行更便捷的转存图片。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants