Michael Zülsdorff
6 years ago
Abd ishtaya
Replied 6 years ago
for comment in any post read more just append this data in components\ReadMore\plugins\default\js\readmore.php
Ossn.RegisterStartupFunction(function(){
$(document).ajaxComplete(function(event, xhr, settings) {
var $url = window.location.href;
$pagehandler = $url.replace(Ossn.site_url, '');
$tocheck = ['home', 'user'];
if($tocheck.includes($pagehandler)){
$('.comment-text:not([aria-expanded])').readmore({startOpen: false, speed: 100});
}
});
$(document).ready(function(){
$('.comment-text').readmore({startOpen: false, speed: 100});
});
});
Abd ishtaya
Replied 6 years ago
Why not work for comments
JACK AMPERES
Replied 6 years ago
scrap that its still doing it, i have messaged you on softlab24
JACK AMPERES
Replied 6 years ago
ok i have it working now, not sure what the problem was over all, but i did have code in the top bar for sharing buttons. i took that off . now it works fine. i do have a further issue which i think i will mention on softlab24 to you .thanks
Arsalan Shah
Replied 6 years ago
@James i tried to test on social theme using firefox and i don't see any reload/refresh. You may send me a video capture to our email.
JACK AMPERES
Replied 6 years ago
my browser is stuck on refreshing or attempting to reload the page while there are post with the read more link showing. im using fire fox. and using social theme , as a result i cant use anything, any links or buttons while its attempting to reload for some reason
Arsalan Shah
Replied 6 years ago
Can you explain more please?
JACK AMPERES
Replied 6 years ago
this appears to be enforcing a infinite refresh ., running on social theme