vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   default timezone (https://vborg.vbsupport.ru/showthread.php?t=209799)

vidan 03-29-2009 05:33 PM

default timezone
 
Hello simple, i set in admin cp date time gmt+4
then i remove timezone offset in registration ( i thought all ppl in my forum are +4 then no need to set up a time, simply i remove the timezone set) then new member register, got the GMT+0 (by default)

can i set +4 by default ?
i did in admincp, but remove timezone set in register.php make it appeared as gmt+0
where to set+4 as by default, so i can safe remove the timezone off from register.php. thanks

Lynne 03-29-2009 05:37 PM

I am pretty sure that when you first go to register, the default timezone set in the registration form is the same as what you entered into the admin cp. So, why not just leave that there? If you don't want them to change it, I suppose you could just add in a hidden input field (google "form hidden input") and enter the default timezone in there.

vidan 03-29-2009 05:49 PM

Code:

I am pretty sure that when you first go to register, the default timezone set in the registration form is the same as what you entered into the admin cp.
super correct, this is because i want to use quick registration, then cannot have timezone code as well, i set up +4 right in the admincp, but if no option about timezone, then it always go to +0 (ignore the one i set in admincp)
Lynne, where to edit the timezone+4 ? thank you for helping us everyday =)

Lynne 03-29-2009 06:40 PM

I don't know anything about the quick register mod, but you need to add a line like this into the form if you want it to default to +4.

HTML Code:

<input type="hidden" name="timezoneoffset" value="4">
(I think that is correct, you should double check by looking at your page source.)

vidan 03-29-2009 07:27 PM

i love this, thank you Lynne.

Ah`Monk 05-28-2009 02:54 PM

Hi Lynne,

to which form or file do i add in this command?

Lynne 05-28-2009 03:23 PM

He was modifying a form and I was simply giving him a line to add to his form.


All times are GMT. The time now is 10:15 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.01174 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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