Forum Replies Created

Viewing 6 replies - 31 through 36 (of 36 total)
  • Thread Starter Vrefr

    (@vrefr)

    Well, I was too fast in saying that ??
    You are right that the matter is in non-Latin characters, I tried to save form in English – works perfectly.
    I think I see the decision. You are probably making it via something like that
    $string = preg_replace ("/[^a-zA-ZА-0-9\s]/","",$string);

    Try to add Russian characters. Russian alphabet begins with first letter А and ends with last letter Я. Like:
    $string = preg_replace ("/[^a-zA-ZА-Яа-я0-9\s]/","",$string);
    So you won’t need to ban sanitizing. Hope it helps.

    One more thing you can do. In admin interface you can add field in Additional fields after field “Name” that will be “field name” with mark that this should be latin name. Thus “field name” will be variable. And field “Name” will be just the heading of the field in html that users see when registering. Because now when I give the field name in English in Admin interface, but enter additional field by registration in Russian it works. So I believe that the trouble is in giving the field variable Russian characters not in filling in the reg form in Russian.

    If you need to make Russian and Ukrainian translation, I can help to translate if you send me all words and descriptions that are used in plugin and I’ll translate them and send you back.

    Thread Starter Vrefr

    (@vrefr)

    You’re a magician ?? Thanks, I’ll try it tonight as I don’t have access to the server.
    Will write how it went.
    Thanks again.

    Thread Starter Vrefr

    (@vrefr)

    here it is. It’s in russian, but the custom fields youll recognize I belive

    Thread Starter Vrefr

    (@vrefr)

    Dear Radiok, thanks fo your reply,
    the bug that I have now is that when I ad the custm field in registration form and try to register new user it always says that this filed is not filled in. Is there some desicion for that?
    Thanks

    Thread Starter Vrefr

    (@vrefr)

    I suppose it can be done using this code but for each category:

    foreach (get_categories(array('hide_empty'=>false)) as $category)
    			{
    			$getcatnum = $category->count;
    			}

    question is how to adopt it for custom taxonomies?
    I was trying to use this:
    wp_list_categories('echo=0&show_count=1&title_li=&taxonomy=districts');
    and this:

    foreach (get_categories('taxonomy=districts') as $category)
    {
    $getcatname = $category->name;
    
    echo ''. $category->count .' '.$getcatname.' get cat style';
    
    }

    “districst” – are one of the taxonomy
    how to use this withing the plugin?
    And how to be with tags in same way?

    Thread Starter Vrefr

    (@vrefr)

    Don’t you plan to add this option to your plugin updates?

Viewing 6 replies - 31 through 36 (of 36 total)