Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Plugin support
  3. » mdn_count

#49 2007-08-17 17:15:17

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: mdn_count

Yep, mdn_count shows articles with every timestamp. It doesn’t check it – how I see it, when I quickly looked the code of the plugin.

Cheers!

Last edited by Gocom (2007-08-17 17:15:47)

Offline

#50 2008-04-07 04:45:02

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: mdn_count

does this plugin have the ability to do this: section=“sectionname1, sectionname2, and more if desired”…?


<txp:Ruhh />

Offline

#51 2008-04-07 05:38:14

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: mdn_count

Ruhh wrote:

does this plugin have the ability to do this: section=“sectionname1, sectionname2, and more if desired”…?

You mean add the count of posts from multiple sections?
Yes.

Output on the bottom of textpattern.org:

All 792 articles are stored in the treasure rooms…

Called by:

<txp:mdn_count section="mods,plugins,templates,tips,tutorials" />


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#52 2008-04-07 05:52:46

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: mdn_count

ohh wonderful! thanks :)

edit: uh doesn’t work for me. i get this error:

Tag error: <txp:mdn_count section=“archive,about,contact” /> -> Notice: Undefined variable: category on line 19

textpattern/lib/txplib_misc.php(574) : eval()’d code:19 mdn_count()
textpattern/publish.php:970 mdn_count()
processtags()
textpattern/publish.php:929 preg_replace_callback()
textpattern/publish.php:466 parse()
index.php:40 textpattern()

uh i’m assuming this only count “live” articles. how can i go about counting “sticky” articles?

Last edited by Ruhh (2008-04-07 05:59:32)


<txp:Ruhh />

Offline

#53 2008-04-07 07:30:30

Remillard
Plugin Author
From: Lenexa, KS
Registered: 2004-05-16
Posts: 169

Re: mdn_count

Ruhh wrote:

does this plugin have the ability to do this: section=“sectionname1, sectionname2, and more if desired”…?

Honestly, I don’t remember. I also suspect that there may be an internal tag that accomplishes the same thing by now. Do note that when this was originally written 4 years ago ;-).

Anyhow, I would advise checking the normal built-in Textpattern tags for a count function. Much of the functionality that some of my plugins were written for were at an earlier stage of Textpattern development.

Good luck!

Hi there Alicson! :-)

Last edited by Remillard (2008-04-07 07:31:02)

Offline

#54 2008-04-07 08:14:01

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: mdn_count

The mdn_count plugin on TXP.org is heavily modified to the point where it doesn’t really resemble the original ;)

Offline

#55 2008-04-07 15:28:26

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: mdn_count

Oh that’s right. could it be modified for a public release? Because I don’t believe there is a built-in tag..
I know I personally rely on mdn_count.. even when I can’t add sections together.


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#56 2008-04-07 15:39:20

Remillard
Plugin Author
From: Lenexa, KS
Registered: 2004-05-16
Posts: 169

Re: mdn_count

ruud wrote:

The mdn_count plugin on TXP.org is heavily modified to the point where it doesn’t really resemble the original ;)

Well, it probably ought not to be called mdn_count in that case. As much as I’m glad my plugin from long ago still serves folks, I’m really not actively supporting much of anything right now. If there is a modified version that has greater functionality, I highly recommend making a new release and putting a comment on the txp.org site that points to the new one and calls the old deprecated.

Offline

#57 2008-04-08 06:17:09

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: mdn_count

Hi Mark, your old one is definitely not deprecated. It is functioning in my site without any problems through various txp versions.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#58 2008-04-08 18:26:36

Remillard
Plugin Author
From: Lenexa, KS
Registered: 2004-05-16
Posts: 169

Re: mdn_count

colak wrote:

Hi Mark, your old one is definitely not deprecated. It is functioning in my site without any problems through various txp versions.

Color me stunned ;-) Pleased, but stunned.

I really should try to dig out my archives of these codelets and see what I actually did.

Offline

#59 2008-04-08 19:52:53

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: mdn_count

I’m still using mdn_count on several sites as well, and I still refer other people to it :)

Offline

#60 2008-04-08 20:24:54

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: mdn_count

me too. same with your other plugins. they just work.


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

  1. Index
  2. » Plugin support
  3. » mdn_count

Board footer

Powered by FluxBB