Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:plugins:installation [2016/12/31 08:51] – [Install plugin into an Admidio page] fasse | en:plugins:installation [2026/01/24 12:13] (current) – fasse | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Using Plugins in your homepage ====== | ====== Using Plugins in your homepage ====== | ||
| - | ===== The difference between Plugins and Modules===== | + | ===== Which plugins can I install on other websites? |
| - | Plugins are small PHP scripts doing defined works (e.g. show the events of the next 2 days, show actual birthdays...). Unlike modules, plugins | + | Would you like to display specific information from Admidio on your club website or elsewhere? You can use the plugins on the Admidio overview page to do this. There is a plugin for almost every module here, which can also be customized individually. Here you can display |
| + | ===== How do I integrate plugins? ===== | ||
| + | The corresponding plugin should already be set up in the **adm_plugins** folder. | ||
| + | ==== Add plugin to the Admidio overview ==== | ||
| - | ===== How do I install plugins? ===== | + | Check the installation instructions on the plugin |
| - | Download | + | |
| - | ==== Install plugin into an Admidio | + | Other plugins can be integrated with a small HTML script on the overview |
| - | The installation of a plugin within | + | Several DIV blocks are stored there and you have to add your new DIV block behind |
| - | < | + | < |
| - | If you are within a PHP part of your page than you must only add: | + | <div class=" |
| - | <code php>include(ADMIDIO_PATH . FOLDER_PLUGINS . '/birthday/birthday.php' | + | < |
| + | {load_admidio_plugin plugin=" | ||
| + | | ||
| + | </div> | ||
| + | </div></ | ||
| - | Now reload the Admidio page and the plugin should be shown.\\ | + | <code html>< |
| - | Since version 3.0 all css files of the plugins will be loaded automatically | + | <div class=" |
| + | < | ||
| + | {load_admidio_plugin plugin=" | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | In this DIV block replace **plugin-name** with the name of the folder of your plugin | ||
| - | ==== Install | + | If you want to include for example the Plugin '' |
| + | <code html>< | ||
| + | < | ||
| + | <div class=" | ||
| + | | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Then you can reload the overview page and your plugin should be visible. | ||
| + | |||
| + | ==== Integrating | ||
| + | |||
| + | You can usually also use the plugins outside of Admidio pages and integrate them into your own HTML/PHP pages. However, this requires a few additional steps. | ||
| + | |||
| + | === Integrating the plugin as an iFrame === | ||
| + | |||
| + | The simplest and recommended way to integrate plugins from the overview | ||
| + | <code html>< | ||
| + | The specific implementation for the login plugin would then look like this if Admidio is installed in the **admidio** subfolder in your web space: | ||
| + | <code html>< | ||
| + | You can then easily define the size, borders, and spacing of the plugin for CSS, which could look like this: | ||
| + | <code css> | ||
| + | | ||
| + | | ||
| + | | ||
| + | }</ | ||
| + | Now you can reload your website and the corresponding plugin will be displayed :-) | ||
| + | \\ \\ | ||
| + | |||
| + | === Embed plugin as code block in website | ||
| You can also use the plugins outside of the Admidio pages and integrate them into your own HTML / PHP pages. However, a few additional steps are necessary. | You can also use the plugins outside of the Admidio pages and integrate them into your own HTML / PHP pages. However, a few additional steps are necessary. | ||
| - | If you want to integrate the plugin into a pure html page, you should first rename the file extension of the page from html to php. Now you can integrate the plugin with help from PHP into your formerly pure HTML page. Now add the plugins | + | If you want to integrate the plugin into a pure html page, you should first rename the file extension of the page from html to php. Now you can integrate the plugin with help from PHP into your formerly pure HTML page. Now add the plugins (as an example here the plugin |
| 1. First the file // | 1. First the file // | ||
| <code php><? | <code php><? | ||
| - | include_once($_SERVER[' | + | include_once($_SERVER[' |
| ?></ | ?></ | ||
| The // | The // | ||
| Line 40: | Line 82: | ||
| | | ||
| Include-Befehl: | Include-Befehl: | ||
| - | include_once($_SERVER[' | + | include_once($_SERVER[' |
| **Example 2** | **Example 2** | ||
| Line 50: | Line 92: | ||
| | | ||
| Include-Befehl: | Include-Befehl: | ||
| - | include_once($_SERVER[' | + | include_once($_SERVER[' |
| | | ||
| 2. Afterwards the plugins are installed in the desired places: | 2. Afterwards the plugins are installed in the desired places: | ||
| <code php><? | <code php><? | ||
| - | include($_SERVER[' | + | include($_SERVER[' |
| ?></ | ?></ | ||
| Line 61: | Line 103: | ||
| <code php><? | <code php><? | ||
| - | include(' | + | include(' |
| ?></ | ?></ | ||
| Line 69: | Line 111: | ||
| ===== Where can I configure the plugins? | ===== Where can I configure the plugins? | ||
| - | You can configure most plugins via **config.php** file that is located in the same folder | + | You can configure most plugins via a **config.php** file. For this purpose, a **config_sample.php** file is usually delivered, which should be located in the folder |
| - | Does the plugin | + | |
| - | Updating a plugin, these 2 files should not been necessarily | + | If the plugin |
| + | |||
| + | When updating the plugin, these two files need not and should not be overwritten. | ||
| + | |||
| + | You can see an example of integrating a plugin into a website using iFrame in the highlighted area of this screenshot: | ||
| + | {{: | ||
| - | An example of integration | + | You can see an example of plugin |
| - | {{:de: | + | {{:en:plugins:plugin_overview_en.png?400|Integrate |
| ===== How do I update a plugin? | ===== How do I update a plugin? | ||
| - | If there is an update, because of a bug fix, a new feature, or due to an incompatibility with current Admidio version, | + | If there is an update, because of a bug fix, a new feature, or due to an incompatibility with current Admidio version, |