! ! ! S T I L L B E T A ! ! !
Displaying SQL result data as graphical chart on your blog (shortcodes) or your dashboard with use of Google Chart Tools.
- Deactivate plugin through the ‘Plugins’ menu in WordPress
- Delete plugin through the ‘Plugins’ menu in WordPress
It’s best to use the build in delete function of wordpress. That way all the stored data will be removed and no orphaned data will stay.
More translations. Does someone wants to help?
- Upload plugin to the
- Activate the plugin
- Edit/Insert SQL Stament in Settings
- Watch in dashboard
- variable #user_login#
Use SQL statements with #user_login# to be replaced by user login on the fly
Eg. SELECT * FROM wp_users WHERE user_login=’#user_login#;’
Will only give one line whith the result of the current user login, where
SELECT * FROM wp_users;
will give you all lines
- What about the shortcode?
[dsscode no=x title=”My Title” width=”100%” height=”400″ pagesize=”50″]
x is the number of your SQL statement
title is the title
width, use percent values oder just figures which will be treated as picxel, leave empty for full width of 100%
height=”400″, same as above
pagesize=”50″: The number of rows in each page (only with charttype table)
- Can I access other databases than wordpress database?
Yes, but you have the grant your user access (better only select rights) to the database. Than you can use “SELECT * FROM database.table;” as you are used to. Be careful this might cause security risks.
- Where can I find more information on Google Charts?
- How can I support you?
Post a comment on Display SQL Stats
- What is the plugin page?
- Do you have other plugins?
Check out my other WordPress Plugins
- Where do I post my feedback?
Post it at the plugin page: Display SQL Stats
Interestingly, the plugin does not requires me to specify x and y axes, but somehow it figures out. I guess user would have to put the x axis values in the first column and y axis values in the following columns.
I’ve tried several charts-making plugins. I would have to say this is exactly the one I needed. There are some other charts-making plugins are quite popular, but you can barely do anything with their free versions.
Contributors & Developers
“Display SQL Stats” is open source software. The following people have contributed to this plugin.Contributors
- tested with WP 4.5
- replaced deprecated function get_currentuserinfo with wp_get_current_user
- tested von WP 4.3
- remove more unnecessary warning messages
- tested von WP 4.1
- remove unnecessary warning message
- default settings: width and height
- new statements are always attached at the end to keep numbering straight.
- More settings for shortcode table (see faqs)
- Added variable #user_login# to be replaced with user login name on the fly (see faqs)
- New chart type: Table (a pure, sortable, smart table)
- added title to shortcode
- handling of session error during activation
- Now with shortcodes to place your graphics everywhere (read FAQ section)
- fix of small bug on empty values
- deleting of unnecessary warning message
- allow user with different roles to see results on dashboard
- adding/removing SQL statements more stylish
- fix bug on automatic detection of column types
- better formatting of debug information
- only enrich header when on dashboard
- fixing small bug on min/max values when using more than one barcharts
- placing automatic max/min values on barcharts for better visualisation
- bug fix on emtpy results
- switch charts on/off
- bug fix on wrong date display
- Check on WordPress 3.6.1
- New chart types: Bar Chart
- auto detecting of column types: date, number, string
- Use different chart types (Pie Chart, Scatter Chart, Bubble Chart)
- Use multiple SQL statments and charts
- Tested with WP 3.6
- New default demo SQL to demonstrate how to insert additional columns
- NEW: Notepad function to store different SQL statement, ideas or whatever
- first test version