List Info

Thread: show recent comments




show recent comments
user name
2006-02-15 07:13:48
Hi Ben,

I tested your code snippet with blojsom 2.29, using exactly your plugin entry and chaining it at the end, and it works. The recent comments of the entries that I'm currently viewing on the page are displayed.

Check the log file, do you get this line during start up?
Feb 15 18:03:17 INFO  [Thread-0] servlet.BlojsomServlet - Added blojsom plugin: org.blojsom.plugin.comment.RecentCommentsPlugin

And if you set the logging level to debug, and view the blog where the recent comments are supposed to be displayed, you should see debug messages similar to the followings on the log:
Feb 15 18:03:45 DEBUG [http-8080-Processor25] servlet.BlojsomServlet - Added plugin chain: html.blojsom-plugin-chain=string-utilities, meta, tag-cloud, date-format, referer-log, calendar-gui, calendar-filter, comment, trackback, simple-search, limiter, emoticons, macro-expansion, days-since-posted, word-count, simple-obfuscation, nofollow, rss-enclosure, technorati-tags, comments-recent for user: default
Feb 15 18:03:45 DEBUG [http-8080-Processor25] servlet.BlojsomServlet - blojsom plugin execution: org.blojsom.plugin.comment.RecentCommentsPlugin


Try to display $BLOJSOM_RECENT_COMMENTS outside the loop and see if you get anything.You should see an array like this
[org.blojsom.blog.FileBackedBlogCommentda9ea4, org.blojsom.blog.FileBackedBlogCommente555bd]


Just to triple check, make sure the entries you are viewing on the page already have some comments.


Cheers,
Cliff.


On 2/14/06, Ben Robbins <activemac.com">infoactivemac.com> wrote:
I must be missing something.  ;I added
comments-recent=org.blojsom.plugin.comment.RecentCommentsPlugin to
the plugin properties, added comments-recent to the end of the chain
for html, then added this test code to my template:

#foreach ($temp in $BLOJSOM_RECENT_COMMENTS)
   ;  $temp.getComment()<;br />
#end

But no entries show up on the page.

Any suggestions?


show recent comments
user name
2006-02-15 09:33:53
First off, thanks for all your help.

Second off, >bonk< for me for not checking the log.

2006-02-15 00:17:50,909 ERROR
[org.blojsom.servlet.BlojsomServlet] No 
plugin loaded for: comments-recent

Eureka!  Needed to restart jboss to get it to recognize the
addition 
to the plugin.properties.

It's working now, I just need to get in there and format
it.

Thanks again Cliff


At 6:13 PM +1100 2/15/06, Cliffano Subagio wrote:
>Hi Ben,
>
>I tested your code snippet with blojsom 2.29, using
exactly your 
>plugin entry and chaining it at the end, and it works.
The recent 
>comments of the entries that I'm currently viewing on
the page are 
>displayed.
>
>Check the log file, do you get this line during start
up?
>Feb 15 18:03:17 INFO  [Thread-0] servlet.BlojsomServlet
- Added 
>blojsom plugin:
org.blojsom.plugin.comment.RecentCommentsPlugin
>
>And if you set the logging level to debug, and view the
blog where 
>the recent comments are supposed to be displayed, you
should see 
>debug messages similar to the followings on the log:
>Feb 15 18:03:45 DEBUG [http-8080-Processor25]
servlet.BlojsomServlet 
>- Added plugin chain:
html.blojsom-plugin-chain=string-utilities, 
>meta, tag-cloud, date-format, referer-log, calendar-gui,

>calendar-filter, comment, trackback, simple-search,
limiter, 
>emoticons, macro-expansion, days-since-posted,
word-count, 
>simple-obfuscation, nofollow, rss-enclosure,
technorati-tags, 
>comments-recent for user: default
>Feb 15 18:03:45 DEBUG [http-8080-Processor25]
servlet.BlojsomServlet 
>- blojsom plugin execution: 
>org.blojsom.plugin.comment.RecentCommentsPlugin
>
>
>Try to display $BLOJSOM_RECENT_COMMENTS outside the loop
and see if 
>you get anything.You should see an array like this
>[org.blojsom.blog.FileBackedBlogCommentda9ea4, 
>org.blojsom.blog.FileBackedBlogCommente555bd]
>
>
>Just to triple check, make sure the entries you are
viewing on the 
>page already have some comments.
>
>
>Cheers,
>Cliff.
>
>On 2/14/06, Ben Robbins <<mailto:infoactivemac.com>infoactivemac.com> wrote:
>
>I must be missing something.  I added
>comments-recent=org.blojsom.plugin.comment.RecentComment
sPlugin to
>the plugin properties, added comments-recent to the end
of the chain
>for html, then added this test code to my template:
>
>#foreach ($temp in $BLOJSOM_RECENT_COMMENTS)
>      $temp.getComment()<br />
>#end
>
>But no entries show up on the page.
>
>Any suggestions?




-------------------------------------------------------
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 )