vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   SQL query - monday as start of the week in calendar (https://vborg.vbsupport.ru/showthread.php?t=227694)

bartek24m 11-10-2009 05:34 AM

SQL query - monday as start of the week in calendar
 
Hi i looking for some query which an able me to set monday as dey of start week for all users and guest

Thank you for help

bartek24m 11-16-2009 05:48 AM

anyone ?

Adrian Schneider 11-16-2009 06:25 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=109731" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=109731</a>

HTH

bartek24m 11-16-2009 07:19 AM

but its only for new registration i would like to set all my registred users i know that it can be done by MYSQL query like
Quote:

UPDATE TABLE 'users' where 'startweek' = 1;
or sth like that

kh99 11-16-2009 02:32 PM

Well, the table is called prefix_user (where prefix_ is whatever your prefix is set to), the field is called startofweek, and the value for Monday seems to be 2. So in theory it should be:

Code:

UPDATE prefix_user SET startofweek = 2

but I'm not sure and I haven't tried it, it could trash your site for all I know. :)

bartek24m 11-17-2009 07:10 AM

if someone can confirm this query ?
it's will be work ?

Adrian Schneider 11-17-2009 11:07 PM

Yes but it won't affect new registrations.


All times are GMT. The time now is 09:05 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.01837 seconds
  • Memory Usage 1,726KB
  • 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_quote_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