konigrot
Forum Replies Created
-
The only files in the active child theme directory, outside the /sensei/ folder, with a similar name, are single.php and single-magazine.php.
Lmk if you need access to the site to diagnose.
Not sure I understood your reply properly!
I have now added the theme support code to the functions file, but I still have the issue that copying the single-lesson.php file from the sensei plugin directory into the theme/sensei/ folder causes the html to change as described above.
I have copied the content-lesson.php file into the theme/sensei/ folder and that seems all fine, but it doesn’t sort the issue with single-lesson.php.
Why would copying this single-lesson.php file be causing this?
That was indeed the issue. Fixed now – thanks very much!
Thanks Dario – I found an error in my code:
Uncaught Error: Call to undefined function yasr_get_visitor_votes()Is that a function that has become deprecated?
Thanks for this. I think the issue was my css – something about a flex-wrap definition was causing the slider to keep recalculating its width in a strange way. It seems stable now. ??
Comment left on https://yetanotherstarsrating.com/f-a-q/comment-page-4/#comment-14996
- This reply was modified 8 years, 5 months ago by konigrot.
I setup the test function:
add_action(‘wp_ajax_nopriv_bh_test’, ‘bh_test_func’);
add_action(‘wp_ajax_bh_test’, ‘bh_test_func’);
function bh_test_func() {
if($_POST){
echo( ‘<p>AJAX RETURN</p>’ );
echo( do_shortcode( ‘[yasr_overall_rating postid=”44″ size=”small”]’) );
echo( do_shortcode( ‘[gallery columns="2" ids="57,58,59,60" size="screenshot"]‘ ) );
exit();
}
echo( ‘Error: Please refresh the page’ );
die();
}and when the function is run from the front end the gallery shortcode output works fine, but nothing from the yasr shortcode. However, in the page load I manually call:
echo( do_shortcode( ‘[yasr_overall_rating postid=”44″ size=”small”]’) );
and the output works ok. I have version 1.41 of YASR and WP version 4.5.3. The site is a testbed – how can I privately share the access with you?
Thanks for the quick response! I have updated the plugin on my site (no caching being used) and still not getting any output in ajax content running the following: do_shortcode( ‘[yasr_overall_rating postid=”44″ size=”small”]’) where 44 is the correct ID for the rated post, and the same function works ok in non-ajax content output.
As mentioned before, it might be useful if there was a function to manually output a rating because: (a) it would offer a workaround option for these cases and (b) I would like to use the yasr ratings visuals for a custom category-like taxonomy in addition to standard post ratings. ??
Forum: Plugins
In reply to: [WP-PostRatings] Post Ratings in nested Ajax call not displaying*blush* Thanks Lester. ??
Forum: Plugins
In reply to: [W3 Total Cache] mfunc code blank on second loadOk – weird breakthrough.
I tried completely excluding the page templates with fragment caching active (all or nothing). The message at the bottom of the pages says it is still being cached, but the fragment section is NOT being cached… which is what I wanted.
What I’m not sure about is whether the W3TC message at the bottom of the page is a bundle of feelthy liez, or whether something about trying to exclude the page has actually got the fragment cache working. Pass.
Forum: Plugins
In reply to: [W3 Total Cache] mfunc code blank on second loadI think you are observing the fragment being cached after the first load, and thus the mfunc does not display anything as you have not specified both the cached and uncached output (it assumes you only want to display the function when uncached).
Of course, AFAIK, it shouldn’t be caching anyway given what the mfunc is supposed to be doing! Make sure Page caching -> basic and LAte Init is enabled, but I’m still having this problem with all of the above checked off. ??
Forum: Plugins
In reply to: [Social Login] Custom CSSAnd resolved…
Forum: Plugins
In reply to: [Social Login] Custom CSSApparently it’s a basic paid service. Case dismissed. ??
Forum: Plugins
In reply to: [Ajaxy Instant Search] 2.1.8 Not workingHmm – there is some java conflict on the site with the latest version. Sadly it breaks all the java based plugins until it is disabled, although some browsers (IE and FF) seem to cope better with the bork than Chrome however.
Forum: Plugins
In reply to: [Ajaxy Instant Search] 2.1.8 Not workingThanks – that at least suggests that the problem is more likely to be a local java related problem at least.
I am using Chrome to reproduce this problem, but using IE and FF the search bar works fine. I have Java(TM) – Version: 10.17.2.02
(NPRuntime Script Plug-in Library for Java(TM) Deploy) installed.Most likely culprit is some kind of problem arising with 32bit and 64bit java compatibility with Chrome as 32bit browser.