Results 1 to 3 of 3
  1. #1
    Constant Pligger revolver's Avatar
    Joined
    Oct 2006
    Posts
    220
    Thanks
    Received:0
    Given: 0

    full story (not summary) on index page

    How can I get the full story - not the summary to display on list view pages like upcoming and the index page? I was hoping to do this easily in link_summary.tpl but it looks like the full story and the summary are both displayed using the same smarty variable - $story_content and that $story_content is set to either full or summary somewhere else.

    Any help greatly appreciated.

  2. #2
    Mayor of PliggVille/Coder AshDigg's Avatar
    Joined
    Dec 2005
    Posts
    1,515
    Thanks
    Received:0
    Given: 0
    /libs/link_summary.php

    lines 72 + 79

    PHP Code:
                    $link->print_summary('summary'); 
    to

    PHP Code:
                    $link->print_summary('full'); 

  3. #3
    Constant Pligger revolver's Avatar
    Joined
    Oct 2006
    Posts
    220
    Thanks
    Received:0
    Given: 0
    Thanks AshDigg. That works. Now I am trying to decide for the site I'm building whether i would be better off modifying libs/link.php so that separate smarty variables are always created for the truncated summary and the full story. This would allow me to decide in link_summary.tpl on a case by case basis how i want to display the story. Is there any reason why i shouldn't do it this way? (performance, dependencies etc ?)

    This is what I'm thinking of doing ...

    libs/link.php
    replace lines 366 to 375 with ...

    Code:
    $smarty->assign('story_content', $this->content);
    if($this->link_summary == "")
      $smarty->assign('story_content_summary', $this->truncate_content());
    else
      $smarty->assign('story_content_summary', $this->link_summary);
    in link_summary.tpl
    Code:
    {if $pagename eq"story"}{$story_content}{else}{$story_content_summary}{/if}
    The link_summary.tpl logic above could be easily modified to display the story in any way. (ie: it would be easy to show a summary on all pages with a thickbox link to display the full content.)

    What do you think?

Similar Threads

  1. Replies: 1
    Last Post: 06-11-2009, 03:03 AM
  2. [SOLVED] beta 9.9 - story shows summary, not full description
    By tlembke in forum Questions & Comments
    Replies: 18
    Last Post: 08-03-2008, 08:24 PM
  3. Allow HTML TAGS in full story but not in summary
    By Wonderm00n in forum Questions & Comments
    Replies: 5
    Last Post: 04-16-2008, 03:19 AM
  4. characters on full story page?
    By jamfull in forum Questions & Comments
    Replies: 0
    Last Post: 02-23-2008, 07:50 AM
  5. Would like video to display in full story view, not summary view
    By aaronpais in forum Questions & Comments
    Replies: 8
    Last Post: 11-13-2007, 01:21 AM

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 Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg