1

Topic: Help with Gender1 and gender2 on quick search and Search form.

Hi all,

I'm translating my site to Finnish and for some reasons when I change the ( Item) fields (Man and Womon) under Seaking to (Miesta and Naista).  Miesta and Naista which are items for Gender2 (Seaking) is showing for (I am) instead of for (Seaking) on the quick search and other search methods.

in other words:   in the Cpanel, Under Setting -->> Custom fields -->> Members -->>
General -->> I am (which is label: Gender1 )

For English I have,
field Name: I am
the Items are ( Man, woman )

For Finnish I have,
Field Name:  Olen
the items are ( Mies, Naista )

Cpanel, Under Setting -->> Custom fields -->> Members -->>
General -->> Seaking a (which is label: Gender2 )

For English I have,
field Name: Seaking a
the items are (Woman, Man)

for Finnish I have,
Field Name: Etsin
the items are (Naista, Miesta)

Now here's where the problem is.  When you go to the site and view the ( Quick search ) form and other search methods...

The items for Seaking a (which is Gender2) show for I am (which is Gender1 ) and the items for Gener1 show for Gender2.

In other words:

For gender1 (which is Olen )  I am ( for English)
I have (Mies, Nainen) for the items .  Man, women (for English)

For Gender2: (which is Etsin ) Seaking a (for English)
I have (Naista, Miesta) for the items.  Woman, man (for English)

On the search forms (Quick search, Search and Advance Search) would show:

Naista and Miesta in the dropdown list for (Olen) which is Gender1

Mies and Nainen in the dropdown list for (Etsin) which is Gender2

Can someone tell me how can I show the reverse of the Above?

Here's what I want:

For (Olen) to have (Mies, Nainen) in the dropdown,  which is Gender1 and for (Etsin) to have (Naista, Miesta) which is Gender2.

The strange thing is that it works fine on the registration form.


Thank you all in advance.

2

Re: Help with Gender1 and gender2 on quick search and Search form.

dj24 wrote:

I'm translating my site to Finnish and for some reasons when I change the ( Item) fields (Man and Womon) under Seaking to (Miesta and Naista).  Miesta and Naista which are items for Gender2 (Seaking) is showing for (I am) instead of for (Seaking) on the quick search and other search methods.

The strange thing is that it works fine on the registration form.

Hi .. Just to let you know. You are not alone. I myself have translated the same thing but to Danish. I can't either get to work right on the quick search. Maybe some smart guy could help us out.

BlackMuddler

3

Re: Help with Gender1 and gender2 on quick search and Search form.

Those who's native language is english hardly understand our issue (my language is russian).
All we have to do is edit search.tpl and ext.search.tpl and put hardcoded values inside. Not very flexible but will look nice and work fine. If you need details - give me link to your site.

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com - vldPersonals admins community

4

Re: Help with Gender1 and gender2 on quick search and Search form.

radioact wrote:

Those who's native language is english hardly understand our issue (my language is russian).
All we have to do is edit search.tpl and ext.search.tpl and put hardcoded values inside. Not very flexible but will look nice and work fine. If you need details - give me link to your site.

Thanks for reply.. Could you post the fix here for future generations of non-english vldPersonals customer or will Vlad perhaps make a fix to the standard files for us, so this is not necessary fix.

Thanks

5

Re: Help with Gender1 and gender2 on quick search and Search form.

Fix depends on every certain website. What I would do is:
1. Add 4 language strings to lang.custom.php
"gender1_man" =>
"Mies",

"gender1_woman" =>
"Nainen",

"gender2_man" =>
"Miesta",

"gender2_woman" =>
"Naista",

2. Open search.tpl and find "combo", this part:

<select class="select" id="field_{field_label}" name="{field_label}">
                                                                    <!-- IF field_label != "gender1" AND field_label != "gender2" -->
                                                                        <option value="">{lang:"core","user_field_any"}</option>
                                                                    <!-- ENDIF -->
                                                                    {dropdownlist:field_items,field_value}
                                                                </select>

Replace with:

