• Resolved oekoplatt

    (@oekoplatt)


    Your plugin. It’s very useful. But I cannot deactivate javascript. After deactivating and saving options javascript ist activated again.
    What can I do to solve it?
    Thank You in advance.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • @oekoplatt

    Are you using the Blocked Editor (gutenberg) or Classic Editor? Or something else?

    Where are you trying to disable JavaScript?

    Thread Starter oekoplatt

    (@oekoplatt)

    I use gutenberg, but it’s the same result, if I replace gutenberg by TinyMCE.
    I try to deactivate js in “Settings” in the register “Appearance”.

    @oekoplatt

    Does the setting you are changing say:

    ‘Use javascript to update IP address in Subscribe2 HTML form data?’

    If so that simply changes some functionality to collect the IP address of the computer submitting the form. If you want to Disable the JavaScript in the form field of the Subscribe2 shortcode, that is contained withing the Gutenberg block settings or is directly in the shortcode as follows:

    [subscribe2 nojs='true']

    See this page for more information on the shortcode parameters:
    https://subscribe2.wordpress.com/support/shortcode-usage-and-parameters/

    Thread Starter oekoplatt

    (@oekoplatt)

    OK. Thank You. But if it is the solution, I don’t understand the role of the checkbox ‘Use javascript to update IP address in Subscribe2 HTML form data?’.
    However, my issue is solved.

    @oekoplatt

    Subscribe2 creates a form for your users to submit an email address, but SPAM laws around the world often require an IP address to be collected as well, the form invisibly submits this. But if you are behind a firewall, on a work network or if the blog uses caching the IP address may be incorrect. That setting enable a JavaScript function and library to dynamically update the invisible IP address using IPify.org. You may or may not need that.

    The JavaScript setting in the shortcode for the form simply adds a message to the email address field that says something like ‘Enter address here…’ that disappears when the box is clicked and reappears if the users leaves the box having entered nothing. again, you may want this functionality, you may not – you can turn if off using the shortcode parameter mentioned above.

    Thread Starter oekoplatt

    (@oekoplatt)

    I understand. But if so my initially questions remains open: Why I cannot deactivate checkbox ‘Use javascript to update IP address in Subscribe2 HTML form data?’.

    @oekoplatt

    Okay, to check that – you uncheck the box and then click the blue ‘Submit’ button below it and when you return to the page the box is checked again?

    Thread Starter oekoplatt

    (@oekoplatt)

    Yes. Exactly.

    @oekoplatt

    There is a bug in the admin/settings.php page, if you are comfortable editing PHP open this file in the WordPress editor or a text editor via FTP.

    There is a line as follows:
    $options = array( 'show_meta', 'show_button', 'ajax', 'widget', 'counterwidget', 's2meta_default' );

    Change that to:
    $options = array( 'show_meta', 'show_button', 'ajax', 'widget', 'counterwidget', 's2meta_default', 'js_ip_updater' );

    Save that and try again and it will hopefully work for you.

    Thread Starter oekoplatt

    (@oekoplatt)

    Thank You very much. This is the solution.

    @oekoplatt

    Thanks for confirming the fix.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘deactivate javascript’ is closed to new replies.