Support » Plugin: TG Copy Protection » Restriction on no. of Characters to be copied

  • Resolved bbansal15

    (@bbansal15)


    Hi,

    I want to use this plugin in a way, Suppose if a user selects a paragraph but the text should be copied for fixed no.. of characters only after that the copyright link text should be appended.

    Please tell me what changes should i need to made in code so that it pastes 100 characters only & after that copywrite link.

    Thanks
    Bhavesh

    https://wordpress.org/plugins/tg-copy-protection/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bbansal15

    (@bbansal15)

    Its Resolved now

    Thanks

    Plugin Author Ashok Dhamija

    (@ashokdhamija)

    In tg_copy_protection_new_code function, under elseif ($enable == 3) code, the variable selection gets the full selected text. You can manipulate this string variable selection, before using it further in the code in case you want to allow only a limited number of characters.

    Hi there,

    Can u write how u resolved this??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Restriction on no. of Characters to be copied’ is closed to new replies.