[PLUGIN] Reading Time

User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

Reading Time v1.5
This is a plugin for Bludit that estimates the reading time for your content.

Download
Last edited by Fred on Fri Aug 12, 2016 9:06 pm, edited 2 times in total.
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Installing the plugin I get the following error:

Parse error: syntax error, unexpected '[' in /var/www/web597/html/bludit/bl-plugins/ReadingTime/plugin.php on line 54
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

I look this, thank for report.
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
dirtdiver2010
Master Bludit
Posts: 127
Joined: Fri Jan 15, 2016 6:07 pm
Has thanked: 1 time
Been thanked: 3 times

Is it possible to set the Plugin to a place where I want?
If I only activate the reading time is set at the End of the article, but in my example I would like to put it under the headline of the post.

Could you please give me a hint how it could work. thx.
User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

Not possible for the moment, Bludit disallow parsed template, or i don't found a solution :(
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
dirtdiver2010
Master Bludit
Posts: 127
Joined: Fri Jan 15, 2016 6:07 pm
Has thanked: 1 time
Been thanked: 3 times

Maybe will be coming soon ;)
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Edi wrote: Parse error: syntax error, unexpected '[' in /var/www/web597/html/bludit/bl-plugins/ReadingTime/plugin.php on line 54
I have still this error. Any idea?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

Hi Edi,
Try the new version in github ;)
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

I tried the latest version... The problem seems to be caused by the following line:

Code: Select all

public function readingTime($content, array $params = [])
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

Replace with this please

Code: Select all

public function readingTime($content, $params = array() )
I update after your confirmation, thank.
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
Post Reply