List Info

Thread: show recent comments




show recent comments
user name
2006-02-14 03:19:10
Hi Ben,

org.blojsom.plugin.comment.RecentCommentsPlugin grabs the most recent comments and puts them inside BLOJSOM_RECENT_COMMENTS velocity context.

However, this plugin only processes the entries 'filtered' within the chain and not all entries within the blog. I.e. if you are viewing the entries from december 2005, this plugin will only grab the comments from entries from december 2005.

There was a discussion to make it more event based.
- grab x most recent comments during startup
- if there's a new comment, broadcast an event which will update the x most recent comments
But I haven't heard about any progress to it so far.

Another way to get recent comments from all entries is to modify RecentCommentsPlugin to process BLOJSOM_PLUGIN_ALL_ENTRIES instead of the entries array, and chain this modified plugin behind all entries plugin.
This is quite expensive because it will load all entries at all time, but if your server has the firepower, this won't hurt .

Cheers,
Cliff.

On 2/14/06, Ben Robbins <activemac.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">infoactivemac.com > wrote:
Is there some way to show recent comments on a page as a sidebar or
even as a separate RSS feed? ; I want visitors to be be able to see
what other visitors have commented recently.

I'm using the all-entries plugin to show a list of posts, but I
couldn't find anything comparable for comments.&nbsp; I'm fairly new to
blojsom, and a search of the archives didn't turn up anything.

Thanks


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?&nbsp; Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the &nbsp;web.&nbsp; DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&;kid=103432&bid=230486&dat=121642
_______________________________________________
Blojsom-users mailing list
lists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-users

show recent comments
user name
2006-02-14 05:13:11
Sounds like exactly what I need.  So just double-checking, I
would 
activate this by adding

	comments-recent=org.blojsom.plugin.comment.RecentCommentsPl
ugin

then adding comments-recent to the mappings, then put
something like

	#foreach ($entry in $BLOJSOM_RECENT_COMMENTS)
	   $entry.getTitle
	#end

in my template.

How do I find out the variable names in the array (like
getTitle for 
BLOJSOM_PLUGIN_ALL_ENTRIES)?


At 2:19 PM +1100 2/14/06, Cliffano Subagio wrote:
>Hi Ben,
>
>org.blojsom.plugin.comment.RecentCommentsPlugin grabs
the most 
>recent comments and puts them inside
BLOJSOM_RECENT_COMMENTS 
>velocity context.
>
>However, this plugin only processes the entries
'filtered' within 
>the chain and not all entries within the blog. I.e. if
you are 
>viewing the entries from december 2005, this plugin will
only grab 
>the comments from entries from december 2005.
>
>There was a discussion to make it more event based.
>- grab x most recent comments during startup
>- if there's a new comment, broadcast an event which
will update the 
>x most recent comments
>But I haven't heard about any progress to it so far.
>
>Another way to get recent comments from all entries is
to modify 
>RecentCommentsPlugin to process
BLOJSOM_PLUGIN_ALL_ENTRIES instead 
>of the entries array, and chain this modified plugin
behind all 
>entries plugin.
>This is quite expensive because it will load all entries
at all 
>time, but if your server has the firepower, this won't
hurt .
>
>Cheers,
>Cliff.
>
>On 2/14/06, Ben Robbins 
><<mailto:infoactivemac.com>infoactivemac.com > wrote:
>
>Is there some way to show recent comments on a page as a
sidebar or
>even as a separate RSS feed?  I want visitors to be be
able to see
>what other visitors have commented recently.
>
>I'm using the all-entries plugin to show a list of
posts, but I
>couldn't find anything comparable for comments.  I'm
fairly new to
>blojsom, and a search of the archives didn't turn up
anything.
>
>Thanks
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you
grep through log files
>for problems?  Stop!  Download the new AJAX search
engine that makes
>searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
><
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&b
id=230486&dat=121642>http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=103432&bid=230486&dat=121642
>_______________________________________________
>Blojsom-users mailing list
><mailto:Blojsom-userslists.sourceforge.net>Blojsom-userslists.sourceforge.net
><https://lists.sourceforge.net/lists/listinfo/blojs
om-users> 
>https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers


-- 
ActiveMac Consulting
http://www.activemac.com/
Seattle, WA  206-297-8834


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep
through log files
for problems?  Stop!  Download the new AJAX search engine
that makes
searching your log files as easy as surfing the  web. 
DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )