[wordpress插件] BillyBenSWF比利·本·SWF

wordpress 插件 文章 2020-03-05 05:50 484 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Here is a simple shortcode to include swf in your articles.

这是在您的文章中包含swf的简单简码。

You just have to give the address of the image (absolute or something that approximates to be relative), and the swf is inserted in your article to its own dimensions.

您只需要提供图像的地址(绝对地址或近似于相对的地址),并将swf插入到文章中即可。

Of course you can change these dimensions through the shortcode.

当然,您可以通过简码更改这些尺寸。

You can also provide flashvars and change the parameters and attributes of the object.

您还可以提供flashvars并更改对象的参数和属性。

You can specify an id and/or class for the html object created.

您可以为创建的html对象指定ID和/或类。

It use swfObject2 (javascript) for swf embedding in the html page.

它使用swfObject2(javascript)将swf嵌入html页面。

Requirements

要求

It require Javascript enabled, php 4 (not sure).

它需要启用Javascript,php 4(不确定)。

You can also visit Plugin Page

您还可以访问插件页面

Options description

选项说明

or visit Plugin Page

或访问插件页面

eg, swf URL : http://www.monsite.com/wp-content/uploads/2011/09/monSWF.swf

例如swf网址:http://www.monsite.com/wp-content/uploads/2011/09/monSWF.swf

Define default settings to the option page.

将默认设置定义到选项页面。

Default folder is the basis for relative url.

默认文件夹是相对URL的基础。

However, if default folder is “http://www.mysite.com/wp-content/uploads/2011/09/”

但是,如果默认文件夹为“ http://www.mysite.com/wp-content/uploads/2011/09/”

and you want access to “http://www.mysite.com/wp-content/mySWF/myswf.swf”, you can write : “wp-content/mySWF/myswf.swf”.

并且要访问“ http://www.mysite.com/wp-content/mySWF/myswf.swf”,可以输入:“ wp-content / mySWF / myswf.swf”。

= ShortCode Simple use=

= ShortCode简单易用=

The parameter to provide to the shortcode is \?movie\?, and accept differents url :

提供给简码的参数为\?movie \ ?,并接受不同的url:

[BB_SWF movie=”http://www.monsite.com/wp-content/uploads/2011/09/monSWF.swf”]

[BB_SWF movie =” http://www.monsite.com/wp-content/uploads/2011/09/monSWF.swf”]

[BB_SWF movie=”/wp-content/uploads/2011/09/monSWF.swf”]

[BB_SWF movie =” / wp-content / uploads / 2011/09 / monSWF.swf”]

[BB_SWF movie=”wp-content/uploads/2011/09/monSWF.swf”]

[BB_SWF movie =” wp-content / uploads / 2011/09 / monSWF.swf”]

[BB_SWF movie=”/uploads/2011/09/monSWF.swf”]

[BB_SWF movie =” / uploads / 2011/09 / monSWF.swf”]

[BB_SWF movie=”uploads/2011/09/monSWF.swf”]

[BB_SWF movie =” uploads / 2011/09 / monSWF.swf”]

If the url is not absolute, it always will point to the directory “http://www.monsite.com/wp-content/, you just have to complete.

如果该网址不是绝对网址,则始终会指向目录“ http://www.monsite.com/wp-content/,您只需完成此操作即可。

This also works if the wordpress installation directory is not the root of your site, eg:

如果wordpress安装目录不是您网站的根目录,这也可以使用,例如:

?http://www.monsite.com/monWP/wp-content/”

?http://www.monsite.com/monWP/wp-content/”

To insert a swf from another domain, or some other directory than wp-content, just provide an absolute url.

要从其他域或wp-content以外的其他目录插入swf,只需提供一个绝对URL。

= General Settings=

=常规设置=

1/ You can provide a width and height for the swf by the parameters width and height.

1 /您可以通过参数width和height为swf提供宽度和高度。

[BB_SWF movie=”uploads/2011/09/monSWF.swf” width=”200″ height=”300″]

[BB_SWF movie =” uploads / 2011/09 / monSWF.swf” width =” 200” height =” 300”]

If one of these two parameters is missing it will be automatically adjusted to the original swf size.

如果缺少这两个参数之一,它将自动调整为原始的swf大小。

2/ You can also specify an id and a class to the object inserted, so you can play with css, by the parameters id et class :

2 /您还可以为插入的对象指定一个id和一个类,这样就可以通过id et class参数来玩CSS:

[BB_SWF movie=”uploads/2011/09/monSWF.swf” id=”monSwfId” class=”swfClassEmbed”]

[BB_SWF movie =” uploads / 2011/09 / monSWF.swf” id =” monSwfId” class =“ swfClassEmbed”]

If the id is not specified, it is automatically set to: ?bbSWFId”+name of the swf

如果未指定ID,则会自动将其设置为:?bbSWFId” +瑞士法郎的名称

3/ You can specify the minimm flash player version by the “minfp” parameter :

3 /您可以通过“ minfp”参数指定minimm Flash播放器版本:

[BB_SWF movie=”uploads/2011/09/monSWF.swf” minfp=”10.0.0″]

[BB_SWF movie =” uploads / 2011/09 / monSWF.swf” minfp =” 10.0.0”]

By default it’s set to 9.0.0

默认情况下设置为9.0.0

FlashVar

FlashVar

You can provide flash vars to the imported swf by the parameter”flashvar?.

您可以通过参数“ flashvar?”为导入的瑞士法郎提供Flash变量。

Different pairs name/value must be separated by the caracter ?&” or ?|”.

不同的名称/值对必须用字符“&”或“ |”分隔。

Pairs name/value could be of the form name1=value1 or name1:value1.

名称/值对可以采用name1 = value1或name1:value1的形式。

[BB_SWF movie=”uploads/2011/09/monSWF.swf” flashvar=”name1=value1&name2:value2|name4=value4″]

[BB_SWF movie =” uploads / 2011/09 / monSWF.swf” flashvar =” name1 = value1&name2:value2 | name4 = value4“]

Advanced Settings

高级设置

1/ Changing Attributes

1 /更改属性

You can modify attributes by the parameter ?attributes?, pairs name/value must be separated by the caracter ?&” or ?|”

您可以通过参数“属性”来修改属性,名称/值对必须由字符“&”或“ ||”分隔

or ?,”, and associated by ?=” ou ?:”.

或?,”,并由?=” ou?:”关联。

[BB_SWF movie=”uploads/2011/09/monSWF.swf” attributes=”name1=value1&name2:value2|name3=value3,name4=value4″]

[BB_SWF movie =” uploads / 2011/09 / monSWF.swf” attribute =“ = name1 = value1&name2:value2 | name3 = value3,name4 = value4”]

for example, to change the alignment of the object:

例如,更改对象的对齐方式:

[BB_SWF movie=”uploads/2011/09/monSWF.swf” attributes=”align:left”]

[BB_SWF movie =” uploads / 2011/09 / monSWF.swf” attribute =“ = align:left”]

2/ Changing parameters

2 /更改参数

VYou can modify parameter by ?params?, pairs name/value must be separated by the caracter ?&” or ?|”

V您可以通过?params?来修改参数,名称/值对必须用字符'&'或?|'分隔。

or ?,”, and associated by ?=” ou ?:”.

或?,”,并由?=” ou?:”关联。

For example for a transparent swf (we play on the wmode) and scripts access modification :

例如,透明的swf(我们在wmode上播放)和脚本访问修改:

[BB_SWF movie=”uploads/2011/09/monSWF.swf” params=”wmode:transparent&allowscriptaccess=always”]

[BB_SWF movie =” uploads / 2011/09 / monSWF.swf” params =“ wmode:transparent&allowscriptaccess = always”]

In short, you can edit all the usual parameters.

简而言之,您可以编辑所有常用参数。

安装步骤

    1. Upload the “BillyBenSWF.zip” file.

    2. 上传“ BillyBenSWF.zip”文件。

    3. Unzip the content
    4. 解压缩内容

    5. Copy the “BillyBenSWF” folder to your wordpress pluging folder
    6. 将“ BillyBenSWF”文件夹复制到您的wordpress插入文件夹

    7. Activate the plugin through the “Plugins” menu in WordPress

    8. 通过WordPress中的“插件”菜单激活插件

      That’s all, use then shortcode in your post.

    9. 就是这样,然后在您的帖子中使用简码。

下载地址
https://downloads.wordpress.org/plugin/billybenswf.1.1.0.zip
-EOF-

AI助手支持GPT4.0