AddChat CodeIgniter Pro comes with an installer that makes the installation process fully automated and smooth 🍻
{info.fa-youtube} A complete video tutorial guide for getting started quickly is Coming Soon
sudo chown -R :www-data yourwebsite
FALSE
in application/config/config.php
$config['csrf_regenerate'] = false
Download & Unzip the package.
Copy the addchat_installer_pro folder and paste it into your website root directory.
After doing so, your website directory will look like this.
yoursite.com
│
├── addchat_installer_pro
├── application
├── system
│
├── ..
├── ..
├── ..
│
├── .htaccess
└── index.php
Visit yoursite.com/addchat_installer_pro
to run the installer.
{warning} Make sure .htaccess files exist and not hidden.
{danger} Do not forget to delete the addchat_installer_pro folder after successful installation.
application/config
{info} The $_SESSION variable key name in which your application stores the logged-in user id e.g $_SESSION['user_id'] then the key is user_id
application/controllers
application/libraries
application/language/english
{info} Remember, one license code is valid for one domain only. Contact support for more details.
{success} And finally click install to start the installation process.
Open the common layout file, mostly the common layout file is the file which contains the HTML & BODY tags.
Copy AddChat CSS code and paste it right before closing </head> tag
<!-- 1. Addchat css -->
<link href="<?php echo base_url('assets/addchat/css/addchat.min.css') ?>" rel="stylesheet">
Copy AddChat Widget code and paste it right after opening <body> tag
<!-- 2. AddChat widget -->
<div id="addchat_app"
data-baseurl="<?php echo base_url() ?>"
data-csrfname="<?php echo $this->security->get_csrf_token_name() ?>"
data-csrftoken="<?php echo $this->security->get_csrf_hash() ?>"
></div>
Copy AddChat JS code and paste it right before closing </body> tag
<!-- 3. AddChat JS -->
<!-- Modern browsers -->
<script type="module" src="<?php echo base_url('assets/addchat/js/addchat.min.js') ?>"></script>
<head>
<!-- **** your site other content **** -->
<!-- 1. Addchat css -->
<link href="<?php echo base_url('assets/addchat/css/addchat.min.css') ?>" rel="stylesheet">
</head>
<body>
<!-- 2. AddChat widget -->
<div id="addchat_app"
data-baseurl="<?php echo base_url() ?>"
data-csrfname="<?php echo $this->security->get_csrf_token_name() ?>"
data-csrftoken="<?php echo $this->security->get_csrf_hash() ?>"
></div>
<!-- **** your site other content **** -->
<!-- 3. AddChat JS -->
<!-- Modern browsers -->
<script type="module" src="<?php echo base_url('assets/addchat/js/addchat.min.js') ?>"></script>
</body>
{warning} Replace the
assets
by your website's assets path.
{success} Setup finishes here, now heads-up straight to Settings docs