Simple Membership Plugin › Forums › Simple Membership Plugin › Inconsistent data recording
Tagged: member info, translation
- This topic has 15 replies, 4 voices, and was last updated 6 years, 7 months ago by
Marta.
-
AuthorPosts
-
April 28, 2019 at 8:21 am #18020
michael_t
ParticipantWe’re creating a new user summary when a member logs in. There is an annoying “glitch” in the way data is stored:
Is there a way that this can be amended so that the “member since field” displays the date as per the expiry date field?
We’re using the short codes add on to display this data.
Michael
April 28, 2019 at 8:22 am #18021michael_t
ParticipantMay 3, 2019 at 7:46 pm #18109michael_t
ParticipantAny suggestions?
Regards,
Michael
May 4, 2019 at 6:55 am #18112mbrsolution
ModeratorHi, are you using the Form Builder addon?
Regards
May 4, 2019 at 9:39 pm #18118michael_t
ParticipantHi, are you using the Form Builder addon?
Yes, we are.
Regards,
Michael
May 4, 2019 at 9:50 pm #18119mbrsolution
ModeratorHi, please submit a premium addon support ticket.
Thank you
May 17, 2019 at 6:41 am #18236admin
KeymasterI have updated the show members info addon to add a new parameter to show the member since date value in a formatted way according to your WordPress’s date format settings:
https://simple-membership-plugin.com/simple-membership-addon-show-member-info/August 12, 2019 at 4:16 pm #18728Marta
ParticipantHi,
I’m using the shortcode [swpm_show_member_info column=”member_since_formatted”] and my site and user are configured to Spanish, but I see the date in English.
Could you please help?
August 13, 2019 at 2:03 am #18737admin
KeymasterThe value comes directly from the database. Then it formats it according to the Date format you have set in your WordPress’s general settings. I don’t know how the date value can be shown in spanish. Don’t you have the spanish date format set in the WordPress’s general settings (for Date formatting)?
August 13, 2019 at 3:52 pm #18741Marta
ParticipantHi,
Yes, the rest of plugins show my dates in Spanish with no problem! It has to be something about Simple Membership plugin.
My format is customized, “j F Y”.
I hope you can help!
Kind regards,
MartaAugust 14, 2019 at 1:11 am #18745admin
KeymasterI have just checked the code and it is definitely reading the date format from the settings menu of WordPress then applying the formatting before returning the value.
I have just checked it myself and it is outputting the formatted date according to WP settings. For example, I have set the date format to be “F j, Y” in my WP date format settings. The addon is outputting the formatted date like the following (which is correct):
March 27, 2019
August 16, 2019 at 4:33 pm #18761Marta
ParticipantWell… strangely, it appears in English, but that’s not the case for other plugins.
For instance, on mujeressentadasencirculo.org/blog/, you can see my latest blog posts, and their dates appears in Spanish.
Is there anything else we could investigate?
Kind regards,
MartaAugust 18, 2019 at 1:48 am #18781admin
KeymasterI have updated the following addon with another change that should show the formatted date in your language:
https://simple-membership-plugin.com/simple-membership-addon-show-member-info/Please download a new copy and use it.
August 19, 2019 at 5:27 pm #18789Marta
ParticipantHi, this is working!! Many, many thanks!!
Before I close this thread as solved, I have another request for this same plugin.
Could you please also make translatable the information that the plugin provides about the member?
For instance, I’m using expiry_date, and it says “No expiry”, which is in English.
And I am using account_state, and it says “active”, which is in English too.
It would be very appreciated! 🙂
Marta
August 20, 2019 at 3:26 am #18792admin
KeymasterI have updated the addon so the “No Expiry” text is translatable. Now, the status of the member is actually the value of the database column that just gets shown. It is the raw value of the column. The best way to handle this is probably to customize that addon (or make a small new addon) to add additional conditions in there so it can output custom text based on the raw data it is reading from the database.
-
AuthorPosts
- You must be logged in to reply to this topic.
