Changes between Version 4 and Version 5 of GenFAQ


Ignore:
Timestamp:
Feb 22, 2011, 8:46:06 PM (14 years ago)
Author:
IgorL
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenFAQ

    v4 v5  
    55---- 
    66 
    7     == '''''I need to transfer my site to another folder on my server. What do I need to do?''''' == 
     7== '''''I need to transfer my site to another folder on my server. What do I need to do?''''' == 
    88 
    9     1) First of all, you need to move the whole structure of the Dolphin installation directory to the folder you like. You can use the "move" command in your FTP client or use 
     91) First of all, you need to move the whole structure of the Dolphin installation directory to the folder you like. You can use the "move" command in your FTP client or run this command 
    1010 
    11    {{{ 
    12    cd DOLPHIN_FOLDER 
    13    mv * DESTINATION_FOLDER 
    14    }}} 
     11{{{ 
     12cd DOLPHIN_FOLDER 
     13mv * DESTINATION_FOLDER 
     14}}} 
    1515 
    16    command in your SSH account, where ''DOLPHIN_FOLDER'' is the folder where Dolphin is installed and ''DESTINATION_FOLDER'' is the folder where it needs to be placed. 
     16in your SSH account, where ''DOLPHIN_FOLDER'' is the folder where Dolphin is installed and ''DESTINATION_FOLDER'' is the folder where it needs to be placed. 
    1717 
    18    2) Then you need to edit the paths in the file '''inc/header.inc.php''': change the values of the following variables according to your current settings: 
     182) Then you need to edit the paths in the file '''inc/header.inc.php''': change the values of the following variables according to your current settings: 
    1919                   
    20     {{{$site['url']}}} and {{{$dir['root']}}} 
     20{{{$site['url']}}} and {{{$dir['root']}}}[[BR]][[BR]] 
    2121    
    22    3) Then change the path to dolphin directory in your crons. You can do that in your host's control panel account (for example, CPanel or Plesk) or in your SSH client by running this command: 
     223) Then change the path to dolphin directory in your crons. You can do that in your host's control panel account (for example, CPanel or Plesk) or in your SSH client by running this command: 
    2323    
    24    {{{ 
    25    crontab -e 
    26    }}} 
     24{{{ 
     25crontab -e 
     26}}} 
    2727 
    28  4) And the last step is to clean '''/cache/''' and '''/cache_public/''' folders. 
     284) And the last step is to clean '''/cache/''' and '''/cache_public/''' folders. 
    2929 
    3030---- 
     31 
     32== '''''How can I change the server time in Dolphin?''''' == 
     33 
     34You may know that all actions in Dolphin have their date/time specifications, such as Spy events, Blog and Forum posts, Chat messages, etc. All these events are stored in a MySQL database which by default uses the server time zone for them. But your web server may be located in a different country, so it may be necessary to adjust Dolphin time according to your (admin) location.[[BR]] 
     35You will need to change the time zone offsets in 3 files: for Dolphin itself, for Orca and for Ray. 
     36 
     37Here are these files:[[BR]] 
     38''Note: the offset parameter should specify your time zone offset in comparison to GMT time, for example: +6:00, -7:30, etc.''[[BR]][[BR]] 
     391) For Dolphin:[[BR]] 
     40edit {{{/inc/classes/BxDolDb.php}}}[[BR]] 
     41find the line: 
     42{{{ 
     43mysql_query("SET sql_mode = ''", $this->link); 
     44}}} 
     45and put this line right after it: 
     46{{{ 
     47mysql_query("SET @@local.time_zone='offset';", $this->link); 
     48}}} 
     492) For Ray:[[BR]] 
     50edit {{{flash/modules/global/inc/db.inc.php}}} 
     51and put this line 
     52{{{ 
     53mysql_query("SET @@local.time_zone='offset';", $this->rLink); 
     54}}} 
     55after 
     56{{{ 
     57mysql_query("SET @@local.connect_timeout=9000;", $this->rLink); 
     58}}} 
     593) For Orca:[[BR]] 
     60edit {{{modules/boonex/forum/classes/BxDb.php}}} 
     61and put this line 
     62{{{ 
     63mysql_query("SET @@local.time_zone='offset';", $this->link); 
     64}}} 
     65after 
     66{{{ 
     67mysql_query ("SET NAMES 'utf8'", $this->link); 
     68}}} 
     69 
     70Then you need to recompile Orca languages in {{{Admin Dashboard -> Modules -> Orca Forum -> Manage Forum}}} and also clear the site cache in {{{Admin Dashboard -> Quick Overview -> Clear Cache}}} 
     71 
     72This is it. Now the time on all pages and in all widgets should correspond to admin's local time. 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
Fork me on GitHub