Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    it has been a long time since you posted your question but maybe you are still searching for a solution. Have you tried editing the “fields.php” file?

    you could change the function

    function baweic_field_howmany() {
    ?>
    	<input type="number" size="3" min="1" max="10" name="baweic_field_howmany" value="5" /> <em><?php _e( 'How many codes do you need?', 'baweic' ); ?></em>
    <?php
    }

    to

    function baweic_field_howmany() {
    ?>
    	<input type="number" size="5" min="1" max="10000" name="baweic_field_howmany" value="5" /> <em><?php _e( 'How many codes do you need?', 'baweic' ); ?></em>
    <?php
    }

    this way you can generate up to 10000 keys with the “generate codes” form. For me it generates the set number of keys.

    Hope it helps (you or others)!

    Hi,

    regarding the ability to delete the pregenerated “INVITATION” and random gernerated keys. There is a solution by correcting the code on your own. But it may be worth the trouble for managing the keys in the future without erasing everything.

    I just explored the plugin code. There is a bug in the “back-end.php” on line 201.
    the line
    $code = isset( $_GET['code'] ) ? sanitize_key( $_GET['code']) : false;
    should actually be
    $code = isset( $_GET['code'] ) ? strtoupper(sanitize_key( $_GET['code'])) : false;

    It seem there are a few places where the “strtoupper()” is missing and causing trouble.

    Hi,

    regarding the ability to delete the pregenerated “INVITATION” and random gernerated keys.

    I just explored the plugin code. There is a bug in the “back-end.php” on line 201.
    the line
    $code = isset( $_GET['code'] ) ? sanitize_key( $_GET['code']) : false;
    should actually be
    $code = isset( $_GET['code'] ) ? strtoupper(sanitize_key( $_GET['code'])) : false;

    It seem there are a few places where the “strtoupper()” is missing and causing trouble.

    Thread Starter sdenec

    (@sdenec)

    That is perfect! Thank you for your quick help.

    @leandro Martins Guimarães

    You sir, are a real genius. I think it is essential to be able to put prices with country-specific separators, especially for client websites. So thank you very much.

Viewing 5 replies - 1 through 5 (of 5 total)