Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2015, 01:45 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Issue with languages and footer time.

Hello vBorg.

One of our users (who uses vB 5.1.10) here came to me with an issue regarding the display of the current time in the footer. When English is chosen, the current time displays correctly, however, the date format string {vb:raw vboptions.timeformat} displays for all of the other languages instead.

Line 77 of the "footer" template reads:

HTML Code:
	<div id="footer-current-datetime">{vb:phrase footer_current_time, {vb:if user.timezoneoffset, {vb:raw user.timezoneoffset}}, {vb:date 'timenow', {vb:raw vboptions.timeformat}}}</div>
Now, when I go to the "Phrase Manager" to see what is in the phrase "footer_current_time," I find:

Text: All times are GMT{1}. This page was generated at {2}.

French: Fuseau horaire GMT {1}. Il est actuellement {2}.

German: Die Seite wurde um {2} erstellt.

Rom?nă: Această pagină a fost generată la {2}.

Spanish: Todas las horas son GMT {1}. Esta p?gina fue generada en {2}.

I notice also, that if I save the "footer" template when any language other than English is being used, I get the following warning:

Warning: preg_match(): Unknown modifier '2' in ../includes/adminfunctions_template.php on line 4765

Does anyone know what needs to be done to straighten out this problem?
Reply With Quote
  #2  
Old 12-21-2015, 02:03 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It sounds like it might be an issue with the 12 hour vs. the 24 hour clock. Most European countries use a 24 hour clock. I believe the default clock setting is h:i A whereas the 24 hour setting is H:i

Is the user using the 12 hour setting or the 24 hour setting? Perhaps changing it in the Date and Time options will resolve the issue.
Reply With Quote
Благодарность от:
MarkFL
  #3  
Old 12-21-2015, 02:34 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ProSportsForums View Post
It sounds like it might be an issue with the 12 hour vs. the 24 hour clock. Most European countries use a 24 hour clock. I believe the default clock setting is h:i A whereas the 24 hour setting is H:i

Is the user using the 12 hour setting or the 24 hour setting? Perhaps changing it in the Date and Time options will resolve the issue.
Yes, I did consider that and noted the user is using a 12 hour format, and so I tried a 24 hour format, but I then got "H:i" where the time should be instead of "h:i A".
Reply With Quote
  #4  
Old 12-21-2015, 04:50 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See this Jira regarding the issue - http://tracker.vbulletin.com/browse/VBV-13952 (Note, you must first login to the vbulletin.com forums as a Licensed User before you may see the Jira issue.)

There is a temporary fix posted in there which I have not tried.

Quote:
Find this in template footer:
HTML Code:
{vb:phrase footer_current_time, {vb:if user.timezoneoffset, {vb:raw user.timezoneoffset}}, {vb:date 'timenow', {vb:raw vboptions.timeformat}}}
Change it to:

HTML Code:
{vb:phrase footer_current_time, {vb:if user.timezoneoffset, {vb:raw user.timezoneoffset}}, {vb:datetime 'timenow', time}}
Reply With Quote
Благодарность от:
MarkFL
  #5  
Old 12-21-2015, 05:00 PM
Hectorsky's Avatar
Hectorsky Hectorsky is offline
 
Join Date: Mar 2015
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
See this Jira regarding the issue - http://tracker.vbulletin.com/browse/VBV-13952 (Note, you must first login to the vbulletin.com forums as a Licensed User before you may see the Jira issue.)

There is a temporary fix posted in there which I have not tried.
There now is an other issue on What's going one widget ...

you can check by this link : http://forum.republicamd.com

That issue is for all languages except english one

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

up...
Reply With Quote
  #6  
Old 12-22-2015, 05:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a Jira for that one too - http://tracker.vbulletin.com/browse/VBV-11687
Reply With Quote
Благодарность от:
MarkFL
  #7  
Old 12-22-2015, 06:04 PM
Hectorsky's Avatar
Hectorsky Hectorsky is offline
 
Join Date: Mar 2015
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
There is a Jira for that one too - http://tracker.vbulletin.com/browse/VBV-11687
I found it but , there is a other issue , is showing currently time , but suppose to show when was the most users online

English language: Most users ever online was 81 at 01:00 AM on 01-01-1970.
French and others: Le record de connect?s est de 81, 22 d�cembre 2015 ? 21h03.

In both case is bug

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

I found hot to fix it , and is works fine .

Link : http://tracker.vbulletin.com/browse/VBV-13957

Thanks Lynne

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

Idk what's wrong .... after 2 minutes is showing me this

What's Going On
Collapse
There are currently 2 users online. 1 members and 1 guests.

Most users ever online was 81 at 1449555131 on 1449555131.
Reply With Quote
  #8  
Old 12-22-2015, 06:20 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by faustvasea97 View Post
...I found hot to fix it , and is works fine .

Link : http://tracker.vbulletin.com/browse/VBV-13957

Thanks Lynne

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

Idk what's wrong .... after 2 minutes is showing me this

What's Going On
Collapse
There are currently 2 users online. 1 members and 1 guests.

Most users ever online was 81 at 1449555131 on 1449555131.
I didn't know you were working on it, and I was trying as well, but I put it back, and you may have to reapply the fix you found from Lynne's link. I apologize for the inconvenience.
Reply With Quote
  #9  
Old 12-22-2015, 06:25 PM
Hectorsky's Avatar
Hectorsky Hectorsky is offline
 
Join Date: Mar 2015
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
I didn't know you were working on it, and I was trying as well, but I put it back, and you may have to reapply the fix you found from Lynne's link. I apologize for the inconvenience.
Thanks as well , I just found that link and was trying to fix

If you have time can you help me to fix that 2 bugs

https://vborg.vbsupport.ru/showthread.php?t=321148

Thanks
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 10:44 PM.


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.04034 seconds
  • Memory Usage 2,259KB
  • 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_html
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (3)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete