Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jmdeldin/jmd_count

Textpattern plugin: Count stuff. (OLD, UNSUPPORTED)
https://github.com/jmdeldin/jmd_count

Last synced: about 1 month ago
JSON representation

Textpattern plugin: Count stuff. (OLD, UNSUPPORTED)

Awesome Lists containing this project

README

        

h1. jmd_count: Count stuff.

"Forum thread":http://forum.textpattern.com/viewtopic.php?pid=180208, "git
repo":http://github.com/jmdeldin/jmd_count/

This plugin counts rows in "Textpattern tables(Table reference)":http://textpattern.net/wiki/index.php?title=Database_Schema_Reference and plugin-created tables.

h2. @@

|_. Attribute |_. Available values |_. Default value |
| @table@ | Existing MySQL table | -- |
| @where@ | Valid @WHERE@ clause | -- |

h3. Example: Return the number of pending articles:

bc.

h2. @@

Same attributes as @jmd_count@ with the addition of @eval@.

|_. Attribute |_. Available values |_. Default value |_. Description |
| @eval@ | "Comparison operators":http://php.net/operators.comparison | -- | Compare the counted rows to @eval@ (e.g., @eval=">=1"@) |

bc.
Whoah! forms is ridonkulous.

h2. @@

No attributes. Returns the value from @jmd_if_count@.

h2. Example: Site statistics

bc..

Item
Count


Live articles





Comments





Images





Files





Site hits



p. Tip: Combine jmd_count with "jmd_dashboard":http://jmdeldin.com/#txp :).