Textpattern CMS support forum

You are not logged in. Register | Login | Help

#41 2018-03-04 12:01:59

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,622
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Destry wrote #309624:

there’s no way to get a total sum on the count as a option?

Not currently, it doesn’t do sums. I could probably add that – and it needs an overhaul for the changes in 4.7 prefs anyway so it’s a good time to add it.

In the meantime can you run it or any part of the tag through the evaluate tag:

<b>Words:</b> <txp:evaluate query='<txp:smd_article_stats item="body, excerpt" break="+" />' />

?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#42 2018-03-04 12:06:26

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,193
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Wundibar!

Never used the evaluate tag before. Works as prescribed. Thanks, maestro!


The text persuades, the *notes prove。

Offline

#43 2018-03-04 12:13:18

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,643
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Destry wrote #309629:

Never used the evaluate tag before

Study it, cherish it, as it is truly magic.

Offline

#44 2018-03-04 12:14:39

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,193
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Oh, in case you missed it above, I have a bunch of endnotes/annotations with some rather complex markup that was causing the wide count difference in the body. I’d overlooked that.


The text persuades, the *notes prove。

Offline

#45 2018-03-04 12:43:48

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,193
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Stef, I forgot to mention…

In the admin-side I have the “Article stats” under the excerpt box, which is where I like it for now (who knows when the unlimited custom fields utopia arrives). But I notice that when set as the default, “Above Sort and display”, there’s no output. Or it’s probably hidden under the Save box that’s fixed in that position in Hive admin theme. Just to mention it.


The text persuades, the *notes prove。

Offline

#46 2018-03-04 13:05:15

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,622
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Destry wrote #309638:

“Above Sort and display”, there’s no output. Or it’s probably hidden under the Save box that’s fixed in that position in Hive admin theme. Just to mention it.

Good point. Yeah, either the DOM hooks have changed or it’s obscured. I’ll fix that in the 4.7 release, thanks.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#47 2018-03-04 13:07:41

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,643
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Bloke wrote #309640:

Good point. Yeah, either the DOM hooks have changed or it’s obscured. I’ll fix that in the 4.7 release, thanks.

here

Offline

#48 2018-03-04 14:04:00

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,622
Website

Re: smd_article_stats: Article stats to count words 'n stuff

phiw13 wrote #309641:

here

Good memory :-) I’ll fix that, honest.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#49 2018-06-21 15:08:00

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,193
Website

Re: smd_article_stats: Article stats to count words 'n stuff

I’m seeing this in the bottom of 4.7 panels:

smd_at_work_admin_message: ?event=prefs#prefs_group_smd_at_work

And this in the Admin panels, etc:

smd_at_work
smd_at_work_enabled
smd_at_work_message

Nothing is functionally broken, however.

I’m guessing the plugin hasn’t reach the 4.7 milestone compliance yet?


The text persuades, the *notes prove。

Offline

#50 2018-06-21 23:11:02

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,643
Website

Re: smd_article_stats: Article stats to count words 'n stuff

Destry wrote #312667:

(…) Nothing is functionally broken, however.

I’m guessing the plugin hasn’t reach the 4.7 milestone compliance yet?

Version 0.41 works perfectly fine here. It seems the textpack didn’t install properly in your case ? Try re-installing the plugin from here.

Offline

Board footer

Powered by FluxBB