Support » Plugin: Hashtag » Problem with national characters

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


    Hashtag currenly supports a-z and _ characters only.

    Do you intend to implement this feature? Plugin is great, but without support of national characters is unusable for me.

    how to set or add other language?


    If you want to use national characters in hashtag, you could modify the regular expression in the plugin file ‘hashtag.php’ at line 49.

    For example, to accept voyels with accent :

    $content = preg_replace('/(^|\s)#(\w*[a-zA-Zàáâãäåçèéêëìíîïðòóôõöùúûüýÿ_]+\w*)/i', '<span class="'.$class.'">\1#<a href="'.site_url().'?s='.$hash.'\2">\2</a></span>', $content);

    Plugin Author takien


    Please update to the latest version.
    It should works on other character.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with national characters’ is closed to new replies.