Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2004-11-24 21:33:13

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

Re: mdn_count

On second thought, maybe the best thing to do, is for me to just add an option for current section and current category… then you can use it in both places…

be right back…

I’m back. Currently the file at the link is version 1.1, and contains the following modification.

If section or category are marked as “#”, then the current section or category will be used for counting.

See if that helps.

Last edited by Remillard (2004-11-24 21:40:50)

Offline

#12 2004-11-24 23:36:14

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

Re: mdn_count

:) go Remillard go!


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

Offline

#13 2004-11-24 23:41:37

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

Re: mdn_count

“Everytime Remillard updates a plugin, an angel gets its wings.”

(This is getting to be a pretty silly thread, between this and the needle counting.)

Offline

#14 2004-11-25 10:20:09

humanoid
Member
Registered: 2004-06-24
Posts: 17

Re: mdn_count

Hi, a small question – could this be called iteratively? So that you get a list of all your categories with the numbe rof posts in it?

Offline

#15 2004-11-25 14:07:14

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

Re: mdn_count

> Remillard wrote:

> I’m back. Currently the file at the link is version 1.1, and contains the following modification.

> If section or category are marked as “#”, then the current section or category will be used for counting.

> See if that helps.

With YellowDuck’s changes it works perfectly, thank you again!

Offline

#16 2004-11-25 15:23:25

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

Re: mdn_count

whups… I’ll go fix that… Duck is right, it needs to be a double = for comparison.

As far as iteratively, I’m not sure what you mean precisely. You can call it multiple times, sure. It doesn’t iterate by itself though over categories. you would have to have a tag instance for each category you wanted counted.

Okay, well off to fix that comparison. 1.2 will be up in short order.

Done. Hope it’s okay now.

Last edited by Remillard (2004-11-25 15:26:56)

Offline

#17 2004-11-25 15:28:56

humanoid
Member
Registered: 2004-06-24
Posts: 17

Re: mdn_count

—-
As far as iteratively, I’m not sure what you mean precisely. You can call it multiple times, sure. It doesn’t iterate by itself though over categories. you would have to have a tag instance for each category you wanted counted.
—-

yeah I know I can just call the plugin repeatedly (once for every section). Hmm, maybe I should just do that, it is too complex for me to dive into the php and change it so it gives bac a whole list of all cat’s + numbers.

Thanks for the answer anyway.

Offline

#18 2004-11-25 16:07:49

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

Re: mdn_count

my impression of what humanoid suggested in terms of ‘iteratively’ as a list of categories, is that it’s the same thing as what i’m suggesting here


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

Offline

#19 2004-11-25 16:14:23

humanoid
Member
Registered: 2004-06-24
Posts: 17

Re: mdn_count

You are absolutely right. It would be great to combine the two you mention. I will have a go at it myself maybe, but chance I will not succeed is pretty high (no php knowledge etc).

Offline

Board footer

Powered by FluxBB