• Resolved lolo343

    (@lolo343)


    I have an issue withe this plugin.
    The website is in french an nothing happened with this plugin or another plugin (french typo)
    No spaces after or before , ; () … and nothing options
    Somebody has an idea ?

Viewing 7 replies - 16 through 22 (of 22 total)
  • Plugin Author pepe

    (@pputzer)

    As I said, this was just off the top of my head and not tested (and in retrospect: with two syntax errors). You can use https://www.phpliveregex.com to test PHP regular expressions.

    
    $text = preg_replace( '@(\w+)(\.|;|!|\?|\))(\S)@u', '$1$2 $3', $text );
    $text = preg_replace( '@(\w+)(:)(\S)@u', '$1 $2 $3', $text );
    

    should do what you specified above. However, if you are not a developer yourself, I suggest you hire one for this project.

    Regarding the feature suggestion, can you make an argument for its general usefulness? At the moment, I don’t see that, but I’m willing to listen.

    Thread Starter lolo343

    (@lolo343)

    Finally , the text disappeared with this code

    Plugin Author pepe

    (@pputzer)

    Sorry, @lolo343, I’m not sure how to help you any further. If you are not a PHP coder, please hire one.

    Regarding the feature suggestion, I’m awaiting your input on its general usefulness. In case you want to argue for this, I suggest you create a new topic to continue the discussion on that.

    Thread Starter lolo343

    (@lolo343)

    Ok I would create a new topic for everyone.
    I wanted to add a space before a parenthesis and ignore the spaces in the links.
    Do not you think it would be interesting to add these features one day in your plugin ?
    I think I’m not the only one with this type of problem…

    Plugin Author pepe

    (@pputzer)

    So yes, please open a new topic and try to specify in detail (with examples) what you actually want to achieve (and why this would be interesting for the general public). This thread has become quite confusing.

    Thread Starter lolo343

    (@lolo343)

    Ok your code is good. It works on my project. Just missing a space before a parenthesis and a function to ignore the links in the text.
    I will use it as a base …

    Thread Starter lolo343

    (@lolo343)

    Thank you very much for all your help. This is the topic if you want to help me more ;))))

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘doesn’t work on customer’s website’ is closed to new replies.