<select class="select" id="field_{field_label}" name="{field_label}">
                                                                    <!-- IF field_label == "gender2" -->
                                                                        <option value="4">{lang:"custom","gender1_man"}</option><option value="3">{lang:"custom","gender1_woman"}</option>
                                                                    <!-- ELSEIF field_label == "gender1" -->
                                                                        <option value="2">{lang:"custom","gender2_woman"}</option><option value="1">{lang:"custom","gender2_man"}</option>
                                                                    <!-- ELSE -->
                                                                        <option value="">{lang:"core","user_field_any"}</option>
                                                                        {dropdownlist:field_items,field_value}
                                                                    <!-- ENDIF -->                                                                    
    </select>

Assuming that item ids are 1,2 for gender1 field and 3, 4 for gender2 field.

Last edited by radioact (2010-03-17 14:21:03)

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com - vldPersonals admins community

6

Re: Help with Gender1 and gender2 on quick search and Search form.

radioact wrote:

Fix depends on every certain website.

So many many thank you. I have noted this and will try it out first thing in the morning, and will get back here with the results.

Regards
BlackMuddler

7

Re: Help with Gender1 and gender2 on quick search and Search form.

Thank you for moving me to do that wink I'll wait for good news from your side.

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com - vldPersonals admins community

8

Re: Help with Gender1 and gender2 on quick search and Search form.

Thank's !!! I'm manage Russian site and this fix worked for me smile

Also add same code for ext.search.tpl  for correct display form at sidebar.

9

Re: Help with Gender1 and gender2 on quick search and Search form.

Hi radioact,

i have the same problem in my version 2.3.1 (Template-dark_yellowish), but i cant find "lang.custom.php" in my language folder. So i have copy "lang.custom.php" from the new version 2.5.6 but it still did not work.
In "Quick search" i see just "Unknow field". Please, have you a Solution?

Thanks for your reply,

Ralf


radioact wrote:

Fix depends on every certain website. What I would do is:
1. Add 4 language strings to lang.custom.php
"gender1_man" =>
"Mies",

"gender1_woman" =>
"Nainen",

"gender2_man" =>
"Miesta",

"gender2_woman" =>
"Naista",

2. Open search.tpl and find "combo", this part:

<select class="select" id="field_{field_label}" name="{field_label}">
                                                                    <!-- IF field_label != "gender1" AND field_label != "gender2" -->
                                                                        <option value="">{lang:"core","user_field_any"}</option>
                                                                    <!-- ENDIF -->
                                                                    {dropdownlist:field_items,field_value}
                                                                </select>

Replace with:

<select class="select" id="field_{field_label}" name="{field_label}">
                                                                    <!-- IF field_label == "gender2" -->
                                                                        <option value="4">{lang:"custom","gender1_man"}</option><option value="3">{lang:"custom","gender1_woman"}</option>
                                                                    <!-- ELSEIF field_label == "gender1" -->
                                                                        <option value="2">{lang:"custom","gender2_woman"}</option><option value="1">{lang:"custom","gender2_man"}</option>
                                                                    <!-- ELSE -->
                                                                        <option value="">{lang:"core","user_field_any"}</option>
                                                                        {dropdownlist:field_items,field_value}
                                                                    <!-- ENDIF -->                                                                    
    </select>

Assuming that item ids are 1,2 for gender1 field and 3, 4 for gender2 field.

10

Re: Help with Gender1 and gender2 on quick search and Search form.

Please don´t clone the whole quote we understand you anyway ...
you can take a small piece of the quote instead ... I  think it is a good view wink

but I think it should work ... you can make you own lang.custom.php ...
we have it only if we need more translations on our sites ...

2.3.1 is a old version of vldPersonals ... maybe it not work on it ...
the code can be different on the old version and the new one ...

radioact tell us this:

Assuming that item ids are 1,2 for gender1 field and 3, 4 for gender2 field.
Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals   Swedish Dating on Love2u.se   VldCrowd:s Community

11

Re: Help with Gender1 and gender2 on quick search and Search form.

Hi gugu,
Thanks for your quick response.
I think I will update my version but now I like my template "dark_yellowish" and have little fear of losing the work of many months.
My website supports multiple languages I'll have a lot of work with a change of version
Greetings and a nice day.