usajko
Forum Replies Created
-
Forum: Plugins
In reply to: [BSK PDF Manager] BSK PDF Manager Pro span tagsNot any more … I fixed the issue.
Thanks for the email support.Forum: Plugins
In reply to: [BSK PDF Manager] BSK PDF Manager Pro span tagsProblem solved (with the help of support) with shortcode: bsk-pdfm-category-ul
You can close the ticket!Best regards,
UrosForum: Plugins
In reply to: [Gmedia Photo Gallery] Phantom module not working on my pageGreat, it’s working now!
Thank you very much!Forum: Plugins
In reply to: [Gmedia Photo Gallery] AlbumsGrid 4Ok, than I will use AlbumsGrid 3.
Thank you very much
hi!
Now (after browser and website cache clearing) everything works fine. My final code is:
add_shortcode('mytablepress', 'my_tablepress'); function my_tablepress( $params ) { if (! is_admin() && class_exists('TablePress') ) { add_filter( 'tablepress_disable_custom_commands_shortcode_parameter', '__return_false' ); $params['datatables_custom_commands']='"columnDefs": [ { "type": "accents", "targets": [ 1, 2 ] } ], "order": [[ 1, "asc" ]]'; return tablepress_get_table( $params ); } else { return; } }
I added
class_exists('TablePress')
checking if tablepress plugin is enabled or disabled. I hope this is OK now.Tkank you for your help!
Regards,
UrosHi Tobias,
I found out that my solution is not working in all cases. If I’m logged out to my web site I get web page but there is no table, only shortcode.
I also test your recommended change, but it is even worst. It look that
function_exists( 'tablepress_get_table' )
is FALSE and now I always see my shortcut instead of the table, regardless I’m logged in to my web site or not.Regards,
UrosHi!
I think, I found working solution:
add_shortcode('customordertable', 'customorder_table'); function customorder_table( $params ) { if(! is_admin()) { add_filter( 'tablepress_disable_custom_commands_shortcode_parameter', '__return_false' ); $params['datatables_custom_commands']="'order': [[ 1, 'asc' ]]"; return tablepress_get_table( $params ); } else { return; } }
Thank you very much for your help!
Regards,
UrosHi!
Yes, it is typo – thank you! But this is not a reason that I get error message: The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.
There is no error in server error log file.
The page with my new shortcode “customordertable” is working, also sorting via$pramas['datatables_custom_commands']
is working, but when I want to edit the page where is located shortcode “customordertable” is not working. Only that page cannot be open for edit.When I comment out the line
return tablepress_get_table( $params );
I can edit page again.It is very strange. Do you have maybe any slolution?
Have a nice day,
Uroshi!
When I added the code in functions.php, my admin pages mot working:
add_filter( 'tablepress_disable_custom_commands_shortcode_parameter', '__return_false' ); add_shortcode('customordertable', 'customorder_table'); function customorder_table( $params ) { $pramas['datatables_custom_commands']="'order': [[ 1, 'asc' ]]"; return tablepress_get_table( $params ); }
I got an error: The site is experiencing technical difficulties.
hi!
Is there any option that I add my own shortcode into functions.php, that has same parameters as existing tablepress shortcode and in this mz function adds custom command string directly into $shortcode_atts array and then call your shortcode_table function (not sure if this functon is right one and how to call):
Something like this but I don’t know how and which function to call:
add_shortcode('customordertable', 'customorder_table'); function customorder_table( $params = array() ) { $pramas['datatables_custom_commands']="'columnDefs': [ { 'type': 'accents', 'targets': [ 1, 2 ] } ]"; shortcode_table ($params); //this is call of your existin function }
Best regards,
UrosHi!
You are right, it’s not working due to the
]
Best regards,
UrosHi
Thank you for your replay. I possible to add Custom Command dynamically via shortcode?
I’m using same table on more pages and I should define data types for columns.Best regards,
UrosI forgot to tell you … in crovser console is an error:
Uncaught TypeError: Cannot set property ‘_DT_CellIndex’ of undefined
at Ha (jquery.datatables.min.js?ver=1.9.2:24)
at O (jquery.datatables.min.js?ver=1.9.2:16)
at HTMLTableRowElement.<anonymous> (jquery.datatables.min.js?ver=1.9.2:17)
at jquery.js?ver=1.12.4-wp:2
at Function.map (jquery.js?ver=1.12.4-wp:2)
at a.fn.init.map (jquery.js?ver=1.12.4-wp:2)
at na (jquery.datatables.min.js?ver=1.9.2:16)
at e (jquery.datatables.min.js?ver=1.9.2:92)
at HTMLTableElement.<anonymous> (jquery.datatables.min.js?ver=1.9.2:93)
at Function.each (jquery.js?ver=1.12.4-wp:2)
Ha @ jquery.datatables.min.js?ver=1.9.2:24
O @ jquery.datatables.min.js?ver=1.9.2:16
(anonymous) @ jquery.datatables.min.js?ver=1.9.2:17
(anonymous) @ jquery.js?ver=1.12.4-wp:2
map @ jquery.js?ver=1.12.4-wp:2
map @ jquery.js?ver=1.12.4-wp:2
na @ jquery.datatables.min.js?ver=1.9.2:16
e @ jquery.datatables.min.js?ver=1.9.2:92
(anonymous) @ jquery.datatables.min.js?ver=1.9.2:93
each @ jquery.js?ver=1.12.4-wp:2
each @ jquery.js?ver=1.12.4-wp:2
n @ jquery.datatables.min.js?ver=1.9.2:83
h.fn.DataTable @ jquery.datatables.min.js?ver=1.9.2:165
(anonymous) @ (index):879
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
ready @ jquery.js?ver=1.12.4-wp:2
J @ jquery.js?ver=1.12.4-wp:2Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] String sortinghi
It works not. Thank you for help and quick response!
Best regards,
UrosForum: Plugins
In reply to: [WP Time Slots] Translate language fileI solved the problem with localization.
I’m sorry for bothering you.