samjco
Forum Replies Created
-
Forum: Plugins
In reply to: [Video Conferencing with Zoom] Dynamically create meetings from ACF/ meta+1
And thank you for this awesome plugin.Forum: Plugins
In reply to: [Booking Calendar Contact Form] How to edit the PayPal product nameseems as if you are using the product_name var to Paypal.. but this is only 127 characters..The custom var is 256 characters..
Forum: Plugins
In reply to: [Easy Dash for LearnDash] Calculation of multiple coursesYes, ??
Based on the authors of the courses.
Forum: Plugins
In reply to: [Easy Dash for LearnDash] Calculation of multiple coursesYou know Post__in might not be the best reference…but:
'author__in' => array(1,2,3) // or 'current' for current user
So I was thinking as a quick and dirty solution you can add a new
"author_ids"
atts
to theincludes\shortcode.php
(PRO) which is for global, not filtered, where a user can enter a string of ids of authors OR just ‘current’. Then make that variableGLOBAL
like:global $tred_author_data_ids; $tred_author_data_ids = $edfl_widget_atts['author_ids'];
Next go into
includes\functions.php
(FREE version) and add:// get the value of the global atts global $tred_author_data_ids; if($tred_author_data_ids): if($tred_author_data_ids == 'current'): $author_ids = get_current_user_id(); else: $author_ids = $tred_author_data_ids; endif; //Add this to ALL args in functions.php $args['author__in'] = array($author_ids); endif;
- This reply was modified 2 years, 6 months ago by samjco.
- This reply was modified 2 years, 6 months ago by samjco.
- This reply was modified 2 years, 6 months ago by samjco.
- This reply was modified 2 years, 6 months ago by samjco.
- This reply was modified 2 years, 6 months ago by samjco.
- This reply was modified 2 years, 6 months ago by samjco.
Is there anyway to load the
window['ninja_table_instance_0'] = {"table_id":......}
data?
Is there a JS somewhere that creates the styling of the table after it loads?I actually would like to stay with Ninja tables.
Is there a way to init the extra code via when the shortcode is called?Forum: Plugins
In reply to: [Stencil] Stencil seems promising but falls shortStencil.
I can understand charging for (remote) storage space, new templates, for extra image sizes, or even Support. But charging for using free (Google fonts, Unsplash) stuff I don’t understand.Forum: Plugins
In reply to: [PDF.js Viewer] 403 Forbidden HELP!!!OK the issue is with the server company….
You have to enable: DIRECT PHP FILES ACCESS
Whether its a human click as in @codettes or a auto robot click, there stills was an issue with duplicate posts loading in at times…
Hey @dcooney Ive used this code that will trigger the loadmore every 2sec.
Please see for yourself and tell me if you are getting the same results..jQuery(document).ready(function($) { var numClickVar = 10; //How many times to fire. var i = 0; //First Click to start $('button.alm-load-more-btn').click(); function clickme() { setTimeout(function() { if ( i < numClickVar ){ //Check if button loaded in yet if( $('button.alm-load-more-btn').length ) { $('button.alm-load-more-btn').click(); }else{ //Try again clickme(); } }; },2000); }; //Check to see if loadmore has loaded something window.almComplete = function(alm){ console.log(i + " Ajax Load More Complete!"); ++i; clickme(); } });
The reason why I would need to auto trigger the button in the first place, was because I believe the TOC would not work properly if I preload 10 post
This seems to be a bug.
Seems as if… If a user click the Loadmore too soon, or too fast, you will get duplicates….
Ive tried to hook in some js to the loadmore button to fire 20 times On page load. And I got duplicates. Once I slow down the auto fires (js triggers with set Timeout function) a bit to 5-10 secs, no duplicates – but that is too slow…
If would be nice to get a fix for this…
- This reply was modified 3 years, 6 months ago by samjco.
Yes, I had the same problem…
Id went with:
https://tscanlin.github.io/tocbot/Forum: Plugins
In reply to: [Product Blocks for WooCommerce] ShortcodeThis is a +1
Thanks
Forum: Plugins
In reply to: [Simple Post Expiration] Changing Status when expiredHey Pippin!
What are you using to automate the detection and change?
Post, plugin load or cron?