Home Forums Community Support Forum WordPress Plugins Like Gate Plugin adds backslashes to single quotes before shortcode

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #395
    dhewlette
    Participant

    I just installed this and really like the proposed features, but found that the plugin tries to escape all single quote marks before the shortcode occurs on a page.

    After the shortcode the plugin doesn’t mess with anything–but every single quote mark (‘) before the shortcode had a slash + space (\ ) added just before it.

    This makes the plugin unusable, as it completely messes up my theme (none of the classes are recognized with added slashes).

    I installed from wordpress just hours ago. Can you confirm this bug?

    Thanks.

    #396
    Slavi Marinov
    Keymaster

    Hi,

    Can you paste your the shortcode and the page that you’re using and like?

    The slash before the single quotes could be done by WordPress or a php setting (magic quotes).

    #397
    dhewlette
    Participant

    Thanks for the quick response. Here is the shortcode I’m using:

    `
    [like-gate]
    Thanks for being a friend! Here’s a coupon code you can use next time you buy to receive a $1 off.
    Code: X7B4
    [/like-gate]
    `

    And here is part of the source of the page I’m using it on:

    Without the shortcode:
    `

    `

    With the shortcode:

    `

    `

    #398
    dhewlette
    Participant

    Sorry the CSS didn’t come through. Here is a jsfiddle with it:

    Before shortcode:
    http://jsfiddle.net/44LrG/

    Using shortcode:
    http://jsfiddle.net/R8FSD/

    Thanks.

    #399
    Slavi Marinov
    Keymaster

    Hi again,

    Can you create a file called abc.php with the following contents and upload it into your htdocs or public_html folder?

    <?php

    phpinfo();

    ?>

    then search for: “magic_quotes” of any of the following values is On contact your hosting to turn them off.

    • magic_quotes_gpc
    • magic_quotes_runtime

    Note: Make sure you delete abc.php so hackers don’t see your hosting’s settings.

     

    #400
    dhewlette
    Participant

    I checked and all of the magic quotes settings are set to off, both local and global. Here are the ones that showed up in the php info file:

    magic_quotes_gpc
    magic_quotes_runtime
    magic_quotes_sybase

    #413
    Slavi Marinov
    Keymaster

    Hi,

    I am assuming that you’re using the free (lite) version.
    I made a fix which you can download from the link below.

    https://dl.dropboxusercontent.com/u/100016659/tmp/like-gate.zip
    Can you check if it working for you?

    #414
    dhewlette
    Participant

    That seems to have done the trick, thanks!

    What changed?

    Also, what is the best way to center the text? It appears the whole container is very wide, yet the basic text only fills a small part of it and floats left.

    Thanks.

    #446
    Slavi Marinov
    Keymaster

    I did a fixes that removed the slashes.
    Can you create a screenshot and send me the link?

    #1516
    Slavi Marinov
    Keymaster

    Planning to push a new release tomorrow or tomorrow

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.