Announcement

Collapse
No announcement yet.

First day of week

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • hdraye
    replied
    up please

    Leave a comment:


  • hdraye
    replied
    Hi
    What about 3.8.4? where can I set startofweek = 7 ??

    thanx

    Leave a comment:


  • hdraye
    replied
    Originally posted by Jake Bunce
    Guests use the setting for the calendar itself:

    Admin CP -> Calendars & Moderators -> Calendar Manager -> Edit -> Start of the Week
    No, It did not work, FDOW is Still Sunday
    Last edited by hdraye; Wed 18 Aug '04, 2:45am.

    Leave a comment:


  • Jake Bunce
    replied
    Originally posted by hdraye
    But what about unregistered users? they still see sunday as FDOW, can you please help with that too
    Guests use the setting for the calendar itself:

    Admin CP -> Calendars & Moderators -> Calendar Manager -> Edit -> Start of the Week

    Originally posted by hdraye
    BTW, I PMd you on vba.com and still waiting for your address
    vba.com?

    Leave a comment:


  • hdraye
    replied
    Thanx Jake
    But what about unregistered users? they still see sunday as FDOW, can you please help with that too

    BTW, I PMd you on vba.com and still waiting for your address

    Thanx

    Hani

    Leave a comment:


  • Jake Bunce
    replied
    Originally posted by hdraye
    Hi
    I use my forum in Saudi Arabia where saturday is the first day of week, I set it up as so in admincp, but users have to set theirs in usercp, some of them will never know that, so can I change the default day to saturday for all users, and then they can if they wish change it?
    The "startofweek" preference for new users is hard-coded into the register.php file. See the red code. You will need to change this to a different number, Sunday - Saturday, 1 - 7:

    Code:
    		$DB_site->query("
    			INSERT INTO " . TABLE_PREFIX . "user
    				(username, salt, password, passworddate, email, styleid, parentemail,
    				showvbcode, usertitle, joindate, daysprune, lastvisit, lastactivity, usergroupid, timezoneoffset,
    				options, maxposts, threadedmode, startofweek, ipaddress, pmpopup, referrerid,
    				reputationlevelid, reputation, autosubscribe, birthday, birthday_search)
    			VALUES
    				('" . addslashes(htmlspecialchars_uni($_POST['username'])) . "',
    				'" . addslashes($salt) . "',
    				'" . addslashes($hashedpassword) . "',
    				NOW(),
    				'" . addslashes(htmlspecialchars_uni($_POST['email'])) . "',
    				" . $vboptions['styleid'] . ",
    				'" . addslashes(htmlspecialchars_uni($_POST['parentemail'])) . "',
    				$regoption[showvbcode],
    				'" . addslashes($usertitle) . "',
    				" . TIMENOW . ",
    				0,
    				" . TIMENOW . ",
    				" . TIMENOW . ",
    				" . intval($newusergroupid) . ",
    				'" . addslashes($_POST['timezoneoffset']) . "',
    				$options,
    				-1,
    				$regoption[threadedmode],
    				[color=red]1,[/color]
    				'" . addslashes(IPADDRESS) . "',
    				$regoption[pmpopup],
    				" . intval($testreferrerid['userid']) . ",
    				" . intval($reputationlevel['reputationlevelid']) . ",
    				" . intval($vboptions['reputationdefault']) . ",
    				$regoption[autosubscribe],
    				'$birthday',
    				'$birthday_search'
    			)
    		");
    To update this preference for existing users, run this query on your database:

    UPDATE user SET startofweek = 7

    If you use table prefixes then you need to change user to include the prefix. You can run this query in your:

    Admin CP -> Import & Maintenance -> Execute SQL Query

    Make sure your userid is entered into your includes/config.php file so you have permission to run queries:

    // ****** USERS WITH QUERY RUNNING PERMISSIONS ******
    // The users specified here will be allowed to run queries from the control panel.
    // See the above entries for more information on the format.
    // Please note that the ability to run queries is quite powerful. You may wish
    // to remove all user IDs from this list for security reasons.
    $canrunqueries = '';


    Originally posted by hdraye
    Also, is there a way to replace the weekend to be Thu-Fri, so if I want a smaller calendar those days disappear not sat-sun?
    It looks like that would require modifying the vBulletin files. For help with this I recommend you post on www.vbulletin.org, the official vB hacking site.

    Leave a comment:


  • hdraye
    started a topic First day of week

    First day of week

    Hi
    I use my forum in Saudi Arabia where saturday is the first day of week, I set it up as so in admincp, but users have to set theirs in usercp, some of them will never know that, so can I change the default day to saturday for all users, and then they can if they wish change it?

    Also, is there a way to replace the weekend to be Thu-Fri, so if I want a smaller calendar those days disappear not sat-sun?

    Regards

    Hani
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X