We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin: Reading Time

Development and Programming

Nathan Pitman's avatar
Nathan Pitman
531 posts
16 years ago
Nathan Pitman's avatar Nathan Pitman

I knocked up a little plugin to return the average time required to read any given body of text. It’s based upon the ‘Time2Read’ plugin for Wordpress. Enjoy! 😊

http://github.com/nathanpitman/np.reading_time.ee_addon/tree/master

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Hi Nathan,

Fun little plugin that one, well done. Only thing is that I tried this out and it said 031 minute(s) for an entry that only had about 4 paragraphs of text so I’m guessing that perhaps the 031 meant seconds instead of minutes perhaps?

Either that or I did something wrong although I’m pretty sure I didn’t. I notice that you have a parameter for what appears after the time but if I were for example to change this to hours then it would read as 031 hours which would be even worse 😉

Is there possibly some way around this as you could probably have an entry that might only take minutes to read but you could also have one that takes a lot lot longer to read or even possibly one that only takes a few seconds. With the parameter being hard-coded it’s not really going to take this into account though.

Anyway a nice little plugin and a nice idea although I’m not too sure how it knows how long it will take me to read something as I am an exceptionally fast reader me 😉

Best wishes,

Mark

       
Nathan Pitman's avatar
Nathan Pitman
531 posts
16 years ago
Nathan Pitman's avatar Nathan Pitman

Hi Mark, yes this could certainly benefit from some improvements. I think it would make sense to just display a fixed message such as “Less than a minute” for anything that calculates as less than a minute… you were right that 031 is indeed 31 secs.

I’ll be sure to post any updates to Github and also here. 😊

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
16 years ago
Mark Bowen's avatar Mark Bowen

Yep I think perhaps built in phrases would be better as 31 seconds was definitely a better fit for what I was reading 😉

I think as long as the phrase is pretty close to what the time is then that’s better than trying to think up a phrase that makes sense under all situations.

Anyway nice little plugin. Will definitely remember this one.

Best wishes,

Mark

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.