#The AINOW Plugin
Here I'll share with you "What you can do on it?" as a developer and "How to do that?".
In the box comes:
- Ainow.PHP - This is the core of the plugin.
- Ainow_Statistics.PHP - This is the AINOW Statistics page used in the WP Dashboard.
- Assets folder
- CSS folder
- Admin.SCSS - It is compiled to standart CSS in the Admin.CSS
- Front.SCSS - It is compiled to standart CSS in the Front.CSS
- SCRIPTS folder
- Admin.JS - Here is a simple JS script used in the AINOW Statistics page. Currently it comes with simple function which is used to control the legend button. In case you want to extend the functionality of the Statistics page here is the place!
- Front.JS - Here are the functions for the front-end.
- CSS folder
As the plugin description says:
This plugin is great for story tellers which have what to say and most of all, they want to share amazing stories with the world!
So you its algorithm is built and optimized for that kind of machine learning. But in case you want to change it in different direction it would be a please to add you as a contributor! :-)
#How to extend the functionality?
Before you start to build your idea on the plugin you have to know: How the plugin saves the information?, How the plugin interacts with the user?
How the plugin save the information?
The plugin creates additional table in the Database of the host. That table is called WPDB_PREFIX_ainow_users. There are saved the:
- The unique ID of each user - user_uid
- The unique interest of each user - user_interests
- The "hits" on each of the user interests - user_interests_hits
- The IP address from which the user have reached your website - user_ip
To identify each user the AINOW plugin stores the unique user id (UUID) in the localStorage of the user. In this way the plugin stays away from the COOKIES bad policies and makes the access to the desired values faster.
To keep the track of the current user the AINOW plugin stores his/hers ID into a $_SESSION variable, which allows to the plugin to know the user without the need the ID to be send every single time the page is reloaded.
...TO BE CONTINUED...