Forum OpenACS Q&A: general comments starter question

Collapse
Posted by Pavel Boghita on
I have general-comments enabled on my practice site. At the moment 'add a comment' appears as it should for the users who are logged in. I want for the 'add comment' bit to be diplayed for everyone and clicking on the link to take the user to the login page.
Is there a way to do this apart from tweaking the code ? If tweaking is the only option how should this be done?

Thanks

Collapse
Posted by Pavel Boghita on
I had a look through the item.adp in news package and the bit that displays 'add comment' is defined as an if statement:

<if @comment_link@ ne "">
....etc....

what does 'ne' stand for ?

Collapse
Posted by Jade Rubick on
Not equal :)
Collapse
Posted by bill kellerman on
not equal
Collapse
Posted by Tilmann Singer on
This and much more is in the acs templating docs at /doc/acs-templating/ of your installation.
Collapse
Posted by Pavel Boghita on
thanks for that, I'll go and read on this some more.

anyway, I modified item.tcl in ../package/news and took "set comment_link [general_comments_create_link $item_id ... etc...etc... outside its respective if statement, so it get evaluated no matter what.
I also commented out - set comment_link "" -  within the 'else'

this modification only seems to have done the trick as far as I am concerned.

Collapse
Posted by bill kellerman on
when looking for examples, it can also be helpful to look at the code in cvs used for the openacs.org site itself.