Results 1 to 2 of 2
  1. #1
    Pligg Donor rubber2002's Avatar
    Joined
    Jul 2007
    Posts
    286

    Is It Possible To Remove 'Comments' ?

    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 Images Attached Images

  2. #2
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    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}

Similar Threads

  1. How would I remove captcha from comments?
    By tiptop in forum Questions & Comments
    Replies: 2
    Last Post: 02-24-2012, 06:11 AM
  2. Remove "Vote(s)" and "Comments" from RSS Feeds
    By kleinhev in forum Questions & Comments
    Replies: 0
    Last Post: 10-17-2009, 02:38 AM
  3. How to remove this?
    By BalkanW in forum Questions & Comments
    Replies: 1
    Last Post: 02-08-2009, 03:31 PM
  4. Comments update, comments accents... what more!!
    By seotalk in forum Questions & Comments
    Replies: 1
    Last Post: 06-15-2007, 01:56 AM
  5. how to remove all of this
    By cute2008 in forum Questions & Comments
    Replies: 1
    Last Post: 04-06-2007, 10:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting