I'm fairly new to wordpress and I like to ask on how to do or what plugins to use for a specific task.
I am currently using a table plugin (tablepress) and I'd like to use the data from my input to generate a graph (pie or donut chart). Is there a way (or plugin) I could make it? Also if I want to use that data on other events, do I have to manipulate the database manually? Thanks!
The "TablePress" plugin gives you an option of exporting you tables in CSV format. The "TablePress" stores your table's data in the database in the "posts" table.
After exporting you can use the "Visualizer" plugin to then create charts from the exported CSV file.
Take a read of the "Visualizer" plugin's knowledge base to figure out how to use it.
Reference:
StackOverflow link relating to Wordpress Charts Plugin - Wordpress Charts Plugin?
Let me know if this works for you.
Related
Has anybody got any HTML code/know if its possible to fill a table with data from a excel spreadsheet uploaded to the site directory?
I want to display a table of data on my PHP site, and wondered if it is possible to just add the data to a excel spreadsheet and update in the site directory rather than have all the information manually added as HTML rows.
You might want to try out Google Sheets - you can import data from Excel.
Then you can use Sheetrock.
Sheetrock is a JavaScript library for querying, retrieving, and displaying data from Google Sheets. In other words, use a Google spreadsheet as your database! Load entire worksheets or leverage SQL-like queries to sort, group, and filter data. All you need is the URL of a public Google Sheet.
The main limitations are:
As stated in the description. The Google Sheet needs to be public.
This javascript method may not be as fast as php.
I have a .xlsx Microsoft Excel spreadsheet containing thousands of rows, each representing a form field. I need to reconstruct the entire form so that it may be filled out by users and their responses submitted to a MySQL database.
It seems impractical to create a form using for example WordPress plugin NinjaForm, manually creating thousands of fields through the WordPress dashboard. They have functionality for importing, but it seems to be designed only for importing forms that were exported using the ninjaforms UI. The syntax seems complex and undocumented publicly.
I'm not married to the idea of using NinjaForms, but it seems plausible to find some kind of forms creation plugin or software that allows form field importation.
Here's an example of how my data is formatted
http://i.stack.imgur.com/PRkz2.jpg
First export to CSV then try this two plugins :
https://wordpress.org/plugins/wp-csv/
https://wordpress.org/plugins/wp-ultimate-csv-importer/
I use it with a custom post page and this plugin :
https://wordpress.org/plugins/advanced-custom-fields/
I have been trying to import or migrate the Codeigniter database into wordpress. Is that possible to do by any means? I have searched for the solution for it at many places but was unable to find a relevant solution to it.
The real problem is that I have already got a website created in CodeIgniter but now I am making a new site for the same using Wordpress. I need to import all the data and posts contained in the older site into the new one. Maybe database migration can be a easier idea. How will be doing so??
Codeigniter is a development framework for building applications. WordPress is a system that's already built. I think you could build a large application like WordPress with Codeigniter. But it would then rely on Codeigniter's libraries and framework, so to make that happen I think you would have to rebuild WordPress from scratch. Unless Codeigniter can be used as more of a PHP editing framework as well?
Maybe a Codeigniter guru will weigh in.
Source https://wordpress.org/support/topic/codeigniter-wordpress
The main issue with this is that your CI database is not structured the same as wordpress database.
There are some tools that help you import databases in wordpress like this plugins:
WP Ultimate CSV Importer Plugin
Really Simple CSV Importer
CSV Importer
but you will have to provide them the CSV file, that you'll have to export from your CI website. I don't think the import process is very complicated but it's sure easier if you spend some time understanding wordpress databse structure, for that a great resource is the wordpress code and the Database Description page.
The complexity of the CSV file is determined by the objects that you have to import in WordPress here is a check list that its good to have when you start building a CSV file:
1) Are you importing custom post types or just blog entires?
2) Do you have extra info on your import objects that have to be imported as custom fields?
3) Do you have users that you need to import? if you do, what roles do you need to have? do you require custom roles (this makes things very complicated)
4) Do you objects have images attached to them? if they do you'll have to make sure that the import plugin is able to import images!
5) Do you have categories and tags? do they have extra info besides wordpress default info?
When I have to import data to WordPress I try to keep it as simple as possible, I'm trying to import only blog posts and their images if possible depending on the complexity of the initial website I might import categories and tags too but I might split the process before adding this and process them after I have the posts in my wordpress site (this is because I'm more comfortable working with wordpress database and functions then with 3rd party CSV generated files - it might not be your case since you have full access to the initial CI website)
In the end have a look at the plugins I've linked or search yourself some import plugins and check the CSV files they need and try to make the CI website generate a CSV file that is similar with the ones in the examples.
If you have experience with the WordPress databse structure then you can also create a script that loads your data from one database to the other one (I recommend this approach for developers that have experience with both the old websites and WordPress at code/database structure level.
if you can share your databse scheme some extra info might be given.
Export posts from CI database in CSV/XML format or SQL and then change it to CSV accordingly. after that, use WP all import plugin and select the columns correctly. Easy as that..
I have a google chart which is a table and I need to have an option to export the data to excel or csv.
Can this be done within google charts API? I found a few pages with code but that was with the data coming from google docs where as my data is coming from mySQL. My table also has some StringFilters so the exported data should only be the data left after filtering.
If this can't be dont via the API what would be the best way to do this... Can I get the filtered data into any other format that I can use?
Any help is much appreciated
Thanks
Upload to a Google Spreadsheet using PHP (you may want to use ajax for this) or server side language of your choice and convert to Excel from there.
OR
Use the built in toolbar functionality:
https://developers.google.com/chart/interactive/docs/gallery/toolbar
I have a php host, and a mysql database. from that i wish to create charts and diagrams using the mysql db in php. so for example pie charts, bar charts and so on. I'm open to options on this.
further more I would like to be able to create a front end in php that will allow the end user to be able to navigate records from the database and then be able to generate said charts based on the database.
I am familiar with MS Access and some mysql and a tiny bit of php (I have already created the tables and populated with records and such).
so it would be similar to how in MS Access you can create an application/front end and allows the user to peruse records, without being able to create new records, but also generating reports and charts based on the data.
Is this doable with mysql and php, could someone guide me in the right direction and I'll take on board any suggestions you may have to accomplish this.
It will be going into a website, so the user can interact with the site and do as above.
Kind regards
Have a look at FusionCharts XT. They work very well with PHP, and since the charts are pure JavaScript, you are free to use any database on the backend.
Read the FusionCharts documentation for more info.
this is super broad question. The answer is: Yes, this can be done with PHP/MySql.
You will require somekind of API or server side (PHP) chart generation tool if you want to generate images.
I suggest the following charting tools:
http://code.google.com/apis/chart/
http://pchart.sourceforge.net/
Good luck.