Sun Oct 31, 2004

Plugin mem_article_count

Some one requested a plugin, so I filled the request since I was bored and felt like coding. This plugin will output the number of articles in a specified Section and/or Category. It has attributes called section, category, and wraptag.

Cut & Paste the contents of the textarea to install to textpattern 1.0rc1 (or newer)

file: mem_article_count.txt [1.40KB]
Category: Textpattern
download: 1245

Comment

i am mike, hear me roar

mike · 12/22/04 11:48 AM · #

I get an error when I try to install this plugin, Fatal error: Call to undefined function: latts() in /home/username/public_html/textpattern/publish.php(769) : eval()’d code on line 227

I just want to display the total number of articles. Is there another way to do this?

— kirk · 02/06/05 05:33 PM · #

In the plugin edit window, open it up and add the following to the top.


// This makes mem_glinklist compatible with Txp v1.0rc1
if (!function_exists('lAtts')) {
function lAtts($pairs, $atts) { // trying this out as well
foreach($pairs as $name => $default) {
$out[$name] = isset($atts[$name]) ? $atts[$name] : $default;
}
return ($out) ? $out : false;
}
}

Mike · 02/06/05 11:24 PM · #

Commenting is closed for this article.