Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-10-17 00:57:56

chrismc
Plugin Author
Registered: 2004-09-13
Posts: 37
Website

[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”.

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

#2 2004-10-18 04:04:16

kennethlove666
Member
From: arkansas
Registered: 2004-04-27
Posts: 107
Website

Re: [archived] cjm_activity: "Recent Activity" Plugin

so how’s it different?

not saying it’s a bad idea. just wondering if it doesn’t anything drastically different from this existing plugin?


Listen to Kenneth

Offline

#3 2004-10-18 08:19:55

chrismc
Plugin Author
Registered: 2004-09-13
Posts: 37
Website

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.

Activity plugin output

Offline

#4 2004-10-18 10:23:05

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

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

#5 2004-10-18 10:36:52

chrismc
Plugin Author
Registered: 2004-09-13
Posts: 37
Website

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

#6 2004-10-18 10:46:05

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: [archived] cjm_activity: "Recent Activity" Plugin

Doh!!!!! (Slaps forehead several times) – how stupid do I feel now!

Thanks

Offline

#7 2004-10-18 11:56:20

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

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

#8 2004-10-18 12:16:01

chrismc
Plugin Author
Registered: 2004-09-13
Posts: 37
Website

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

Board footer

Powered by FluxBB