![]() |
Online Users library usign DB + Authme - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: Online Users library usign DB + Authme (/showthread.php?tid=64549) |
Online Users library usign DB + Authme - moshair - 03-03-2016 Hello, I created Online users library using database to store online users data. I integrated it with a developed version from CodeIgniter Authme by Gilbitron. What's new in Authme: 1. Send activation message to new members. 2. Adding captcha image to the signup page. 3. Adding Users Controller to show members list and member page. 4. Adding control panel for the member to change his info and password. 5. Compatible with CI 3.0.x 6. Compatible with PHP7x. Online users library features: 1. Using minimal database queries. It will not update user state and location on each page load. 2. You can specify time difference between your time and the server time. 3. You can specify time-out. 4. Store user-agent in the database. 5. Store if the guest is bot or not. How to install 1. Add the ci folder content to your CI directory (overwrite). 2. Give folder "captcha" 744 permission 3. Edit application/config/datebase.php and modify values. 4. Edit application/config/config.php and modify values don't forget to change the $config['encryption_key'] 5. Edit application/config/authme.php and change these values Code: $config['authme_name'] = 'YOUR_DOMAIN'; Download & Demo at: http://php-max.com/ci/ I welcome any feedback to improve the code. Regards, RE: Online Users library usign DB + Authme - moshair - 10-17-2016 I got questions asking about the SQL code for creating the tables. The tables "online", and "users" will be created automatically when visiting your site at the first time, If every thing is okay you will see: "online" table created successfully "users" table created successfully Also you can make the tables manually, you will find the SQL code in the end of the file models/Authme_model.php RE: Online Users library usign DB + Authme - Code4fun - 01-28-2017 (03-03-2016, 09:08 AM)moshair Wrote: 2. Give folder "captcha" 777 permission Make the "captcha" folder writable for the webserver and NOT world readable, executable, etc... Cheers ![]() RE: Online Users library usign DB + Authme - moshair - 03-07-2017 Thank you. (01-28-2017, 07:39 AM)Code4fun Wrote:(03-03-2016, 09:08 AM)moshair Wrote: 2. Give folder "captcha" 777 permission |