ka2
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom DataBase Tables] show data of the logged userHi there,
The third argument “$sql_clauses” on this filter is an array of the elements for generating the first argument “$sql”. Certinly so that does not need to use in the above example of the code.
For example, if you want to use of complex query conditions when filtering the SQL, you can be used this argument for refer.
Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] Duplicate Lines CreatedI apologize for the wait.
I released version 2.0.8 as hotfix of some bugs.
Please try to update to new version soon.Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] show data of the logged userThank you for your inquiry.
Yes, we are able to display data of the logged-in user only. There are several ways, I have example of when to add filter below.
<?php function custom_select_query( $sql, $table_name, $sql_clauses ){ if ( ! is_admin() && is_user_logged_in() && $table_name === 'sample' ) { global $cdbt; $current_user = wp_get_current_user(); $where_clause = "user_id = '". (string) $current_user->ID ."'"; $sql = sprintf( 'SELECT %s FROM %s WHERE %s %s', $sql_clauses[0], $table_name, $where_clause, $sql_clauses[2] ); } return $sql; } add_filter( 'cdbt_crud_get_data_sql', 'custom_select_query', 10, 3 );Please include the above code in the “functions.php” etc. on the theme. However, it must be stored user ID in the data of the displaying table.
Example of inserting the ID of the user who is logged in at the time of data registration, please try to see below (sorry in Japanese page).
https://ka2.org/cdbt/v2/filter-reference/cdbt_before_insert_data/
Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] shortcodes not working, cannot display tableThank you for your inquiry.
If you can preview shortcode on the management screen but then the shortcode does not work on the front-end, please try to check your theme and other plugins you have installed.
If the data was not displayed via the shortcode and will remain of the “loading”, you often have a conflict exists within “jQuery” or “underscore.js”.
Please try to check whether the jQuery or underscore.js is not loaded with a double.Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] Duplicate Lines CreatedThank you for providing credentials.
Thanks to you, I was able to recognize the finally trouble.
I probably seem a trouble that happen when the multiple shortcodes was put in the one page at the same time.
I’m going to immediately perform bug fixes.
As soon as possible to fix, so I will release a bug fix version, please wait.Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] Some of the data could not removeThank you very much for reporting.
It is certainly not the rightful message.
That message was occurs when you delete of the multiple matches data from the table that does not have the primary key. Because the currently plugin do not strictly determine the deleted data content, it has become a strange expression message.
I will consider the improvement it.Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] records to be displayedThank you for your inquiry.
The initial number of records that can be set in the plugin options is the initial value for when you create the table.
The initial value that is actually enabled in the shortcode is the value that are displayed in the table list of table management. This setting can be changed from the “Modify Table”.
Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] customizing of formsOh, I understood.
Sorry, it is not able to change displayed messages at the currently plugin.
However certainly as you say, that’s very nice idea that will be able to change messages.I’m going to enhancement for changing displayed messages at the future version.
Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] Duplicate Lines CreatedSorry for my late reply.
I do not know whether can be solved this problem as soon as at present.
However, because I want to see actually a symptom of the problem, please to be able to access to your front end.My e-mail address is ka2@ka2.org.
Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] Duplicate Lines CreatedHmm, that’s a difficult problem.
I’m understanding that was happened trouble for the insert query is running in a continuous.
However, I can’t put my finger on it whether this plugin or a browser or using your theme or other plugins.
Also, it did not happened trouble when I tried at the environment of your same table on the theme of “twentysixteen”.Please try to set the redirect url option of the “cdbt-enrty” shortcode.
Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] sorting – strange behaviorCertainly, as you said.
Sorry, sorting of in the current plugin does not have an ideal behavior.
Sorting process is controlled in the UI side, but I just do not make to yet bug fixes like would have been reset after processing of Ajax.
And I’m going to be fixed by refactoring of the UI at the next minor version up.There is no excuse, but, please acknowledge.
Forum: Plugins
In reply to: [Custom DataBase Tables] customizing of formsThank you for your inquiry.
At the currently plugin, you are able to controll only about changing the show or hide of each fields (columns). After adding your own classes from shortcode setting, please customize by style sheets and JavaScript of the theme side.
Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] using .htaccessThank you for your inquiry.
If it is using the Ajax in WordPress, you use the “wp-admin/admin-ajax.php”. Because this plugin is working all Ajax processing via the “wp-admin/admin-ajax.php”, only that file in the “.htaccess” must have been to be able to access.
Please add a description of the following to the “.htaccess” under the “wp-admin”.
<FilesMatch "(admin-ajax.php)$"> Satisfy Any Order allow,deny Allow from all Deny from none </FilesMatch>Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] turn off line below tablesThank you for your inquiry.
It does not have that function to the currently plugin.
You can be forced to hide by adding a theme or in a post content of the following style.<style> .repeater-footer { display: none; } </style>Thank you,
Forum: Plugins
In reply to: [Custom DataBase Tables] color of table content – preview vs frontendThank you for your inquiry.
Style of content, such as tables and text color that is outputting by this plugin is basically according to “bootstrap.css”. Since it is further affected by the theme of the style at the frontend, if you want to change the color please try to adjust the style theme side.
Thank you,