Modus Internet : Located in Vancouver and Burnaby British Columbia we do website design, database integration, custom programming, search engine optimization (SEO) or consultation.

v0.1 Setup and Install Instructions

Setup

  1. Download the zip file to your computer and unzip to decompress. NOTE: Tools like curl, libwww and Wget will not work with this site to download files.
  2. Create a space on your web server to host a new website.
  3. Setup a new MySQL database, or work with an existing database, which you can add three new tables and content to.
  4. Update the /ccmspre/config.php file with you new settings. NOTES: Remember to save with UTF-8 encoding (No BOM), and if you choose to use a different directory other then /ccmspre which contains your config.php file you will need to modify one line of code in two files by hand. Specifically, /index.php (line number 39) and /ccmstpl/css/style.css.php (line number 1)
  5. Copy the small SQL statement located in the /ccmspre/config.php file, approximatively line 37-84 or the SQL statement below, and use it with a product like phpMyAdmin to add new tables and content to the new database detailed in step 3.
    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    SET time_zone = "+00:00";
    
    CREATE TABLE IF NOT EXISTS `ccms_ins_db` (
      `id` int(11) NOT NULL auto_increment,
      `status` tinyint(1) NOT NULL default '0',
      `access` tinyint(1) NOT NULL default '0' COMMENT '0=www side 1=admin side',
      `scope` varchar(255) NOT NULL,
      `word` varchar(255) NOT NULL,
      `de` text NOT NULL,
      `en` text NOT NULL,
      `fr` text NOT NULL,
      `ja` text NOT NULL,
      `zh-cn` text NOT NULL,
      PRIMARY KEY  (`id`),
      KEY `CCMS_insDBPreload_idx` (`status`,`access`,`scope`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
    
    INSERT INTO `ccms_ins_db` (`id`, `status`, `access`, `scope`, `word`, `de`, `en`, `fr`, `ja`, `zh-cn`) VALUES
    (1, 1, 0, 'index_page', 'pangram1', 'Der schnelle braune Fuchs springt über den faulen Hund.', 'The quick brown fox jumps over the lazy dog.', 'Le brun rapide le renard saute sur le chien paresseux.', '速い茶色のキツネは怠け者の犬を跳び越えます.', '那只敏捷的棕毛狐狸跃过那只懒狗.'),
    (2, 1, 0, 'index_page', 'pangram2', 'Wenn Zombies ankommen, schnell Richter Pat faxen.', 'When zombies arrive, quickly fax judge Pat.', 'Quand les zombies arrivent, faxent rapidement le juge Pat.', 'ゾンビが到着するとき、速くパット裁判官にファクスで送ってください。', '僵尸到达时,快速传真法官英保通™技术。'),
    (3, 1, 0, 'index_page', 'pangram3', 'Jede gute Kuh, Fuchs, Eichhörnchen, und Zebra mögen über glückliche Hunde springen.', 'Every good cow, fox, squirrel, and zebra likes to jump over happy dogs.', 'Chaque bonne vache, renard, l''écureuil et le zèbre aiment sauter sur des chiens heureux.', 'すべての良い雌牛、キツネ、リスと、シマウマが幸せな犬を跳び越えることを好みます。', '每个好的母牛、狐狸、鼠笼式,和斑马喜欢跳过快乐狗。'),
    (4, 1, 0, 'index_page', 'pangram4', 'Packen(Dichten) Sie meinen Kasten mit fünf Dutzend Alkohol-Krügen ein(ab).', 'Pack my box with five dozen liquor jugs.', 'Entassez ma boîte de cinq douzaines de cruches d''alcool.', '5ダースの酒水差しで私の箱を満たしてください。', '包我”框中有五个十几个酒瓶。');
    
    CREATE TABLE IF NOT EXISTS `ccms_lng_charset` (
      `id` int(11) NOT NULL auto_increment,
      `lngDesc` varchar(63) NOT NULL default '',
      `status` tinyint(1) NOT NULL default '0',
      `lng` varchar(5) NOT NULL,
      `default` tinyint(1) NOT NULL default '0',
      PRIMARY KEY  (`id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
    
    INSERT INTO `ccms_lng_charset` (`id`, `lngDesc`, `status`, `lng`, `default`) VALUES
    (1, 'German (Standard)', 1, 'de', 0),
    (2, 'English', 1, 'en', 1),
    (3, 'Français', 1, 'fr', 0),
    (4, '日本語 (Japanese)', 1, 'ja', 0),
    (5, '简体中文 (Simplified Chinese)', 1, 'zh-cn', 0);
    
    CREATE TABLE IF NOT EXISTS `ccms_visitor_id` (
      `id` int(11) NOT NULL auto_increment,
      `sid` varchar(32) NOT NULL,
      `expire` bigint(20) NOT NULL default '0',
      `parm1` varchar(255) NOT NULL,
      PRIMARY KEY  (`id`),
      KEY `visitorsID` (`sid`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

Install

Upload all the decompressed templates, including any you just modified, to the server and call your site in any browser.

Adding or Changing Supported Languages

If you would like your site to support more languages then the default installation comes pre-configured with then follow these steps. To remove languages simply revers the steps. (This is only necessary because this version of Custodian CMS (CCMS) does not come with an admin system, it won't be ready till the next big release).

Add the browser language codes you want your site to support to the 'ccms_lng_charset' table and set one to default. Check here for a full list of codes: www.metamodpro.com/browser-language-codes

Add columns for each of your new language codes to the 'ccms_ins_db' table.

Add records to the 'ccms_ins_db' table containing the 'scope', 'word' and content for each language you would like to view in your website.


Contact Us

778 786 2423

1310 Fraser Ave
Port Coquitlam, BC, Canada
V3B 1M4
(10 minutes from Vancouver)
info@modusinternet.com


Copyright © 2017 Modus Internet. All rights reserved.