Textpattern CMS support forum

You are not logged in. Register | Login | Help

#71 2018-10-04 14:22:28

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

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

gaekwad wrote #314395:

I will gladly do a video walkthrough if you want to know how this is done, no worries.

A nice little step-by-step text would be nice :-) Just an ordered list ol: do a then do b, then click on xx to do c… TY.

(my attention span for that sort of videos is about 0.33 seconds)

Offline

#72 2018-10-04 14:39:33

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 2,572

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

phiw13 wrote #314396:

A nice little step-by-step text would be nice :-) Just an ordered list ol: do a then do b, then click on xx to do c… TY.

Leave that with me, I’ll see what I can do (in another thread).

Offline

#73 2018-10-04 15:42:12

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

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

gaekwad wrote #314395:

You can with VirtualBox.

Interesting. Was just reading the Wikipedia page on it.

Ditto on the 1-2-3 steps vs. a video. I can’t sit through them either.

I have some heavy domestic objectives on my plate (not just these trivial sites of mine), so it will be a while before I bother with anything like this, but I will look to learn more.


The text persuades, the *notes prove。

Offline

#74 2018-10-04 16:44:56

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

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

etc wrote #314387:

<txp:php>dmp(get_loaded_extensions());</txp:php>...

Thanks for that. I added that to the ‘Debug’ article Bloke suggested setting up.

I also upgraded my Liip package to PHP 7.2.

But my debug info is still showing 7.0.x, and the intl extension is not showing as added.

So apparently Apache is using a different php package, but damn if I can figure out how and where.


The text persuades, the *notes prove。

Offline

#75 2018-10-04 19:09:41

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

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

Finally got this php f-er figured out.

In my httpd.conf file there’s the regular DSO line, which is normally supposed be uncommented:

LoadModule php7_module libexec/apache2/libphp7.so

But when using the Liip package there’s an include at the very bottom of the file:

Include /private/etc/apache2/other/*.conf

Which refers to a couple of other .conf files, one of which includes a path for the Liip version of the php DSO.

Apparently the include DSO does not override the first instance, so after commenting out the first instance in the main .conf file — Boom! — proper php 7.2.x being used and intl extension as well. Whew!

Now, one last question: The word count is showing up with a comma, like 7,346. Where do you change the locale? (France is set in the Language and Region tab of my Mac’s settings.) I can live with that but I’d prefer 7 346.

Also, do visitors see it differently to their locale too, or am I defining how everyone sees it?

Last edited by Destry (2018-10-04 19:13:16)


The text persuades, the *notes prove。

Offline

#76 2018-10-04 19:23:10

etc
Developer
Registered: 2010-11-11
Posts: 3,267
Website

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

Champagne!

Destry wrote #314403:

Now, one last question: The word count is showing up with a comma, like 7,346. Where do you change the locale? (France is set in the Language and Region tab of my Mac’s settings.) I can live with that but I’d prefer 7 346.

Also, do visitors see it differently to their locale too, or am I defining how everyone sees it?

It’s a server thing, should match your txp site public language, not clients settings.


etc_[ query | search | pagination | date | tree | cache ]

Offline

#77 2018-10-04 19:40:11

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

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

Ah, of course.


The text persuades, the *notes prove。

Offline

#78 2018-10-04 20:52:44

etc
Developer
Registered: 2010-11-11
Posts: 3,267
Website

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

Ahem… the 4.7.1 implementation is slightly flawed, sorry. Will be fixed in 4.7.2.


etc_[ query | search | pagination | date | tree | cache ]

Offline

#79 2018-10-05 15:22:25

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

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

etc wrote #314407:

Ahem… the 4.7.1 implementation is slightly flawed, sorry. Will be fixed in 4.7.2.

It seems relying on locale influences language in dates too. So while 10 684 looks good as a word count, IMO, 12 février 2018, doesn’t work as well in an English language article.

I’m not complaining, just observing aloud. I can easily go with 10,684 on the en pack (and will need to).

But it does return to the question of potentially being able to personalize word counts as a design consideration independent of local language settings.


The text persuades, the *notes prove。

Offline

#80 2018-10-05 15:31:29

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

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

Destry wrote #314417:

But it does return to the question of potentially being able to personalize word counts as a design consideration independent of local language settings.

Noted. Could do this as an attribute to the tag. Some sort of separator or something. But since we use that for other purposes in core tags, it’d need a better name and perhaps be applicable to any other things you might wish to customize about the counts (if there is anything?) Ideas welcome.


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

Board footer

Powered by FluxBB