Support / Feature request:
My client asked me to display the known 'login or register to post comments' link, displayed in the bottom of nodes any comments-enabled drupal site, only when the full node is displayed, not in the teaser node-list view.
I am using Phptemplate. Drupal version: 4.6.1. Web server: apache. Browsers: IE/Firefox.
I've tried to modify links.tpl.php, or to override the phptemplate_comment_post_forbidden() function, or to override the phptemplate_links function - but I get into the same problem : how do I tell if this is the full node or the teaser or the main links?
Or is there a better way to solve the issue?
Please advise.
This may also be posted as a feature request (optional flag) for future versions of the comments module.
Thanks
Amnon
-
Personal: Bring Dolphin's Simple Joy to your Work - Job - Career
Professional: Small business web hosting strategies, Drupal Hebrew Hosting
Comments
Comment #1
druvision commentedI've also added it as a theme support request.
Comment #2
druvision commentedRevised feature request:
Optionally, the 'add comment' link (and the ('login or register to post comments' link) should be hidden in the node listings
Here is a code which does it.
No, after a long research I've found that I can't change the workflow from within the theme and that the function which does it is not themable.
Non-disclaimer: Sorry I don't know how to make a patch yet. Sorry if my PHP style is not drupal-correct - I have alot to learn. The added lines are marked by /* AL New */ before, and /* AL End */ after them. Also, this should probably be an option.
****************************************************************************************************
* 22 Feb 2006,
* modules/comment.module, modify the comment_link function (line 201 in drupal 4.6.1 version) to only display links in the full item display
****************************************************************************************************
Comment #3
magico commentedComment #4
dmitrig01 commentedplease attach a patch
Comment #12
dpearcefl commentedIs there any interest or a need any longer?