Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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