• Hi, I was adding a simple TOS checkbox for GDPR compliance, when I found the following:

    1. I thought the text I inserted in the TOS textarea under the Dialogs tab would appear next to the checkbox, but this text goes apparently nowhere (or, I was not able to find it);

    2. I see my checkbox in my form but the text I read is: “Please indicate that you agree to the TOS”. The last one is an hyperlink pointing to a wp-members-tos.php I don’t have (I must insert a link pointing to an existing privacy policy in another page);

    3. I edited the properties of TOS, but I don’t see the custom “Privacy policy” label I set for this field;

    Is there any way to do what I want to do?

    Basicly, I need a checkbox and a custom HTML text following the checkbox: is this possible?

    I’m using the latest version of wp-members, WP 4.9.5, PHP 7.2.3.

Viewing 8 replies - 1 through 8 (of 8 total)
  • 1: the text inserted appears in the tos page

    2: the tos page is in the plugin’s directory

    3: probably wpm sanitizes the field, preventing html. but u could directly edit your /wp-content/plugins/wp-members//wp-members-tos.php to redirect to your tos page

    perhaps tos redirect could be an enhancement ala Custom Stylesheet feature?

    Thread Starter islp

    (@islp)

    1. && 2. Ok, I’ll check this out;

    3. in the Fields sections of WP-settings there’s a list of input types. If you edit the TOS one (click corresponding “Edit”), you access a page where you can set a “Field label”. This one should be “The name of the field as it will be displayed to the user”. But: once I set whatever value, nothing is displayed to “the user”, unless “the user” is administrator of the website (non the user of the form), in that case this causes the change of the label in the Fields title;

    I suppose, anyway, that I should create a custom field, even if I red this is a little tedious task, because you should uninstall the plugin, install it, then set again any single setting (I must say, and I don’t know if this is a known issue, I generally loose some settings even when there are updates)

    Thread Starter islp

    (@islp)

    Reply to the second message: I found you can use a shortcut to set a custom hyperlink on the TOS word (but, as I said, I would like to set a completely different message): https://rocketgeek.com/plugins/wp-members/docs/shortcodes/form/#tos

    Plugin Author Chad Butler

    (@cbutlerjr)

    First, let me address this:

    3: probably wpm sanitizes the field, preventing html. but u could directly edit your /wp-content/plugins/wp-members//wp-members-tos.php to redirect to your tos page

    Don’t ever do that. Any edits to a plugin will be overwritten when you update the plugin. In addition, it can cause other problesm.
    https://rocketgeek.com/basics/do-not-modify-plugin-files/

    I suppose, anyway, that I should create a custom field, even if I red this is a little tedious task, because you should uninstall the plugin, install it, then set again any single setting (I must say, and I don’t know if this is a known issue, I generally loose some settings even when there are updates)

    It sounds like you’re saying you think you need to reinstall the plugin to update this? No, that’s not the case. Creating a custom field is as simple as clicking the “Add Field” button in the Fields tab and adding the field you need.

    This plugin does not change existing settings when there are updates. If a change to any core options needs to be implemented in an update, it will always seek to port the existing settings to the new format; but that is a very rare occurrence.

    Getting the core question – changing the TOS label. The fact that you can edit the label in the Fields editor was actually unintentionally applied when the core functionality of the Fields tab was rebuilt in 3.1.7. This particular label applies a default primarily because it is handled differently than all the other labels.

    In order to change it, you can use the following filter:
    https://rocketgeek.com/plugins/wp-members/docs/filter-hooks/wpmem_tos_link_txt/

    As for the upcoming 3.2.0 version, the filter will still apply; however, there will also be the ability to simply edit the text in the Fields tab (as you are currently attempting to do). My concern with offering this change in the past was how to deal with the existing installs that may be filtering the text and thus calculating an order of priority on which change should apply. But that’s been resolved and 3.2.0 will allow you to directly edit the label.

    Thread Starter islp

    (@islp)

    Hi Chad, thanks for your kind reply.

    It sounds like you’re saying you think you need to reinstall the plugin to update this? No, that’s not the case. Creating a custom field is as simple as clicking the “Add Field” button in the Fields tab and adding the field you need.

    Yes, sorry, I misunderstood the sense of this post (one should never read only half a post ?? ): https://www.butlerblog.com/2010/09/27/adding-custom-fields-in-wp-members/ Anyway, in my case, I do create the field the way you suggest and apparently it is not working: once added, I don’t see my custom field in the list.

    This plugin does not change existing settings when there are updates.

    This is a separate issue I’m still investigating: I’m an old WP-members user and I found myself setting again my settings when I update (not always, but sometimes this happens. They get lost for some reason, don’t ask me how. Once I lost the captcha and I started receiving tons of fake-users spam) ??

    As for the upcoming 3.2.0 version (…)

    Will the update be published before May 25th?

    Plugin Author Chad Butler

    (@cbutlerjr)

    I do create the field the way you suggest and apparently it is not working: once added, I don’t see my custom field in the list.

    Make sure that when you create a checkbox field, that you also include a checked value (value if checked). If this is not included, you’ll get an error message upon submission that the field was not created.

    Will the update be published before May 25th?

    Hopefully.

    Thread Starter islp

    (@islp)

    Make sure that when you create a checkbox field, that you also include a checked value (value if checked). If this is not included, you’ll get an error message upon submission that the field was not created.

    It’s a checkbox and I added an “agree” value, just like the default TOS checkbox. BUT, I found another error:

    Meta Key must contain only letters, numbers, and underscores

    And I haven’t noticed it for a simple reason: the left border of the error text is green, not red as the one displayed in the warnings. ??

    So this works, but there’s apparently no way to add a text to the right of the checkbox.

    • This reply was modified 6 years, 6 months ago by islp.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘TOS Checkbox and text issue’ is closed to new replies.