I’ve just installed the Comments Extension into a new Radiant
application. It appears to work, except that every request I make
adds an additional link to ‘enable’ comments on the page listing
page. After 15 requests, there’s 15 links. Restarting the server
corrects this.
Where can I find where the extension adds the overlay to the admin
pages?
This is a bug in 0.6.7 that occurs when run in development mode. If
you run it in production mode it will go away, or if you freeze to the
edge that should also take care of it.
Embarrassing for me. I’ve subscribed to this mailing list for several
months now and seen people talk about this known bug, but never read
them since I didn’t have an issue. Lesson learned by me, then.
What did happen when you submitted the comment? Did you get an error?
Typical, it will show your comment and say that it’s awaiting
approval. In the comments tab in the admin you can then see and
approve the comment. In your case it’s a little unclear what you did
or what results you got.
There is no error and it does not show up in the comments tab waiting
for approval. When I clicked on save comment my browser pulls up me http://localhost:3000/comments, however since I have not added any
content to that page it comes up blank. I’m guessing there is
something that needs to be added there. I have also look in the
comments table which is blank.
There is no error and it does not show up in the comments tab waiting
for approval. When I clicked on save comment my browser pulls up me http://localhost:3000/comments, however since I have not added any
content to that page it comes up blank. I’m guessing there is
something that needs to be added there. I have also look in the
comments table which is blank.
HI I’m sorry I can’t directly help with your problem here, but just to
be clear, did you follow the instructions about using the Comments
extension as given in the wiki page about using Radiant as a blog? http://wiki.radiantcms.org/Using_Radiant_as_a_Blog
following problem(s).
with a 404 error for /comments. So I created that page and repeated
my test. Page came up fine, however the comment did not save in the
database. What am I missing here? Is there a tag I need to add the
/comments page for it to save them?
After looking at the code I figured out what I was doing wrong and got
it
working. It seems the Comments Extension does not like it when you
attempt
to post comments from the home page of the site.
I do have one small question is there a way for me to skip the approval
process? I’d rather they just be approved. I suppose I can edit the
extension, however I was just hopping that was not necessary.
I did not see an error occur with either one of them.
I also took a look at the url you sent earlier http://wiki.radiantcms.org/Using_Radiant_as_a_Blog and the only thing I
have
not done is enable Akismet, which I understand to be optional (I will be
doing once I get into production).
This is a bug in the extension.
It submits comments to the_page_url/comments and sets up routes to
catch that and send it to the comments controller.
We’ll need to make an exception for the home page and perhaps create a
custom route for it.
Are you really accepting comments on your home page, or are you
accepting comments on content listed on the homepage but actually
saved in another location? It’s possible that you might need to alter
your radius code if that is the case.
After looking at the code I figured out what I was doing wrong and got
it
working. It seems the Comments Extension does not like it when you
attempt
to post comments from the home page of the site.
I do have one small question is there a way for me to skip the approval
process? I’d rather they just be approved. I suppose I can edit the
extension, however I was just hopping that was not necessary.
Thanks,
Bryce
I think using Akismet will automatically approve the comment.
I saw the code and I think that, to make the comments unapproved for
default, the way is to comment the line seven of comment.rb model:
“#before_save :auto_approve”
Can someone tells me if this is the best way?
Thanks,
Rafael Souza
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.