anyway to change the Board Started?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
tigerland81379
Registered User
Posts: 3
Joined: Thu Dec 22, 2005 3:26 pm

anyway to change the Board Started?

Post by tigerland81379 »

Is there a way to change the Board Stated I just open this forum 3 days ago and it showing Board Started Wed Dec 31, 1969 7:00 pm.
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Post by karlsemple »

  1. Use [http://www.jackal-tech.co.uk/unix.php]this generator[/url] to get the unix timestamp
  2. Make a file called fix.php with the following:

    Code: Select all

    <?php
    define('IN_PHPBB', true);
    $phpbb_root_path = './';
    include($phpbb_root_path . 'extension.inc');
    include($phpbb_root_path . 'common.'.$phpEx);
    $userdata = session_pagestart($user_ip, PAGE_INDEX);
    init_userprefs($userdata);
    $page_title = 'phpBB Fix';
    include($phpbb_root_path . 'includes/page_header.'.$phpEx);
    
    $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = [_TIMESTAMP_] WHERE config_name = 'board_startdate'";
    
    if(!$result = $db->sql_query($sql))
    {
       message_die(CRITICAL_ERROR, "Could not open config table", "", __LINE__, __FILE__, $sql);
    }
    else
    {
       echo 'Board startdate updated. You should now delete this file';
    }
    include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
    ?>
  3. In the script, replace [_TIMESTAMP_] with the unix timestamp you generated in step 1
  4. Upload the file to phpBB's root folder (the one with config.php)
  5. Run it by navigating to it in your browser (ex. http://www.myforum.com/phpBB2/fix.php)
  6. Delete the file after you see the "Board startdate updated. You should now delete this file" message
Image
tigerland81379
Registered User
Posts: 3
Joined: Thu Dec 22, 2005 3:26 pm

Post by tigerland81379 »

I did this but the Board Started did not change........still the same date
Locked

Return to “2.0.x Support Forum”