PDA

View Full Version : (x viewing - x members - x guests)


wanno
11-29-2007, 11:42 AM
I have a dutch forum.
In dutch viewing = lezer (if 1 persons) or lezers (if more persons)
In english viewing is valid for all number of persons

How can I resolve this problem?

(same for members and guests)

Marco van Herwaarden
11-29-2007, 11:45 AM
Put it as "Lezer(s)" in your phrases.

wanno
11-29-2007, 12:08 PM
Thank you Marco,
That's a solution but it is not very nice, isn't it?

lezer(s)
gast(en)
lid?

Marco van Herwaarden
11-29-2007, 12:14 PM
Move to a country where the language does not have this problem. :D

wanno
11-29-2007, 12:33 PM
What a kind of answer is this :)

And change the nationality of all members?

Please be serious.
vbulletin.com said to me that the people in vbulletin.org will find a solution.

RedTyger
11-29-2007, 12:40 PM
Untested, but should work. Search in the FORUMHOME template for:


<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>



Replace it with:


<if condition="$numberregistered > '1'">
<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>
<else />
<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_member_and_y_guests]</phrase>
</if>



Now open the phrase in your AdminCP's Phrase Manager x_members_and_y_guests, copy the text there and create a new phrase called x_member_and_y_guests. Paste the text in and chage lezers to lezer.

wanno
11-29-2007, 05:45 PM
Thank you very much for your reply. :)

Actually there are three words different in dutch if single or plural:

1 member = lid
> members = leden

1 guest = gast
> guests = gasten

1 viewing = lezer
> viewing = lezers

--------------------------------------------------------------------------------

To resolve the first two I tried to change your sintax.
Can you please tell me if this is correct?


<if condition="$numberregistered == '1'" && "$numberguest == '1'">
<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_member_and_y_guest]</phrase>
<else />
<if condition="$numberregistered == '1'" && "$numberguest > '1'">
<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_member_and_y_guests]</phrase>
<else />
<if condition="$numberregistered > '1'" && "$numberguest == '1'">
<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guest]</phrase>
<else />
<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>
</if>


Is that correct?

Do you know where to find the code with the text "x viewing"?
(you know.. how much members are viewing a board)

Thank you.

--------------- Added 1196371855 at 1196371855 ---------------

Can you please tell me if this is correct for the x_viewing members (in forumhome_forumbit_level1_post):
(x_viewing_eenlezer = new variable for one viewer)

<if condition="$forum[browsers] > '1'">
<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>
<else />
<phrase 1="$forum[browsers]">$vbphrase[x_viewing_eenlezer]</phrase>
</if>


--------------- Added 1196434147 at 1196434147 ---------------

--------------- Added 1196434190 at 1196434190 ---------------

I tried the code below but it didn't work.
Can someone help me and tell me what is wrong?


<if condition="$numberregistered == '1' && $numberguest == '1'"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_member_and_y_guest]</phrase></if>
<if condition="$numberregistered == '1' && $numberguest > '1'"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_member_and_y_guests]</phrase></if>
<if condition="$numberregistered > '1' && $numberguest == '1'"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guest]</phrase></if>
<if condition="$numberregistered > '1' && $numberguest > '1'"><phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase></if>

wanno
12-01-2007, 05:18 PM
??????????

Why nobody doesn't answer my questions????????