Membership Plug-in

If you aren't speaking german, you can ask for support or post your request here.
Antworten
gallery666
Beiträge: 8
Registriert: 4. Aug 2020, 20:34

Membership Plug-in

Beitrag von gallery666 »

i want to install the membership plug-in.
can someone tell me the correct way to install it.....

thanks in advance
Daren
rmb
Plugin-Developer
Beiträge: 502
Registriert: 10. Mai 2011, 19:56
Wohnort: 86856

Re: Membership Plug-in

Beitrag von rmb »

Hi Daren,

1. Download the file mitgliedsbeitrag_4.3.4.zip from the Plugins area on this page

2. Copy this zip file into the adm_plugins folder of your Admidio installation and unzip it
(If your FTP program cannot unzip, then unzip the zip file on your local PC and copy the folder mitgliedsbeitrag into the adm_plugins folder of your Admidio installation)

3. Now log in to Admidio and call up the menu module

4. In menu you create a new entry
Name: Membership fee
Menu level: --Plugins
URL: /adm_plugins/mitgliedsbeitrag/mitgliedsbeitrag.php
Visible for: Administrator (an entry in "Visible for" does not necessarily have to be, but if you do not specify a role here, everyone (!!!) can start the plugin)

5. Before the first start of the membership fee plugin, you should enter values for "Contribution €" and "Contribution period" for at least one role (e.g. "Member") (otherwise an error message appears)

6. When the plug-in is started for the first time, a setup routine is run through which then creates additional profile fields.

rmb
MarcoElias
Beiträge: 3
Registriert: 11. Aug 2020, 17:45

Re: Membership Plug-in

Beitrag von MarcoElias »

Hi,
I did this with Mitgliedsbeitrag as also written here:
https://www.admidio.org/dokuwiki/doku.p ... edsbeitrag

But when first called, only a white page appears.

I noticed, there is a /mitgliedsbeitrag/installation.php - do I have to call that manually?
(even if I do, there also only appears an empty page).

Thanks a lot!
rmb
Plugin-Developer
Beiträge: 502
Registriert: 10. Mai 2011, 19:56
Wohnort: 86856

Re: Membership Plug-in

Beitrag von rmb »

Hi MarcoElias,

the installation.php is called automatically if necessary profile fields are missing.

Which plugin version and which Admidio version do you use?

Turn on the debug mode in config.php (from Admidio).

Code: Alles auswählen

$gDebug=1;
and add these lines to mitgliedsbeitrag.php (at the beginning):

Code: Alles auswählen

error_reporting(E_ALL);
ini_set('display_errors', 1);
Are there any error messages when starting the plugin?
Check also the logs file in adm_my_files.

rmb
Flyswadder
Beiträge: 1
Registriert: 25. Mär 2021, 21:17

Re: Membership Plug-in

Beitrag von Flyswadder »

Oh boy, another nu-b.
So, maybe I did something wrong, but I don't read German and though I suspect I installed the plugin correctly, the Admin page for it is all in German. Heck, the difficulty I had even registering for this forum became educational as it was all in German too.

Is there a version in English?
rmb
Plugin-Developer
Beiträge: 502
Registriert: 10. Mai 2011, 19:56
Wohnort: 86856

Re: Membership Plug-in

Beitrag von rmb »

Hi Flyswadder,

have you changed the language from Admidio to English?

->Administration - Einstellungen - Modul Allgemein - Regionaleinstellungen - Sprache: English
->Administration - Preferences - Modul General - Regional settings - Language: English

The membership fee plugin is now displayed in English.

Unfortunately, I haven't gotten to the translation of the wiki yet.

rmb
RVice
Beiträge: 6
Registriert: 3. Mai 2021, 21:13

Re: Membership Plug-in

Beitrag von RVice »

I'm seeing the same ## slugs being presented and my error log is providing:

[2021-09-22 10:46:51.317255] Admidio.ERROR: L10N: Could not found text-id! {"textId":"PLG_MITGLIEDSBEITRAG_OTHER_CONTRIBUTION_ROLES"} {"file":"/admidio/adm_program/system/classes/Language.php","line":119,"class":"Language","function":"get"}

Why are the translations falling back to the Language.php and not the local xml file? I'm using Admidio 4.0.8 and the mitgliedsbeitrag 5.0.2

Note, my language is English and I've changed my Country and Currency as well. So it's not that my system is not setup properly.
rmb
Plugin-Developer
Beiträge: 502
Registriert: 10. Mai 2011, 19:56
Wohnort: 86856

Re: Membership Plug-in

Beitrag von rmb »

Is it just that one phrase that hasn't been translated (that would be very strange) or none at all?

If the language file was not loaded, there should be an entry in the log file, look here.

rmb
RVice
Beiträge: 6
Registriert: 3. Mai 2021, 21:13

Re: Membership Plug-in

Beitrag von RVice »

It is all the tags of the membership plugin. I just copied one to keep the message here short. There is nothing there about missing a language file.

Is there some issue with relative pathing? Note, I did clip some other path stuff that my shared hosting added before the language plugin.
rmb
Plugin-Developer
Beiträge: 502
Registriert: 10. Mai 2011, 19:56
Wohnort: 86856

Re: Membership Plug-in

Beitrag von rmb »

Add the following code to mitgliedsbeitrag.php after the require_once instructions:

Code: Alles auswählen

$gL10n->addLanguageFolderPath(ADMIDIO_PATH . FOLDER_PLUGINS . '/mitgliedsbeitrag/languages');
rmb
RVice
Beiträge: 6
Registriert: 3. Mai 2021, 21:13

Re: Membership Plug-in

Beitrag von RVice »

rmb hat geschrieben: 24. Sep 2021, 20:12 Add the following code to mitgliedsbeitrag.php after the require_once instructions:

Code: Alles auswählen

$gL10n->addLanguageFolderPath(ADMIDIO_PATH . FOLDER_PLUGINS . '/mitgliedsbeitrag/languages');
rmb
:D :D :D This resolved the issue, thanks!
RVice
Beiträge: 6
Registriert: 3. Mai 2021, 21:13

Re: Membership Plug-in

Beitrag von RVice »

See the attachment after the translation. Euros seems to be hard coded in instead of pulling the actual currency unit. Mostly just in the menu item.
Dateianhänge
currency.PNG
currency.PNG (25.01 KiB) 377 mal betrachtet
rmb
Plugin-Developer
Beiträge: 502
Registriert: 10. Mai 2011, 19:56
Wohnort: 86856

Re: Membership Plug-in

Beitrag von rmb »

The € symbol is not hard-coded. Look behind "Total sum:"-> 0 $.

However, the symbol in front of "Paid membership fees" is hard-coded. It's an icon from the "Font Awesome" library. This symbol does not depend on the set currency, it should only represent "money".

rmb
RVice
Beiträge: 6
Registriert: 3. Mai 2021, 21:13

Re: Membership Plug-in

Beitrag von RVice »

Understood, 0 impact on how to use the plug-in. Thanks for all the help
Antworten