Linux 软件免费装
Banner图

Nzymes

开发者 aercolino
更新时间 2017年5月29日 22:51
捐献地址: 去捐款
PHP版本: 4.7 及以上
WordPress版本: 4.7.5
版权: GPLv2 or later
版权网址: 版权信息

标签

post php author code custom fields attributes inject enzymes

下载

1.0.0

详情介绍:

Your Problem Nzymes Solution Example When citing authors in a post, you'd like to show the number of posts they published. Maybe there is a plugin for that, maybe there is not. Anyway, how difficult to code would it be? Quite easy, actually, given that WordPress has a function to do exactly that (count_user_posts). With Nzymes, you could cite authors like this
As you know, {[ =john= | @my.cite(1) ]} and I are very good friends.
Which could be shown like this
As you know, John (42 posts) and I are very good friends.
With Nzymes, many things are just a couple of PHP lines away. At a glance Nzymes injections are expressions like this: {[ enzyme-1 | enzyme-2 | … enzyme-N ]} Manual: https://github.com/aercolino/nzymes/blob/master/nzymes-manual.md Reach out

安装:

  1. Upload the zip file.
  2. Activate.

屏幕截图:

  • Example. Unusual words. Picture 1/4. Reading. Nzymes ON.
  • Example. Unusual words. Picture 2/4. Reading. Nzymes OFF.
  • Example. Unusual words. Picture 3/4. Writing. Content.
  • Example. Unusual words. Picture 4/4. Writing. Custom fields.
  • Settings. See the manual.

常见问题:

What is an enzyme?

Any of the following:

  1. A string or an unsigned integer.
  2. A locator of an attribute or a custom field of a post or a post's author.

What is the value of an enzyme?

Any of the following:

  1. Its literal value.
  2. The value referenced by the locator (transclusion).
  3. The value returned by evaluating the PHP code referenced by the locator (execution).

Is Nzymes secure?

Nzymes enforces a rich set of capabilities and roles.

  1. After activating Nzymes, only administrators have all the capabilities.
  2. To allow authors to use Nzymes, administrators may explicitly assign roles as they see fit.
For example, to execute code of some author into a post of some injector, first of all the author must be able to create_dynamic_custom_fields. Then, additionally, either the injector and the author are the same person or the injector can use_others_custom_fields and the author can share_dynamic_custom_fields.

Does Nzymes replace Enzymes?

Yes! However, if you currently use Enzymes, then both can coexist in your blog. Nzymes is much easier to use and it's also much more powerful than Enzymes. Unfortunately, sometimes they are incompatible on the same post. Therefore, Nzymes will only process enzymes injected in posts created after its installation. See the manual to know how you can bend this rule.

更新日志:

1.0.0 First version.