Hi all,

I guess this has been asked a thousand times, but since I find it hard to search the forum on drupal.org, I thought I would post it here.

I created a block (using recent blocks whcih is a great module BTW) with the three most recent comments posted on the site. That works like a charm (see on pyrn.ways.org), but I woudl like to put a "more" link in the block to link it to a page/node where all comments are listed starting with the most recent ones.

I looked around, played with views, and I can't find the "comment" type, meaning I can't seem to create a simple page (with pagers) where I could list all comments starting with the last one. Tracker does something similar but it includes all new content.

I am sure there is a very simple solution, but I just need someone with experience to point it out to me.

Have a nice day!!!

Comments

ugerhard’s picture

If you use views, there should be a Default view named "comments_recent" on admin/build/views

You can "add" this default view and then add a page view to it and check "[More] Link?" in the block configuration part of the view edit form.

This will give you a recent comments block and a page listing nodes with recent comments, which you can further configure (which fields oder node types to show etc.) via the views administration.

gostram’s picture

oh yeeee! I didn't see I could do this. I thought I was stuck with the block view.

Just tried to do it and it tells me that "An illegal choice has been detected. Please contact the site administrator." It might have to do with the fact that I want o display the view as a teaser list? Not sure though, I am the site admin, so I don't really get it. I will play aroung to see, but thanks a lot for the help ugerhard!!!!

gostram’s picture

mmmmm.. looked through the views interface and can't figure out why I get this:

* An illegal choice has been detected. Please contact the site administrator.
* An illegal choice has been detected. Please contact the site administrator.
* An illegal choice has been detected. Please contact the site administrator.

I'm asking for a teaser list and I tried with fields, without fields, and I still get the same message.

I also tried to save the view under a different name. Won't work. I do not get it.

ugerhard’s picture

That's formapi-error, it think (I've never encountered it myself). Is there a more specific error entry in your watchdog log?

Maybe could open an support issue in the views issue queue.

gostram’s picture

Illegal choice

More information about formatting options

in Input format element.

Illegal choice

More information about formatting options

in Input format element.

Illegal choice

More information about formatting options

in Input format element.

It seems to be something with the filters :)

Right now I have two filters:

- comment count is greater or equals 1
- Pending approval equals no

I wanted to add: comment is published, but I can't find soemthing like this in the filter options. Node type doesn't give comments and in the comment group the only things I have are:

pending approval
comment count
last comment time
last changed time

I don't get it...?!?

gostram’s picture

bump. Does anyone have an idea what's going on?

Cerulean’s picture

I searched through modules and decided to try to comment out random lines for effect. I found one that worked:

// return '<p>'. l(t('More information about formatting options'), 'filter/tips') .'</p>';

This was on line 971 of my filter.module.

I haven't seen any problems yet... and I was able to add the view I wanted.

arhip’s picture

Clean solution - no commenting on code: always check the page and block header, footer, and empty text. Each of these sections has 'input format' that must have one option checked, but by default none of them checked.

SamRose’s picture

tmaxwell’s picture

I'm getting this error on a create content form (it's a reference, with a few cck fields and 2 taxonomies). I don't see where I can access the page/block header footer and empty text.

Can you explain what you mean or does this not apply in my case?

Thanks.