Juraj Benak

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Comment counts #18200
    Juraj Benak
    Participant

    Apologies, that did work! I just renamed the file and reuploaded the new one with the same name but SP automatically re-linked all CEWP to the old file so hence didn’t reflect!

    Thanks Alex!

    in reply to: Comment counts #18195
    Juraj Benak
    Participant

    Unfortunately that still shows incorrectly. I’ve tried using private mode but still the same result. Anything else I can try?

    in reply to: Comment counts #18158
    Juraj Benak
    Participant

    Yes it does. I hovered over the top and it shows 2.6.3

    Or perhaps it’s because of this script you’ve given me?

    
    
    <a href="//ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js">//ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js</a>
    
    var cBoxCommentTicker = 100;
    setInterval(function(){
    	cBoxCommentTicker = 3000;
    	jQuery(".ms-blog-postBox").not(".commentBox").each(function(){
    		jQuery(this).addClass("commentBox");
    		var href = jQuery(this).find("a:first").attr("href");
    		var id = href.substring(href.lastIndexOf("/"));
    		getCBoxCommentCount(this,id);	
    	});
    },cBoxCommentTicker);
    
    function getCBoxCommentCount(elm,id){
    	jQuery.ajax({
    		"url": _spPageContextInfo.webServerRelativeUrl+"/_api/web/lists/getbytitle('SPJS-CommentBox')/items?$filter=substringof('"+id+"',Title)",
    		"method": "GET",
    		"headers": { "Accept": "application/json; odata=verbose" },
    		"success": function (data) {
    			jQuery(elm).find(".ms-blog-command-noLeftPadding").html(data.d.results.length+" comments");
    		},
    		"error": function (err) {
    			// console.log(err);
    		}
    	});
    }
    in reply to: Comment counts #18141
    Juraj Benak
    Participant

    I also wanted to add that I have blogmode enabled

    in reply to: Comment counts #18137
    Juraj Benak
    Participant

    Thanks Alexander – I do have the latest version but it still doesn’t seem to be working. Do I need to refresh or reindex? Or does it only work for new ones, not the old ones?

    in reply to: Blog comments in SharePoint online #14939
    Juraj Benak
    Participant

    Thanks Alexander, I got that sorted but how do I enter it now into a blog and make sure that I can have a conversation after a each new blog, without intervening?

Viewing 6 posts - 1 through 6 (of 6 total)