Giter Club home page Giter Club logo

quantimodo-personal-studies-plugin's Introduction

I dream of a cybernetic meadow where mammals and computers live together in mutually programming harmony like pure water touching clear sky

I dream of a digital ecology where all actions are perfectly calculated to minimize suffering and gently guided by machines of loving grace.

Authors and Contributors

  • Quint Stoffers (@quipeace)
  • Pothi Kalimuthu (@pothi)
  • Dilshod Inomov (@dinomov)
  • Zain Sohail (@zainsohail)
  • Mike P. Sinn (@mikepsinn)

Find out how you can help us abolish suffering.

quantimodo-personal-studies-plugin's People

Contributors

mikepsinn avatar quantimodotest avatar zainsohail avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quantimodo-personal-studies-plugin's Issues

Change Variable Name "Output" to "Examined"

This should probably be done after you're sure everything else works. I think you should use PHPStorm to do a replace all and tell it to preserve the case.

Eventually, we'll want to switch Input to Secondary or something. However, that will be more difficult because the term "input" is used in contexts other than the Input Variable.

Import Variables from database

Okay, so I am not much of an expert when it comes to jQuery. So I though maybe someone could help me out a bit.

WHAT I AM TRYING TO DO:
I need to get these entries to the template, so that I could populate the graph.

Currently the graph is populate by variables which are acquired through QuantiModo API. I figured it out where it is initializing them but I couldn't find out how to use this var to use my database entries.

Used Here: https://github.com/Abolitionist-Project/QM-Personal-Studies-Plugin/blob/master/themefiles/js/bargraph_charts.js#L4

Initialized Here: https://github.com/Abolitionist-Project/QM-Personal-Studies-Plugin/blob/master/themefiles/js/libs/quantimodo-api.js#L137

I also tried to import the entries to a PHP function and then adding them to the 'variableName', but it didn't work. Here is what I tried ..

<?php 
global $wpdb;
$postid = $wpdb->get_results('SELECT post_id FROM qm_postmeta');
$metaid = $wpdb->get_results('SELECT meta_id FROM qm_postmeta');
$metakey = $wpdb->get_results('SELECT meta_key FROM qm_postmeta');
$metavalue = $wpdb->get_results('SELECT meta_value FROM qm_postmeta');
$currentpostid = get_the_ID();

if(!empty($metavalue)) {
      while($postid == $currentpostid){
        $metavalue = $variable['variableName'];
        return $variable;
      }
}
?>

@dinomov @mikepsinn

Create QM Authentication/Authorization Plugin

This is not urgent, but I wanted to write it down while I was thinking about it.

Option 1 : Build auth into the plugin.

We could build the authentication/authorization process into the plugin directly and follow the Piwik model here:
http://piwik.org/blog/2012/10/wordpress-integration-with-wp-piwik/#network

Option 2: Modify WP Social Login plugin to force user to authenticate/register at QM.

Another method might be to create a modified version of WP Social Login plugin that the client site would be forced to use. This would entail that we do the following:
-- Hide username/password fields
http://wordpress.stackexchange.com/questions/121687/wordpress-hide-the-username-password-fields-in-login-page

-- Disable login through username/password

-- Modify Social Login to support QuantiModo
---- Get user info from /user, create admin if administration == true

-- Create register button
---- Link to QM registration
---- Make sure it redirects to MoodiModo's QM auth endpoint

-- Style new auth form

@QuintiModo @dinomov @victorsmirnov Does this make any sense to you? If so, which option do you recommend?

Create Study Custom Post Type

User Actions:

  • creates a Study custom post.
  • enters a research question like "What affects my mood?" in the title of the post
  • enters some text description of the study in the post body content
  • User selects an "Examined Variable"
  • User selects "What is predictive of EXAMINED VARIABLE?" or "What does EXAMINED VARIABLE predict?"
  • User presses publish.
  • Study posts are listed on a WP Page Called Studies
  • User click on their study title and excerpt in the Studies page.
  • User is taken to a Study post
  • Study post contains the Research Question (Title) at the top
  • User study post body content is below the title
  • Bar graph containing "Secondary Variable" correlations with the Examined Variable is below the post body content text.
  • If user clicks on a Secondary Variable in the bar graph, a scatterplot and timeline chart pop up

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.