-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import Variables from database #2
Comments
@ZainSohail Are you able to get the variable name out of the database with that?
You're setting In here: See: https://github.com/Abolitionist-Project/QM-Personal-Studies-Plugin/blob/master/themefiles/BarGraph.php#L125 Shouldn't you be populating the variable with a
@dinomov @QuintiModo Could he then replace Should that work? |
This also indicates that the Examined Variable is the Output Variable. So I'm going to make an issue to change those. Please let me know if anyone has objections there. @ZainSohail Were you able to get the page working normally without using the meta value to select the variable? That would be the first step. Then, if I'm not mistaken, you could try modifying the code in the Chrome Developer tools pane to see if my previous idea would work. |
YES
What this step suppose to do is, extract variable name for the post id, and set them as 'variableName' so that it could be used in the graph.
Haven't checked that, need to install the api for that. Will try to do this today .. |
Isn't the API already set up on zain-dev-wplms.quantimo.do? You can set up PHPStorm to work on that site directly. Let me know if you need help doing that. There are tons of different types of meta values. Shouldn't that variable be named $examinedVariable instead of $metavalue? There are also lots of different variables on the page listed on the bargraph. So you don't want to use the variable name $variable. You want to use $examinedVariable or something. Shouldn't you be using the get_post_meta function? Additionally you have |
I made changes to my code, its working this way too
But I still can't make the graph use the variables which we are using in study metaboxes either than getting it from the QuantiModo API |
About setting it up on zain-dev-wplms, just did that its not working for me because it can't detect any variables from my id in zain-dev-wplms. Please try if you have any variables added to your id. Note: Settings in Metaboxe's won't work. |
Can you log in with these? |
The id is not working .. |
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 ..
@dinomov @mikepsinn
The text was updated successfully, but these errors were encountered: