Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#31 2004-11-29 16:00:14

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

Re: mdn_count

‘just to be sure… you don’t have to specify a category at all, right? you can just have a ‘section’ attribute… and no reference to category at all… right?


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

Offline

#32 2004-11-29 18:25:38

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

Re: mdn_count

No, you don’t have to specify a category at all. Not a problem. You just have to specify SOMEthing.

However that being said, I can see a point to having at least blank output. I’ll make the debug line quiet and then if nothing is output, then it’s because there were no valid matches for counting. I’ll bump that to 1.2 live as soon as I can recompile.

Done. 1.3 is at the download site.

Last edited by Remillard (2004-11-29 18:48:58)

Offline

#33 2004-11-30 04:50:52

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

Re: mdn_count

Version update. There was a logic error in which it could count draft articles if the category match was in category2. It’s been fixed.

Offline

#34 2004-12-10 16:05:23

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

Re: mdn_count

Yo! I used it now like this

Lots of manual work still, but hey – it works:

<a href="http://metsuke.net/?c=books" style="font-size: <txp:mdn_count category="books" />px" >books</a>

is in a form called “counter” and repeated for each category

Then I did a small calculation in the plugin (multiply the output with some constant) for the px sizes. Probably I should have better done that within the page template, but I do not know how to do php in templates.

Don’t take the site to seriousl – it is my playground.

Offline

#35 2004-12-10 17:57:43

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

Re: mdn_count

I think that’s pretty cool :). Different sizes depending on how many things you’ve written there. Even more interesting would be if your readers noticed it over time that it wasn’t just a interesting style, but was actually dynamic!

Offline

#36 2005-04-16 08:37:04

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

Re: mdn_count

I use v1.4 of this plugin on my rc1 site in combination with rss_suparchive <a href=“http://neme.org/main/index.php?id=22” target=”_blank”>here</a> but I would also like to use it as a general article counter in the whole of my site (which I probably can’t)

ie on the default first page I would like to have: previous 10 (entries) of (total number of entries).

As sites get larger and larger it would be great for a surfer to know how many ‘clicks’ they have left before they reach the end of the site.

If i am right and this plugin can not count the total numer of articles, can someone point me to a method or a plugin that does?

thanks in advance

Last edited by colak (2005-04-16 08:37:35)


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

Offline

#37 2005-04-16 13:33:33

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

Re: mdn_count


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

Offline

#38 2005-04-16 13:37:42

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

Re: mdn_count

humanoid, that is really cool.


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

Offline

#39 2005-04-16 15:43:11

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

Re: mdn_count

Well, as far as I remember, it only counts for one section. It wouldn’t be hard to extend it to multiple sections as I’ve done that before in the past to a few plugins of mine. However as I recall this was sort of a quick and dirty single section counter.

Essentially it would do what you want inside a particular section, but if you’re mixing sections on the front page, then the count will be off.

Offline

#40 2005-04-17 10:01:19

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

Re: mdn_count

Remillard: for a quick and dirty one, it is an excelent plugin.

alicson. gbl_blog_stats did the job. Thanks


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

Offline

#41 2005-04-27 14:54:46

LichiMan
New Member
Registered: 2005-03-22
Posts: 3

Re: mdn_count

I want something like philtered, I’ve a list of categories with:
<code><txp:category_list wraptag=“ul” break=“li” /></code>
and I want the count after each item in the list too.
Anyone can help us?
Thanks.

Last edited by LichiMan (2005-04-27 15:04:34)

Offline

#42 2005-04-27 15:11:57

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: mdn_count

You can use rss_suparchive_bycat to display a list of categories with an article count. It uses the mdn_count plugin to calculate the count.

&nbsp;

You can see the results on my site. The call to the plugin is:

&nbsp;

<txp:rss_suparchive_bycat section="article" linktosection="archive" showcatsonly="1" />

Last edited by wilshire (2005-04-27 15:12:24)

Offline

#43 2005-04-27 17:12:46

LichiMan
New Member
Registered: 2005-03-22
Posts: 3

Re: mdn_count

Thank you so much wilshire! It works nicelly.
If you have a category with 0 articles, this plugin doesn’t show the category in the list, is there a way to show it?
Thanks anyway : )

Offline

#44 2005-04-27 17:23:52

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: mdn_count

No, if you wanted to show all categories even if they didn’t have posts you could use something like stw_category_tree but then you wouldn’t have the counts.

Offline

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

Board footer

Powered by FluxBB