WordPress.org

Ready to get started?Download WordPress

Forums

Hashtag
[resolved] Problem with national characters (6 posts)

  1. togur
    Member
    Posted 9 months ago #

    In case using a national character in hashtag, the link is truncated until first position of special sign.

    http://wordpress.org/extend/plugins/hashtag/

  2. takien
    Member
    Plugin Author

    Posted 9 months ago #

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

  3. togur
    Member
    Posted 9 months ago #

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

  4. araz
    Member
    Posted 9 months ago #

    how to set or add other language?
    (arabic)

  5. BifidusInactif
    Member
    Posted 9 months ago #

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

    Posted 8 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.