Iruiz,

your solution should work fine, but the reason why that wasn't working is because that $entry variable is incorrect. what that should really look like is this ...

         #if ($model.permalink)
             #showWeblogEntryComments($model.weblogEntry)
             #showWeblogEntryCommentForm($model.weblogEntry)
         #end

-- Allen


lruiz wrote:
I check all the configs and they are ok,
I think the problem is on the themes for some reason the $entry object isn't
set so the following code on Weblog.vm doesn't work

        #if ($model.permalink)
            #showWeblogEntryComments($entry)
            #showWeblogEntryCommentForm($entry)
        #end

so I moved the code to _day.vm in iteration over entries, and now it works,
btw, i don't know nothing about velocity or if this is a good solution but I
hope that helps you in some way so I attached the patch with the code
changes for a better understanding



Anil Gangolli wrote:

Check two places:

There's a value that determines the number of days to allow for comments. The default value for a new entry is determined on the Weblog Settings | Preferences Tab | Settings page for the weblog.

Their is an independent value for each entry; this value is initially set from the default but can be tweaked per entry. You can see it by editing the entry and looking under the "Advanced Settings" part of the page (if you click to expand that).

What are you seeing there?

Note that there may be bugs in the latest trunk code that are not in previously released versions.
--a.



----- Original Message ----- From: "lruiz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, April 19, 2007 10:40 PM
Subject: Help with this problem "Comments are closed for this entry."


I had downloaded roller from trunk and then compile with success, I'm using tomcat5.5.23, mysql5.0.37, mysql connector5.0.5, the application runs fine, the think that I'm unable to comment an entry, I check the configuration and all seems ok (comments are suppose to allowed) but i always get this message
"Comments are closed for this entry."

thanks in advance
larry
--
View this message in context: http://www.nabble.com/Help-with-this-problem-%22Comments-are-closed-for-this-entry.%22-tf3611319s12275.html#a10091744
Sent from the Roller - User mailing list archive at Nabble.com.



http://www.nabble.com/file/8010/allow_comments_patch.txt
allow_comments_patch.txt

Reply via email to