twikoojs / twikoo

💬 一个简洁、安全、免费的静态网站评论系统 | A simple, safe, free comment system.
http://twikoo.js.org
MIT License
1.4k stars 263 forks source link

Alist-Twikoo #571

Open Viper373 opened 10 months ago

Viper373 commented 10 months ago

请问alist管理后台中的元信息是否能够引入Twikko评论区(前端html、css与js的方式),谢谢!

imaegoo commented 10 months ago

没有用过Alist,可以找找有没有自定义页脚HTML片段的地方,然后通过CDN方式引入

Viper373 commented 10 months ago

通过cdn方式的那些参数需要填写什么,望回复!

  发自我的企业微信         

----------Reply to Message---------- On Thu, Aug 17, 2023 18:09 PM @.***> wrote:

没有用过Alist,可以找找有没有自定义页脚HTML片段的地方,然后通过CDN方式引入

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Viper373 commented 10 months ago
Viper373 commented 10 months ago

我使用了以上代码引入,但F12控制台报错为: Uncaught ReferenceError: twikoo is not defined at :2:1 at Jr (index.af742395.js:1:22508) at Object.fn (index.af742395.js:1:22014) at js (index.af742395.js:1:6289) at ao (index.af742395.js:1:6079) at Bo (index.af742395.js:1:7289) at sg (index.af742395.js:1:8202) at index.af742395.js:1:8041 at Dr (index.af742395.js:1:3443) at ig (index.af742395.js:1:8033)

Android-KitKat commented 10 months ago

试试看把这段代码,移动到 自定义头部 呢?

<script src="https://cdn.staticfile.org/twikoo/1.6.17/twikoo.all.min.js"></script>
Viper373 commented 10 months ago

已经解决,感谢!!!

Viper373 commented 10 months ago

image 遇到了另一个难题,请问如何解决

Android-KitKat commented 10 months ago

字面意思,说明你没有配置好 邮件通知

Viper373 commented 10 months ago

请教一下,具体是哪里的配置有问题呢,另外,好像无法再找到小齿轮图标进入管理界面了

Android-KitKat commented 10 months ago

因为你配置了 HIDE_ADMIN_CRYPT 管理面板的暗号,在 昵称 处输入暗号才会显示管理面板入口。

注意,暗号不等于密码,通过 GET_CONFIG 接口可直接获取暗号。 所以请不要将暗号设置成自己的密码,一般设置成自己的昵称就可以了。

鉴于你现在暗号和密码一样,我就不念出来了…… 不过我登录到后台发送了测试邮件给自己,现在 邮件通知 的配置没有问题。

Viper373 commented 10 months ago

感谢,已经按照安好配置规则修改了暗号。 另外想要魔改评论区的样式,直接在alist头部引入css即可吗

Android-KitKat commented 10 months ago

是的,我认为样式不需要在切换目录时重新加载,因此在 自定义头部 中设置比较合理。

Viper373 commented 10 months ago

感谢!