nklsbrn
Forum Replies Created
-
Forum: Plugins
In reply to: [Max Mega Menu] Woocommerce Shortcodes in the grid layoutHi Tom,
thank you so much! That works perfectly!
Regards,
Niklas- This reply was modified 7 years, 8 months ago by nklsbrn.
Forum: Plugins
In reply to: [Max Mega Menu] Woocommerce Shortcodes in the grid layoutHi Tom,
thank you so much for helping me.
I was trying integrate the code with the code snippets plugin. It says:
The code snippet you are trying to save produced a fatal error on line 14:
Cannot redeclare mega_menu_remove_main_navigation_class() (previously declared in /www/htdocs/w0135547/drahtseil24.de/wp-content/plugins/megamenu-edit/megamenu-edit.php:13)Can you tell me whats wrong here?
Regards,
NiklasForum: Plugins
In reply to: [Max Mega Menu] Woocommerce Shortcodes in the grid layoutHi Tom,
after unchecking the “Reset Widget Styling”, nothing but the text is shown in the megamenu.
Could you please take a look?
BR,
NiklasForum: Plugins
In reply to: [Max Mega Menu] Woocommerce Shortcodes in the grid layoutHello Tom,
Thanks for your fast reply. Thats the Link to the Page.
http://drahtseil24.de.w0135547.kasserver.com/
(Its just the “Saveking” Item which is activ)
BR
Niklas- This reply was modified 7 years, 8 months ago by nklsbrn.
Hey Rafi,
Try to change the index values inside the “targets” array.
This is the code of my actual version:
<script type='text/javascript' src='http://brownsbest.de/wp-content/plugins/tablepress/js/jquery.datatables.min.js?ver=1.9'></script> <script type="text/javascript"> jQuery(document).ready( function($) { var table = $('#tablepress-1').DataTable({"columnDefs": [{ "visible": false, "targets": [5,6,7,8,9,10] }],"stripeClasses":["even","odd"],"ordering":false,"paging":false,"info":false,"language": { "zeroRecords": "Keine Anbieter vorhanden",}}); $(':checkbox').on('change', function() { // clear the previous search table.columns().every(function() { this.search(''); }); // apply new search $(':checkbox:checked').each(function() { console.log($(this).attr('name') + ": " + $(this).val()); table.column($(this).attr('name')).search('Yes'); }); table.draw(); }); } ); </script>[5,6,7,8,9,10] are the index values of the tablepress columns that are filtered. Hope that will help!
Hi,
thats it! Now it’s working! Perfect – Thank you so mich for helping me. I really leared a lot about wordpress, tablepress and datatable.
You’ll get my donation when i am back home!! 🙂
To hide the search box i used:
label { display: none; }And to have german language i used
"language": { "zeroRecords": "Keine Einträge vorhanden"That’s exactly what I wanted. Thank you again.
Regards
NiklasHi Tobias,
the language part is removed but its still the same. The filtering is not working
<script type='text/javascript' src='http://brownsbest.de/wp-content/plugins/tablepress/js/jquery.datatables.min.js?ver=1.9'></script> <script type="text/javascript"> jQuery(document).ready( function($) { var table = $('#tablepress-2').DataTable({"stripeClasses":["even","odd"],"ordering":false,"paging":false,"searching":false,"info":false}); $(':checkbox').on('change', function() { // clear the previous search table.columns().every(function() { this.search(''); }); // apply new search $(':checkbox:checked').each(function() { console.log($(this).attr('name') + ": " + $(this).val()); table.column($(this).attr('name')).search('Yes'); }); table.draw(); }); } ); </script>Regards
NiklasHi Tobias,
thank you so much for your help. I’ve put the code now into the line. The formatting is correct but the checkbox filtering doen’t work anymore.
<script type='text/javascript' src='http://brownsbest.de/wp-content/plugins/tablepress/js/jquery.datatables.min.js?ver=1.9'></script> <script type="text/javascript"> jQuery(document).ready( function($) { var table = $('#tablepress-2').DataTable({"language":DataTables_language["de_DE"],"stripeClasses":["even","odd"],"ordering":false,"paging":false,"searching":false,"info":false}); $(':checkbox').on('change', function() { // clear the previous search table.columns().every(function() { this.search(''); }); // apply new search $(':checkbox:checked').each(function() { console.log($(this).attr('name') + ": " + $(this).val()); table.column($(this).attr('name')).search('Yes'); }); table.draw(); }); } ); </script>Hello Tobias,
thank you so much! It’s working now!!
One really last thing:
I’am tring now to add the previous tablepress datatables settings. I can’t figure out how and where to add it in the html inline javascript. That sould be the code:
$('#tablepress-3').dataTable({"language":DataTables_language["de_DE"],"stripeClasses":["even","odd"],"ordering":false,"paging":false,"searching":false,"info":false});Best regards
NiklasGood morning Tobias,
thank you so much again!
Okay, i’ve deleted the js out of the “Custom Commands” text field and put the javascript in text field of the wordpress site.
Somehow it still doesn’t work. Is it the worng way to put it in the “Own HTML <script> tag”?
That is the content of the site:
<script type="text/javascript"> $(document).ready( function () { var table = $('#tablepress-2').DataTable(); $(':checkbox').on('change', function() { // clear the previous search table.columns().every(function() { this.search(''); }); // apply new search $(':checkbox:checked').each(function() { console.log($(this).attr('name') + ": " + $(this).val()); table.column($(this).attr('name')).search('Yes'); }); table.draw(); }); } ); </script> <input name="1" type="checkbox" />Feature 1 <input name="2" type="checkbox" />Feature 2 <input name="3" type="checkbox" />Feature 3 <input name="4" type="checkbox" />Feature 4 [table id=2 /]Best Regards,
NiklasHi Tobias,
http://brownsbest.de/table-test/
That is the link of the site. Thank you so much!
Best Regards,
NiklasHello Tobias,
that you so much for the quick help.
This is what i already did. I changed the selector to ‘#tablepress-2’ and pasted the code into the “Custom Commands”-field. After that i created a new page, added the checkboxes and the table shortcut.
This is the page content:
<input type="checkbox" name="1">Feature 1 <input type="checkbox" name="2">Feature 2 <input type="checkbox" name="3">Feature 3 <input type="checkbox" name="4">Feature 4 [table id=2 /]But somehow it doesn’t work. Is there something I might have missed out? 🙁
At live.datatables it is working perfectly.Regards,
NiklasHi Tobias,
Thank you for your answer. That has helped me a lot!!
Now I have the code that provides me the functionality to solve the problem. Unfortunately, I have another problem at this point. I can’t figure out how to integrate this with the tablepress table.Could you help me out here, please?
$(document).ready( function () { var table = $('#example').DataTable(); $(':checkbox').on('change', function() { // clear the previous search table.columns().every(function() { this.search(''); }); // apply new search $(':checkbox:checked').each(function() { console.log($(this).attr('name') + ": " + $(this).val()); table.column($(this).attr('name')).search('Yes'); }); table.draw(); }); } );Viele Grüße nach Magdeburg
Niklas- This reply was modified 7 years, 12 months ago by nklsbrn.