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 [2021/09/22 11:09] – 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 | |
| - | ===== How do I install plugins? ===== | + | |
| - | Download the plugin | + | |
| - | + | ||
| - | ==== Install plugin into an Admidio | + | |
| Check the installation instructions on the plugin page in the first step. Some Plugins supply their own installation script and integrate themselves thereby independently into our menu. In this case no further steps are necessary. | Check the installation instructions on the plugin page in the first step. Some Plugins supply their own installation script and integrate themselves thereby independently into our menu. In this case no further steps are necessary. | ||
| Line 16: | Line 14: | ||
| Several DIV blocks are stored there and you have to add your new DIV block behind an existing DIV block. The DIV-blocks look like this: | Several DIV blocks are stored there and you have to add your new DIV block behind an existing DIV block. The DIV-blocks look like this: | ||
| + | <code html>< | ||
| + | < | ||
| + | <div class=" | ||
| + | | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| <code html>< | <code html>< | ||
| <div class=" | <div class=" | ||
| Line 26: | Line 32: | ||
| If you want to include for example the Plugin '' | If you want to include for example the Plugin '' | ||
| - | <code html>< | + | <code html>< |
| - | <div class=" | + | |
| - | <div class=" | + | <div class=" |
| - | {load_admidio_plugin plugin=" | + | |
| - | </ | + | </ |
| - | </ | + | |
| </ | </ | ||
| Then you can reload the overview page and your plugin should be visible. | Then you can reload the overview page and your plugin should be visible. | ||
| - | ==== Install plugin into an Admidio | + | ==== Integrating plugins outside of Admidio |
| - | The installation | + | You can usually also use the plugins outside |
| - | <code php><? | + | |
| - | If you are within | + | |
| - | <code php> | + | |
| - | Now reload the Admidio page and the plugin | + | === Integrating |
| - | Since version 3.0 all css files of the plugins will be loaded automatically and must not be added separatly. | + | |
| - | ==== Install plugins outside of an Admidio page ==== | + | The simplest and recommended way to integrate plugins from the overview page into another website is to integrate them as an iFrame into the HTML code of the other website. To do this, you can place the following HTML code exactly where you want the plugin to appear: |
| + | <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 67: | Line 82: | ||
| | | ||
| Include-Befehl: | Include-Befehl: | ||
| - | include_once($_SERVER[' | + | include_once($_SERVER[' |
| **Example 2** | **Example 2** | ||
| Line 77: | 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 88: | Line 103: | ||
| <code php><? | <code php><? | ||
| - | include(' | + | include(' |
| ?></ | ?></ | ||
| Line 102: | Line 117: | ||
| When updating the plugin, these two files need not and should not be overwritten. If new settings or CSS settings are added by the update, the new variables or CSS settings can be copied from the **config_sample.php** into the previous files // | When updating the plugin, these two files need not and should not be overwritten. If new settings or CSS settings are added by the update, the new variables or CSS settings can be copied from the **config_sample.php** into the previous files // | ||
| - | An example of integration of multiple plugins in a sidebar you can see on this screenshot | + | You can see an example of integrating |
| - | {{:de:2.0:documentation:plugins:plugins_show.png?400|Install | + | {{:en:plugins: |
| + | |||
| + | You can see an example of plugin integration on the overview page in this screenshot: | ||
| + | {{: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, you can replace the plugin folder. Download the latest version from [[en: | If there is an update, because of a bug fix, a new feature, or due to an incompatibility with current Admidio version, you can replace the plugin folder. Download the latest version from [[en: | ||