Results 1 to 7 of 7
  1. #1
    New Pligger dpiworx's Avatar
    Joined
    Jan 2011
    Posts
    24
    Thanks
    Received:0
    Given: 0

    Link Summary in View vs Saved

    I am looking for a way to have the links show up one way in the Published and search results, but show up another way in the Saved area. I am wanting to put a condensed listing in the users Saved page that doesnt include the story summary.

    My thought was to have 2 templates, link_summary and link_summary_saved that are set up the way I want them, but I am not sure how to tell the user_center.tpl page and the other pages to see one over the other.

    The last question, if I can find it, change it to link_summary_saved, how do I then make it list in columns, say 4 columns per row?

    Thanks.

    Cory

  2. #2
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,513
    Thanks
    Received:87
    Given: 14
    Site
    http://pligg.com/demo/
    you would have to modify some of the core files of pligg to use seperate template files. What you will want to do is just use some {if} statements (google if you don't know what this means) to determine what view users should see. Basically something like: {if $pagename eq "profile"}Here's the profile template{else}here's the normal template{/if}. That's an imaginary example, but it should give you some ideas of how to approach this.

    As for the columns, I assume you would just float stories next to each other in fixed width <div>s. This is really much more of a general design question so I don't want to go into many details there since it's not my forte. I suggest you google for some examples on how to achieve this type of layout.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  3. #3
    New Pligger dpiworx's Avatar
    Joined
    Jan 2011
    Posts
    24
    Thanks
    Received:0
    Given: 0
    Thanks. Which core files?

  4. #4
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,513
    Thanks
    Received:87
    Given: 14
    Site
    http://pligg.com/demo/
    I meant to advise you NOT to change core files, since that would make it more difficult to upgrade. I then went on to describe how you should instead just use {if} statements to basically split up the template into 1 design for he saved page and 1 design for all other pages. I really can't get more involved in a solution for you. If you are not familiar with Pligg or PHP I suggest that you hire a programmer to develop this for you.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  5. #5
    New Pligger dpiworx's Avatar
    Joined
    Jan 2011
    Posts
    24
    Thanks
    Received:0
    Given: 0
    I misunderstood. I get it now. Thanks for the help!

  6. #6
    New Pligger dpiworx's Avatar
    Joined
    Jan 2011
    Posts
    24
    Thanks
    Received:0
    Given: 0
    The if else part worked perfect for the change in layour from the published page to the saved page. Perfect.

    Anyone else know how to get the items on just the saved page to show up in multiple columns instead of a list? Google searching isn't helping, and a search on the Pligg forums show one way of altering the lib/link_summary file, but that creates problems and only shows the multiple columns on the home page.

    Thanks.

    Cory

  7. #7
    New Pligger dpiworx's Avatar
    Joined
    Jan 2011
    Posts
    24
    Thanks
    Received:0
    Given: 0
    I finally figured this out, the two column part. As simple as:

    .two_columns {
    float:left;
    width:50%;
    }

    Figuring out where to put the div tags was the hardest part.

Similar Threads

  1. summary of story in complete story-view
    By gatekeeper in forum Questions & Comments
    Replies: 1
    Last Post: 04-18-2008, 01:31 PM
  2. Add link to send message to user on link summary
    By halisemre in forum Questions & Comments
    Replies: 1
    Last Post: 01-08-2008, 01:55 PM
  3. 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
  4. [SOLVED]  string appears in Link summary View
    By 911 in forum Questions & Comments
    Replies: 11
    Last Post: 07-22-2007, 06:19 AM
  5. View Friends Link gives 404
    By mskonfa in forum Questions & Comments
    Replies: 4
    Last Post: 03-30-2006, 10:25 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 Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg