vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   (x viewing - x members - x guests) (https://vborg.vbsupport.ru/showthread.php?t=163867)

wanno 11-29-2007 11:42 AM

(x viewing - x members - x guests)
 
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:

Code:

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

Replace it with:

Code:

<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?

Code:

<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 [DATE]1196371855[/DATE] at [TIME]1196371855[/TIME] ---------------

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)

Quote:

<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 [DATE]1196434147[/DATE] at [TIME]1196434147[/TIME] ---------------

--------------- Added [DATE]1196434190[/DATE] at [TIME]1196434190[/TIME] ---------------

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

Quote:

<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????????


All times are GMT. The time now is 03:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03230 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete