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
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
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. 😊
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
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.