Darek L
Forum Replies Created
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] CSS3 validation?Hi Tobias,
I have all my custom CSS in
style.css
file and I don’t care about any version of IE at all.I guess it is good to have valid website code because IE and other browsers trying to be compliant with HTML5 and CSS3 standards. However I decided not nesting
@media
like this:@media screen and (max-width: 500px) { @media screen and (max-width: 300px) { .... } }
Nesting
@media
is working and supported by CSS3 but validator fails on it.Regards,
DarekForum: Plugins
In reply to: [Broken Link Checker] comma in URL not worksYes, You are right. My fault. Other plugin parse it incorrectly.
Forum: Plugins
In reply to: [Broken Link Checker] comma in URL not worksPHP 5.6.2 & WordPress 4.0.
Forum: Plugins
In reply to: [Broken Link Checker] comma in URL not worksJanis,
Link e.g.:
https://example.com/114,website.html
is reported as 404 but as cut link:
https://example.com/114
Regards,
DarekTobias, Finally after research and tests I decided to NOT DO IT.
I was able to register shorcode for kk Star Ratings and print tablepress table with ids in cells and even with stars images (generated HTML). I had to write my own shortcode function for that. However it all was static, no jQuery loaded. I guess it needs to write own plugins to get it all to work with this way, not worth.
Tobias, Again best wishes and thanks for all!
DarekYes I will try to do that. For sure make You know if I get it to work somehow. Thanks for all Tobias. Best wishes.
KK Star Plugin’s Shortcode is not registered
So I have to find out how to register it and after it load jquery datatables scripts. Maybe it will be possible to get it to work somehow…
Tobias, to get the table I have in php:
if ( function_exists('tablepress_print_table') ) { tablepress_print_table( 'id=2&cache_table_output=false' ); }
Table is returned without shorcode (empty cell). The
do_shortcodes()
on it not works. Same effect.you could simply register the KK Star Ratings Shortcode yourself, if it isn’t registered.
I guess this is the problem. How to do that? init hook? but if I have so many different shorcodes in table like e.g.
[kkstar id=1]
,[kkstar id=2]
,[kkstar id=3]
, etc…Tobias,
we are using a different terminology
Agree 100%. I am mean different wordpress design. In case of “ajax design” the
admin-ajax.php
should be controller, PHP should only get data from db (backend) and jQuery, Javascripts (frontend) should only generate content based on the data sent fromadmin-ajax.php
(controller).Current wordpress design is old and overload servers not client side. As You mention, now in wordpress some part of PHP code is backend, some part is controller and some part generate pages (frontend). Very old poor style.
My problem (empty cell) is because the “kk Star Ratings” plugin didn’t register the shortcode for ajax (I really don’t get it why it cannot be automatic for all plugins?). This is not problem of TablePress plugin. Sort and search options just need to load datatables scripts to get it to work.
Regards,
DarekTobias,
but that’s exactly what a page view on the frontend does! That loads all PHP, plugins, and Shortcodes.
I am not sure I understood. PHP and plugins are on the server side (backend). JQuery, Javascripts are on the client side (frontend). JQuery and Javascript don’t have access to db. You can read db only via php and e.g. send results via
admin-ajax.php
to jquery or javascripts. Of course PHP can generate pages but it works on the server side and overload server especially when You need reload page each time do get the same data again and again.The kk Star Ratings shortcode is in db (TablePress table cell). TablePress return table with empty cell via
admin-ajax.php
(not registred shorcode? – but it should be done automatically via wordpress for all plugins). Moreover the sort and search functionality and other scripts from other plugins not works too.Correct?
IMHO, The WordPress should execute all php, plugins and shortcodes on the server side and return correct page under
jQuery.load
or correct data in ajax response. I think they make it too complicated. But it is because theadmin-ajax.php
is in wordpress mainly for some primitive tasks in admin panel ??Tobias, Yes, I tested the
wp_ajax_
method too but the WordPress should be designed to make it all easy. If plugin works normally it should be returned by wordpress in ajax call (especially byjQuery().load()
) exactly the same without extra work of plugin author.I was reading that
admin-ajax.php
works with admin permissions. It is used by wordpress mainly in admin panel. WordPress should execute plugins and everything like it would be normal page viajQuery.load()
and without any additional things but…admin-ajax.php
is not designed to be real AJAX manager… real shi*** ??OK, no problem. Good to know it is impossible yet in wordpress.
Other plugins (qtip2) not working with
admin-ajax
as well. Looks like the wordpress ajax mechanism is not ready yet for real ajax works. It is only good for simple ajax calls like read file or something simple like that.Probably to do so I should make my own wordpress that is able to run plugins in ajax calls ?? or I should read the db by myself via ajax php, send data to jquery and generate the table myself via jquery ?? Too much work, not worth it yet, I guess.
Thanks,
Darek