Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2007, 11:42 AM
wanno wanno is offline
 
Join Date: Oct 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default (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)
Reply With Quote
  #2  
Old 11-29-2007, 11:45 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Put it as "Lezer(s)" in your phrases.
Reply With Quote
  #3  
Old 11-29-2007, 12:08 PM
wanno wanno is offline
 
Join Date: Oct 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Marco,
That's a solution but it is not very nice, isn't it?

lezer(s)
gast(en)
lid?
Reply With Quote
  #4  
Old 11-29-2007, 12:14 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Move to a country where the language does not have this problem.
Reply With Quote
  #5  
Old 11-29-2007, 12:33 PM
wanno wanno is offline
 
Join Date: Oct 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 11-29-2007, 12:40 PM
RedTyger's Avatar
RedTyger RedTyger is offline
 
Join Date: Nov 2006
Location: UK
Posts: 1,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 11-29-2007, 05:45 PM
wanno wanno is offline
 
Join Date: Oct 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #8  
Old 12-01-2007, 05:18 PM
wanno wanno is offline
 
Join Date: Oct 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

??????????

Why nobody doesn't answer my questions????????
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08074 seconds
  • Memory Usage 2,234KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete