/
EmbedPlugin.txt
53 lines (37 loc) · 2.35 KB
/
EmbedPlugin.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%META:TOPICINFO{author="guest" date="1069302120" format="1.0" version="1.1"}%
---+ EmbedPlugin
This is a plugin that you can use to embed <nop>MediaPlayer files in TWiki webs.
---++ Syntax Rules
%<nop>EMBED{filename="string" width="number" height="number"}%
---++ <nop>%TOPIC% Global Settings
Plugin settings are stored as preferences variables. To reference a plugin setting write ==%<nop><plugin>_<setting>%==, for example, ==%<nop>EMBEDPLUGIN_SHORTDESCRIPTION%==
* One line description, shown in the %SYSTEMWEB%.TextFormattingRules topic:
* Set SHORTDESCRIPTION = Embeds <nop>MediaPlayer files in a TWiki page
* Debug plugin: (See output in =data/debug.txt=)
* Set DEBUG = 0
---++ Plugin Installation Instructions
__Note:__ You need to install a <nop>MediaPlayer plugin on the browser to see the <nop>MediaPlayer content. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.
* Download the ZIP file from the Plugin web (see below)
* Unzip ==%TOPIC%.zip== in your twiki installation directory. Content:
| *File:* | *Description:* |
| ==data/TWiki/%TOPIC%.txt== | Plugin topic |
| ==data/TWiki/%TOPIC%.txt,v== | Plugin topic repository |
| ==lib/TWiki/Plugins/%TOPIC%.pm== | Plugin Perl module |
| ==pub/TWiki/EmbedPlugin/bells.mp3==| Plugin sample mp3 |
* (Dakar) Visit =configure= in your TWiki installation, and enable the plugin in the {Plugins} section.
* Test if the plugin is correctly installed:
* A small <nop>MediaPlayer object below:
%EMBED{filename="%ATTACHURL%/bells.mp3" width="80" height="60"}%
---++ Plugin Info
| Plugin Author: | %SYSTEMWEB%.MartinCleaver based on work by TWiki:Codev.DonnyKurniawan |
| Plugin Version: | 19 Nov 2003 (V1.000) |
| Change History: | <!-- specify latest version first --> |
| 19 Nov 2003: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC% |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/%TOPIC%Dev |
__Related Topics:__ %SYSTEMWEB%.TWikiPreferences, %SYSTEMWEB%.TWikiPlugins
-- %SYSTEMWEB%.MartinCleaver - 6 Aug 2003
%META:FILEATTACHMENT{name="bells.mp3" attr="" comment="" date="1069303438" path="C:\Documents and Settings\Martin Cleaver\Desktop\bells.mp3" size="257472" user="guest" version="1.1"}%