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

    (@takien)

    Hello,
    Hashtag currenly supports a-z and _ characters only.

    Thread Starter togur

    (@togur)

    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?
    (arabic)

    David P.

    (@bifidusinactif)

    Hi,

    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àáa????èéê?ìí??eòó???ùú?üy?_]+\w*)/i', '<span class="'.$class.'">\1#<a href="'.site_url().'?s='.$hash.'\2">\2</a></span>', $content);

    Plugin Author takien

    (@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.