Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Topic closed
[archived] cjm_activity: "Recent Activity" Plugin
Notice: This thread is archived, this plugin is no longer available.
**********************************************************
I got the idea for this one at Binary Bonsai.
Basically, what it does is list your most recent posts that have been commented on. It lists the post title and the names of some of the people who have commented on the post.
The number of posts listed can be configured, as can the number of “commenters”.
- A demo can be seen here: Pixel Meadow
- Download it here
Usage:
Call the plugin using <txp:cjm_activity />.
The plugin accepts the following attributes:
- wraptag (defaults to “ul”)
- break (defaults to “li”)
- class
- id (defaults to “activity”)
- limit – the number of posts to list (default is 5)
- commenters – the max number of “commenters” to list per post (3 by default)
Offline
Re: [archived] cjm_activity: "Recent Activity" Plugin
not saying it’s a bad idea. just wondering if it doesn’t anything drastically different from this existing plugin?
Listen to Kenneth
Offline
Re: [archived] cjm_activity: "Recent Activity" Plugin
I didn’t know there was another. However, looking at the other plugin, it would seem that the outputs are different.
Offline
Re: [archived] cjm_activity: "Recent Activity" Plugin
Hello,
I want to add a CSS class to the span tag in this plugin. I know nothing of PHP so if I simply add class=“postings” it obviously doesnt work.
This is the line i’m hoping to change…
$outlink = "<a href=\"".$link."\"$title>".$comment['Title']. "</a> (".$count.")<br />\n<span>";
Any help appreciated
Thanks!
Last edited by Martagnan (2004-10-18 10:23:29)
Offline
Re: [archived] cjm_activity: "Recent Activity" Plugin
You could something along the lines of this in your css:
#activity span{ ... }
and this to affect the links in the span: #activity span a{ ... }
– this shouldn’t require any changes to the code
Offline
Re: [archived] cjm_activity: "Recent Activity" Plugin
Doh!!!!! (Slaps forehead several times) – how stupid do I feel now!
Thanks
Offline
Re: [archived] cjm_activity: "Recent Activity" Plugin
Is there a way to get this plugin to be Section specific? Such as…
<txp:cjm_activity section="articles" />
Or even better, multiple section specific….
<txp:cjm_activity section="articles,portfolio,diary,etc" />
Offline
Re: [archived] cjm_activity: "Recent Activity" Plugin
Not in the current version. I’ll make a note of it though and see about adding it into a future version.
Offline
#9 2004-10-23 17:06:02
- lee
- Member
- From: Normandy, France
- Registered: 2004-06-17
- Posts: 831
Re: [archived] cjm_activity: "Recent Activity" Plugin
Hi Chris,
is there a way to change the code so that not only commented on posts get listed, but they all do?
Thanks, Lee
Offline
Pages: 1
Topic closed