[wordpress插件] Blog Control博客控制

wordpress 插件 文章 2020-03-07 00:50 581 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Blog Control helps to avoid the common operations blog’s owners do when adopting

博客控制有助于避免博客所有者采用时的常见操作

a new template: add scripts from mybloglog, google analytics, adsense or other

一个新模板:从mybloglog,google Analytics,adsense或其他
添加脚本

ad network.

广告网络。

The plugin adds some automatic link modification (target, nofollow, …)

该插件添加了一些自动链接修改(target,nofollow等)

and bots-blocking meta tag on specific pages.

以及特定页面上的阻止漫游器元标记。

Read more in the description.

在说明中阅读更多内容。

Aggressive cache.

积极缓存

If you want to try out an aggressive cache system, blog control

如果要尝试使用主动缓存系统,请使用博客控件

have an implementation of a cache for wordpress pages.

有一个WordPress页面缓存的实现。

It’s experimental, not to

这是实验性的,而不是

be used on high traffic volume blogs, but on those have low database resources.

可用于流量高的博客,但数据库资源较少的博客。

Read the installation istructions.

阅读安装说明。

Head and footer code.

页眉和页脚代码

Blog Control is a plugin that helps in controlling some behaviour of your blog.

Blog Control是一个插件,可帮助控制博客的某些行为。

It lets you to add code in the footer and head section of a template, eg.

它使您可以在模板的页脚和头部添加代码,例如。

to add

添加

code from services like the google sitemaps, mygloglog tracking script, analytics

来自Google网站地图,mygloglog跟踪脚本,分析之类的服务的代码

script without modify the template.

脚本而不修改模板。

So your configurations are template-change-proof.

因此,您的配置是防模板更改的。

Post trasformation.

发布转换

With this plugin you can add an html block before, after and after the “more

使用此插件,您可以在“更多
”之前,之后和之后添加一个html块

break” in a post.

休息”。

I use this to add my adsense code without changing the template pages.

我用它来添加我的adsense代码,而无需更改模板页面。

Those html blocks accept some “tag” like [title] or [title_enconded] that are replaced

这些html块接受被替换的某些“标记”,例如[title]或[title_enconded]

with the post title (plain or url econded).

带有帖子标题(纯文字或网址)。

Tipical usage is a link like this:

常用用法是这样的链接:

http://digg.com/submit?url=[link_encoded]&title=[title_encoded]

  http://digg.com/submit?url= [link_encoded]& title = [title_encoded]

Related posts.

相关帖子

The plugin has a simple related posts function based on a full text

该插件具有一个基于全文的简单相关帖子功能

index of mysql, like the standard related post implementation of other plugins.

mysql的索引,与其他插件的标准相关发布实现类似。

The related posts can be added after a posts using the tag [related] in the “after

可以在帖子后使用“ after
”中的标签[related]添加相关帖子

post” html block code.

发布” html代码。

The output is controlled by some parameters which let to

输出受某些参数控制,这些参数使

set how the relates posts list is displayed.

设置相关帖子列表的显示方式。

Links.

链接

The plugin have many other options: a way to track the outbound links (if you

该插件还有许多其他选择:一种跟踪出站链接的方法(如果您

use google analytics), add the “nofollow” in the post links, force a new windows

使用Google Analytics(分析)),在帖子链接中添加“ nofollow”,并强制使用新的窗口

for all the links outside your domain.

您网域外的所有链接。

HTML compression.

HTML压缩

You can set the plugin to compress the html produced: you can gain from 10 to 30%.

您可以将插件设置为压缩产生的html:您可以从10%提升到30%。

Bots blocking.

机器人阻止

You can force a meta tag in categories and search pages to block the bots (useful to avoid

您可以在类别和搜索页面中强制使用元标记来阻止漫游器(避免使用

the content duplication issue).

内容重复问题)。

The agressive cache

攻击性缓存

This cache is simple and very efficient.

此缓存非常简单且非常有效。

WordPress, when a blog page is called,

WordPress,当博客页面被调用时,

lets someone to intercept the call and do “something” before all.

让某人可以截获呼叫并先执行“某些操作”。

No database access

没有数据库访问权限

will be made before this call neither a connection is activated.

将在此呼叫之前进行,但未激活任何连接。

For who, like me, have a very slow database, servin the page at this step is very

对于像我这样拥有缓慢数据库的人来说,在此步骤中提供的页面非常

efficient.

高效。

But there are some drawbacks:

但是有一些缺点:

    1. no plugin are initialized neither loaded
    2. 未初始化插件,未加载

    3. no statistics can be collected
    4. 无法收集统计信息

    5. no dynamic code in the page will be executed (after the first call)
    6. 在第一个调用之后,页面中将不会执行动态代码

    So, if you have a simple blog like mine, try to see if this cache can be useful.

    因此,如果您有像我这样的简单博客,请尝试看看此缓存是否有用。

    Tha cache is expertimental, this is why no automatic installation has ben provided.

    缓存是专业的,这就是为什么没有提供自动安装的原因。

    =Agressive cache installation (experimental)=

    =积极的缓存安装(实验性)=

      1. if you already have the blog control plugin, deactivate and reactivate it
      2. 如果您已经拥有博客控制插件,请停用并重新激活

      3. deactivate the wp cache plugin if installed
      4. 停用wp缓存插件(如果已安装)

      5. remove or rename the link “wp-content/advanced-cache.php”
      6. 删除或重命名链接“ wp-content / advanced-cache.php”

      7. copy/upload the file “advanced-cache.php” in the folder “wp-content” from the blog control folder
      8. 从博客控制文件夹的“ wp-content”文件夹中复制/上传文件“ advanced-cache.php”

      9. edit the “wp-config.php” and add the line define("WP_CACHE", true"); (if you use the wp cache plugin this code is already there)

      10. 编辑“ wp-config.php”并添加行 define(“ WP_CACHE”,true“); (如果您使用wp缓存插件,则此代码已经存在)

        >

        >

      11. now the aggressive cache is active!

      12. 现在主动缓存已启用

        In the blog control configuration page activate the cache option otherwise when you add a post it won’t show on home page

      13. 在博客控件配置页面中,激活缓存选项,否则当您添加帖子时,该帖子将不会显示在首页上

      14. you’re alone now…
      15. 你现在一个人...

      16. you’re alone now…
      17. 你现在一个人...

      =Remove the agressive cache=

      =删除攻击性缓存=

        1. edit the “wp-config.php” and remove the line define("WP_CACHE", true");
        2. 编辑“ wp-config.php”并删除行 define(“ WP_CACHE”,true“);

        3. delete the “wp-content/advanced-cache.php”
        4. 删除“ wp-content / advanced-cache.php”

        5. deactivate the cache option on the blog control configuration page
        6. 在博客控件配置页面上停用缓存选项

        7. delete the “wp-content/bc-cache” directory
        8. 删除“ wp-content / bc-cache”目录

安装步骤

    1. Put the folder “blog-control” into [wordpress_dir]/wp-content/plugins/
    2. 将“ blog-control”文件夹放入[wordpress_dir] / wp-content / plugins /

    3. Go into the WordPress admin interface and activate the plugin
    4. 进入WordPress管理界面并激活插件

    5. Optional: go to the options page and configure the plugin
    6. 可选:转到选项页面并配置插件

下载地址
https://downloads.wordpress.org/plugin/blog-control.1.1.2.zip
-EOF-

AI助手支持GPT4.0