Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/jmdeldin/jmd_count
- Owner: jmdeldin
- Created: 2009-02-03T00:12:26.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2009-03-04T07:45:26.000Z (over 15 years ago)
- Last Synced: 2023-04-13T07:51:07.339Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 78.1 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
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 :).