Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
腾讯云相关
- 2022.05.03 又拍云提醒绑定域名即将失效(因服务器在国外且备案被取消)
- 2022.05.07 购入腾讯云轻量应用服务器
- 2022.05.07 sicza.com域名转入腾讯云
- 2022.05.07 购入sicza.fun域名,并解析至原国外服务器。
- 2022.05.13 准备sicza.com的备案。
- 2022.05.25 备案完成,又拍云恢复。
轻量应用服务器
- 使用应用镜像安装WordPress
- 防火墙新增端口访问宝塔
- SSL设置失败,在配置文件里增加一句:
#error_page 404/404.html;
- SSL证书下载nginx类型,在网站设置-SSL里添加相应的代码。其中.csr和.pem没用。
- 软件商店安装必要应用:
- Nginx 1.18.0
- MySQL 10.5.6-MariaDB
- PHP-7.4
- Pure-Ftpd 1.0.49
- phpMyAdmin 5.0
- Memcached 1.6.9 - WPJAM插件必要
- 宝塔SSH终端 1.0
- 在php里面安装扩展:Memcached - WPJAM插件必要
- 将
wpjam-basic/template/
目录下的object-cache.php
文件复制到wp-content
目录下- WPJAM插件必要
插件相关
- Akismet 反垃圾评论
- Alx Extensions
- Autoptimize - CSS.JS.HTML等优化
- Custom Smilies - 表情 要再comments.php里第108行增加
<?php cs_print_smilies(); ?>
- Elementor - 页面构建器
- Gutenberg - 编辑器
- Hacklog Remote Attachment Upyun - 又拍云
- Hermit X - 音乐播放器
- Highlighting Code Block - 代码高亮。
- Meta Box - 自定义字段。
- Pretty Links - 短链接。
- SmartideoModified - 在线视频
- Ultimate Addons for Gutenberg - 古登堡优化
- WPJAM BASIC - 优化插件
- 积木箱子 - 与主题配套的插件
- 超级缓存 - 缓存插件。
主题相关
- Twenty Twenty-Two - 第一个区块主题。得专研一下。
- Cosy - 花了好几百大洋买的主题,必须得用啊。
- 新增了一个文章模板,单屏的,用来放作品集。
其他
- 禁用缩略图
// 禁用自动生成的图片尺寸
function shapeSpace_disable_image_sizes($sizes) {
unset($sizes['thumbnail']); // disable thumbnail size
unset($sizes['medium']); // disable medium size
unset($sizes['large']); // disable large size
unset($sizes['medium_large']); // disable medium-large size
unset($sizes['1536x1536']); // disable 2x medium-large size
unset($sizes['2048x2048']); // disable 2x large size
return $sizes;
}
add_action('intermediate_image_sizes_advanced', 'shapeSpace_disable_image_sizes');
// 禁用缩放尺寸
add_filter('big_image_size_threshold', '__return_false');
// 禁用其他图片尺寸
function shapeSpace_disable_other_image_sizes() {
remove_image_size('post-thumbnail'); // disable images added via set_post_thumbnail_size()
remove_image_size('another-size'); // disable any other added image sizes
}
add_action('init', 'shapeSpace_disable_other_image_sizes');
增加若干防止复制,防止图片另存的禁制~
头部,禁制复制:
<script language=javascript type=text/javascript>
<!--
document.oncontextmenu=new Function('event.returnValue=false;');
document.onselectstart=new Function('event.returnValue=false;');
-->
</script>
尾部:其他
<script>//禁止F12
function fuckyou(){
window.close(); //关闭当前窗口(防抽)
window.location="about:blank"; //将当前窗口跳转置空白页
}
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert("你想干嘛?!");
oncontextmenu='return false';
}
}
if (document.layers) {
if (e.which == 3) {
oncontextmenu='return false';
}
}
}
if (document.layers) {
fuckyou();
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
document.oncontextmenu = new Function("return false;")
document.onkeydown =document.onkeyup = document.onkeypress=function(){
if(window.event.keyCode == 123) {
fuckyou();
window.event.returnValue=false;
return(false);
}
}
</script>
<script>
document.onkeydown=function(){
var e = window.event||arguments[0];
if(e.keyCode==123){
alert('你想干嘛?!');
return false;
}else if((e.ctrlKey)&&(e.shiftKey)&&(e.keyCode==73)){
alert('你想干嘛?!');
return false;
}else if((e.ctrlKey)&&(e.keyCode==85)){
alert('你想干嘛?!');
return false;
}else if((e.ctrlKey)&&(e.keyCode==83)){
alert('你想干嘛?!');
return false;
}
// 禁止图片拖放
document.ondragstart = function() {
return false
}
/*
}
document.oncontextmenu=function(){
alert('你想干嘛?!');
return false;
*/
}
</script>
声明: 本文采用 BY-NC-SA 协议进行授权 | 转载请注明出处《WordPress完善日志》
To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard.
Commenter avatars come from Gravatar.