Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey pimlfo – the developer seems not to be coming around here much right now so I’ll see if I can help (my knowledge is limited though). Did you try putting the shortcode in a widget on the sidebar to see if it would render, just as an example of something else to test? I’m able to use it that way with no problems. Do any of the other parameters work in the shortcode on the current page? Does it matter if you just use SNIPPET=”” ?

    Thread Starter pimlfo

    (@pimlfo)

    Actually, i used the shortcode on my page and want to display the first 200 character.
    i found that, if i break down the line, it will not display the second line. For example:
    “hi essaysnark,
    please help me to solve this problem”
    then it display ” hi essaysnark” only ( even you set a snippet=”400″ or more )
    if i write the review on the same line then it works great.
    How to fix it?

    I can’t guarantee that this won’t break something else but I have a fix for you. You’ll need to modify the core plugin file – and since an update just came out you should upgrade first, since the upgrade will overwrite this change (remember that for future upgrades too, you may have to re-do this change later).

    Open the file wp-customer-reviews.php (in the directory /wp-content/plugins/wp-customer-reviews).

    Change this (line 853):
    preg_match("/^(.{1,$len})[\s]/i", $text, $matches);

    to this:
    preg_match("/^(.{1,$len})[\s]/s", $text, $matches);

    Make a backup of your plugin before you do this in case something gets screwed up.

    Thread Starter pimlfo

    (@pimlfo)

    hi Essay,

    Appreciate for your help.
    It works perfectly.
    thank you once again.
    ??

    No they’re not the same. You need to change line 853 to the new one I posted. It is different (/s instead of /i).

    Thread Starter pimlfo

    (@pimlfo)

    Dear Essay,

    there’s a problem with ” it’s “
    it display ” it/’s ” as output.

    pimlfo, unfortunately you discovered a bug. That error has nothing to do with the change we suggested; the same thing happens with the original unmodified code. It’s a problem with how the plugin handles edits. It’s saving the standard apostrophe character to the database as \’

    I don’t have time to help you debug and fix this one right now. A workaround that you can use is to go back to any of the saved reviews which you edited in the Customer Reviews screen and change the ‘ character to the ` (backtick) character instead.

    Thanks, the shortcode edit for sidebar display worked for me to! I used this on the version just released.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Character snippet’ is closed to new replies.