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 [2026/01/11 11:27] – 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 44: | Line 42: | ||
| 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 | + | ==== 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. | ||
| Line 53: | Line 70: | ||
| <code php><? | <code php><? | ||
| - | include_once($_SERVER[' | + | include_once($_SERVER[' |
| ?></ | ?></ | ||
| The // | The // | ||
| Line 65: | Line 82: | ||
| | | ||
| Include-Befehl: | Include-Befehl: | ||
| - | include_once($_SERVER[' | + | include_once($_SERVER[' |
| **Example 2** | **Example 2** | ||
| Line 75: | 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 86: | Line 103: | ||
| <code php><? | <code php><? | ||
| - | include(' | + | include(' |
| ?></ | ?></ | ||
| Line 100: | 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: | ||