Is It Possible To Remove 'Comments' ?

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-23-2008, 09:37 PM
Pligg Donor
 
Join Date: Jul 2007
Posts: 286
Hi
Please see attached image. I need the 'Comments' on the main page, but I want to remove this 'Comments' on story page as we already have 'Comments', 'Related Stories' & 'Who Voted' tabs on the bottom & it does not make any sense to have it twice (I know it shows total number of comments).
What code I should put/ edit in link_summary.tpl
Thanks
Attached Thumbnails
Is It Possible To Remove 'Comments' ?-comment.jpg  
Reply With Quote
  #2 (permalink)  
Old 10-23-2008, 10:19 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,832
Moved this thread under "Customization Assistance" where it belongs.

Anyway are you saying you don't what the "discuss" link to appear under the story while on story pages?

Open link_summary.tpl and look for:
Code:
<span id="ls_comments_url-{$link_shakebox_index}">
                {if $story_comment_count eq 0}
                    
                    <span id="linksummaryDiscuss"><a href="{$story_url}" class="comments">{#PLIGG_MiscWords_Discuss#}</a> &nbsp;</span>
                {/if}
                {if $story_comment_count eq 1}
                    <span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comment#}</a> &nbsp;</span>
                {/if}
                {if $story_comment_count gt 1}
                    <span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comments#}</a> &nbsp;</span>
                {/if}
            </span>
Replace with:
Code:
{if $pagename ne "story"}
<span id="ls_comments_url-{$link_shakebox_index}">
                {if $story_comment_count eq 0}
                    
                    <span id="linksummaryDiscuss"><a href="{$story_url}" class="comments">{#PLIGG_MiscWords_Discuss#}</a> &nbsp;</span>
                {/if}
                {if $story_comment_count eq 1}
                    <span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comment#}</a> &nbsp;</span>
                {/if}
                {if $story_comment_count gt 1}
                    <span id="linksummaryHasComment"><a href="{$story_url}" class="comments2">{$story_comment_count} {#PLIGG_MiscWords_Comments#}</a> &nbsp;</span>
                {/if}
            </span>  
{if}


Download the full Pligg Module Pack





Reply With Quote
Reply

Tags
comments

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solution] Limit Comments in Story page. manya1011 Questions and Comments 9 03-12-2008 06:26 PM
Problem with comments in sidebar grimusm Questions and Comments 0 01-01-2008 08:11 AM
Comments nzbullet Questions and Comments 0 08-26-2007 08:32 PM
Comments, MYSQL Queries Simon Questions and Comments 7 05-06-2007 09:10 AM
[Feature] Comments page Isabelle Hurbain Questions and Comments 0 01-27-2007 11:46 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development