ReadMore Download 6.1

This component/theme works with latest OSSN version.
German ~Z~ Man 10 months ago

ReadMore


This component is collapsing the visible part of longer postings to 100 pixels of height, comments are collapsed to 50 pixels by default. These settings may be adjusted from your admin backend.
A Readmore link below the post will uncollapse the remaining content, a Close link will collapse it again.


enter image description here


Changes

V 6.1

  • adapted requirements to Ossn 5.4

V 6.0

  • rewritten event handler with translatable Readmore/Close links
  • added collapsable comments

V 5.1

  • disable auto close of uncollapsed content when new posts are loaded.
Comments
German ~Z~ Man Replied 3 weeks ago

You can try to replace all three instances of post-contents in js/readmore.php by post-contents p
But the result isn't 100% satisfying because only images are kept outside the <p>, while embedded videos and LinkPreviews are kept inside.
Thus it would need a completely different underlying library with a smart text recognition to separate media from text.

us Jambu Atchison Replied 3 weeks ago

Is there anyway to make this only apply to the text and not images?

German ~Z~ Man Replied 3 months ago

He friends,
as promised, a translatable release is available now.
Enjoy!

German ~Z~ Man Replied 4 months ago

@ALL who are waiting for a working localization:

A ReadMore update with a complete set of language files will be available as soon as Ossn 5.3 has been released.

German Homer Simpson Replied 7 months ago

it doesn't also translate into German.
Maybe, you could intall translations with the next update. As any users also have written, you'll see the words "read more" and "close" also in the German translation.
The German words have to be "Weiterlesen" and "beenden"

Breton William Silva Replied 8 months ago

Hello,
I can't translate into Portuguese

gb SzSocial Media Replied 8 months ago

Hi, is it possible to get the component to at like Facebook does when it only shortens posts when a post contains over a certain amount of text? Thanks

German Holger A. Replied 8 months ago

Hi, the component doesn't work in German, althouhgh there's a German language file available. Only the English words (Read more / close) will be shown in the German OSSN, but not the German translation "Mehr anzeigen" / "weniger".

Pashto / Pushto Abd ishtaya Replied 9 months ago

..

Ossn.RegisterStartupFunction(function(){
        $(document).ajaxComplete(function(event, xhr, settings) {

                    $('.post-contents:not([aria-expanded])').readmore({startOpen: false, speed: 100});
                    $('.blog-body:not([aria-expanded])').readmore({startOpen: false, speed: 100});
                    $('.blog-title:not([aria-expanded])').readmore({startOpen: false, speed: 100});
                    $('.blog-item:not([aria-expanded])').readmore({startOpen: false, speed: 100});
                    $('.message-box-sent:not([aria-expanded])').readmore({startOpen: false, speed: 100});
                    $('.message-box-recieved:not([aria-expanded])').readmore({startOpen: false, speed: 100});
                    $('.comment-text:not([aria-expanded])').readmore({startOpen: false, speed: 100});



        });
        $(document).ready(function(){
                $('.post-contents').readmore({startOpen: false, speed: 100});
                $('.blog-body').readmore({startOpen: false, speed: 100});         
                $('.blog-title').readmore({startOpen: false, speed: 100});
                $('.blog-item').readmore({startOpen: false, speed: 100});
                $('.message-box-sent').readmore({startOpen: false, speed: 100});
                $('.message-box-recieved').readmore({startOpen: false, speed: 100});
                $('.comment-text').readmore({startOpen: false, speed: 100});

        });
    });

..

Pashto / Pushto Abd ishtaya Replied 9 months ago

~Z~ Man
look at this

Ossn.RegisterStartupFunction(function(){
    $(document).ajaxComplete(function(event, xhr, settings) {

                        $('.post-contents:not([aria-expanded])').readmore({startOpen: false, speed: 100});

    });
    $(document).ready(function(){
        $('.post-contents').readmore({startOpen: false, speed: 100});
    });
});  
Ossn.RegisterStartupFunction(function(){
    $(document).ajaxComplete(function(event, xhr, settings) {

                        $('.blog-body:not([aria-expanded])').readmore({startOpen: false, speed: 100});

    });
    $(document).ready(function(){
        $('.blog-body').readmore({startOpen: false, speed: 100});
    });
});  
Ossn.RegisterStartupFunction(function(){
    $(document).ajaxComplete(function(event, xhr, settings) {

                        $('.blog-title:not([aria-expanded])').readmore({startOpen: false, speed: 100});

    });
    $(document).ready(function(){
        $('.blog-title').readmore({startOpen: false, speed: 100});
    });
}); 
Ossn.RegisterStartupFunction(function(){
    $(document).ajaxComplete(function(event, xhr, settings) {

                        $('.blog-item:not([aria-expanded])').readmore({startOpen: false, speed: 100});

    });
    $(document).ready(function(){
        $('.blog-item').readmore({startOpen: false, speed: 100});
    });
}); 
Ossn.RegisterStartupFunction(function(){
    $(document).ajaxComplete(function(event, xhr, settings) {

                        $('.message-box-sent:not([aria-expanded])').readmore({startOpen: false, speed: 100});

    });
    $(document).ready(function(){
        $('.message-box-sent').readmore({startOpen: false, speed: 100});
    });
}); 
Ossn.RegisterStartupFunction(function(){
    $(document).ajaxComplete(function(event, xhr, settings) {

                        $('.message-box-recieved:not([aria-expanded])').readmore({startOpen: false, speed: 100});

    });
    $(document).ready(function(){
        $('.message-box-recieved').readmore({startOpen: false, speed: 100});
    });
}); 




Ossn.RegisterStartupFunction(function(){
$(document).ajaxComplete(function(event, xhr, settings) {

    $('.comment-text:not([aria-expanded])').readmore({startOpen: false, speed: 100});

});
$(document).ready(function(){
$('.comment-text').readmore({startOpen: false, speed: 100});
});
});

..

Component

Developer: ~Z~
License ossnv4
Type: Tools
Minimum Requirement: 5.4
Latest Version: 6.1
Last Updated 3 months ago
Repository Url View Repository

Versions