Results 1 to 8 of 8

Thread: Sticky Articles

  1. #1
    New Pligger hobbes's Avatar
    Joined
    Feb 2007
    Posts
    1
    Thanks
    Received:0
    Given: 0

    Sticky Articles

    I was wondering if it was possible to make an article sticky. What I mean is when the user sees the front page- the newest stories are displayed under a sticky static story.

    thanks!

  2. #2
    Pligg Donor dollars5's Avatar
    Joined
    Dec 2006
    Posts
    1,960
    Thanks
    Received:0
    Given: 0
    There is no off-the-shelf implementation for this, but a simple suggestion is to use the extra_fields (link_fields I guess) to store the sticky status and in you tpl file modify to query the fields that has this extra field set first before a normal query (you should also modify it to filter off sticky links)

    Just a suggestion.

  3. #3
    Casual Pligger Juju66's Avatar
    Joined
    Sep 2006
    Posts
    59
    Thanks
    Received:0
    Given: 0
    I was looking for this... I'll try to see in the extra_fields but i haven't good knowledge in developping...

  4. #4
    Member newsome's Avatar
    Joined
    Aug 2007
    Posts
    62
    Thanks
    Received:0
    Given: 0
    Hello.

    Has anyone figured this out, yet? If so, what are the step-by-step instructions?

    Thanks in advance.

  5. #5
    Casual Pligger modernste's Avatar
    Joined
    Nov 2007
    Posts
    34
    Thanks
    Received:0
    Given: 0
    you could always implement the featured story mod like I have on my site terrafite / Popular you could probably add as many of those as you like, although it's a workaround, it's a start.

  6. #6
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    Thanks
    Received:396
    Given: 73
    Version
    SVN Build
    Site
    http://Pligg.com/chuckroast
    Quote Originally Posted by newsome View Post
    Hello.

    Has anyone figured this out, yet? If so, what are the step-by-step instructions?

    Thanks in advance.
    see http://forums.pligg.com/downloads.php?do=file&id=50
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


  7. #7
    Member newsome's Avatar
    Joined
    Aug 2007
    Posts
    62
    Thanks
    Received:0
    Given: 0
    Thanks for the info folks. Just one more question:

    Can I feature e.g. Top 5 stories or just one with this mod?

    Again, thanks in advance.

  8. #8
    Casual Pligger modernste's Avatar
    Joined
    Nov 2007
    Posts
    34
    Thanks
    Received:0
    Given: 0
    take a look at terrafite / Popular all I did was make a copy of the php code in the featured_story_index.tpl and paste it underneath the other. I would imagine you can do this for any number of articles you want to be sticky.

    just copy this:
    {php}
    require_once(mnminclude.'link.php');
    $link = new Link;

    // Edit this line here to change the story
    // to figure out what number a story is, hover your mouse over the votebox for the story
    // you'll see javascript:vote(A, B, C, 'D', E)
    // the 2nd number (B) will be the number you enter below
    // a better version of this module will come with Pligg V1.0

    $link->id=40;


    $link->read();
    $link->print_summary('summary');
    {/php}<br>


    and paste it right under the first article, if you want more, just keep pasting. at least this is the solution that worked for me.


    Quote Originally Posted by newsome View Post
    Thanks for the info folks. Just one more question:

    Can I feature e.g. Top 5 stories or just one with this mod?

    Again, thanks in advance.

Similar Threads

  1. [SOLVED] How can i change 8 articles to 16 articles in pligg?
    By Fred007 in forum Questions & Comments
    Replies: 33
    Last Post: 11-09-2008, 03:52 AM
  2. Can we create a sticky on how to deal with SPAM?
    By mobass in forum Questions & Comments
    Replies: 3
    Last Post: 03-08-2008, 05:42 PM
  3. how to make the sticky in Pligg
    By cooldudeny in forum Questions & Comments
    Replies: 1
    Last Post: 01-28-2008, 10:56 PM
  4. Replies: 3
    Last Post: 08-08-2007, 12:13 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