Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AOS

    (@fandoment)

    Can you give me a url to check and wp-admin access?

    Thread Starter eaglend

    (@eaglend)

    normally i work in localhost.
    but i guess you can’t reproduce this bug, so i’m gone online.
    I realized the configuration everything works correctly, but the problem with the apostrophe does not solves.
    I don’t know how to send you the access so i it post here.
    website: seishin-japan.comyr.com
    to add fiction: seishin-japan.comyr.com/add-fiction
    User: FandomEnt / password: FandomEnt
    I have already created three books:
    I can add chapters to “Il m a fait rêver” but I can’t for “Il m’a fait rêver” and “Lyndsay’s Coffee”.

    I need to have an email address to send you administrative access if it is needed

    thank you

    Thread Starter eaglend

    (@eaglend)

    Well I did some debugging and I noticed a JavaScript error.
    SyntaxError: missing) After argument list
    and inspecting the code of part SELECT BOOK I saw this line
    onclick = "radiobookname ('Il m'a fait rêver)"
    suddenly I understood the need to escape the quote of ” m’a “
    so I created these two functions in file fe-super-fiction-class.php :

    function escape_quote( $string ){
    	return str_replace("'", "\'", $string);
    
    }
    function unescape_quote( $string ){
    	return str_replace("\'", "'", $string);
    }

    then I made changes to the same file:
    line 4008:
    onclick="radiobookname('<?php echo escape_quote($term->name); ?>')"
    – to escape the quotes
    line 3877:
    $postbooks = unescape_quote($_POST['book_name_input']);
    – to cancel the change before insertion in the database

    And it works impeccably.
    I hope the problem will be resolved in the next update.

    thank you

    Plugin Author AOS

    (@fandoment)

    Thank you for sharing this! We’ll make sure it’s included in the next update.

    Plugin Author AOS

    (@fandoment)

    This was fixed in the last update. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Book title with apostrophe’ is closed to new replies.