Go Back   Pligg CMS Forum > Pligg Help > General Help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-20-2007, 01:38 PM
New Pligger
 
Join Date: Feb 2007
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
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!
Reply With Quote
  #2 (permalink)  
Old 02-20-2007, 03:21 PM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
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.
Reply With Quote
The Following User Says Thank You to dollars5 For This Useful Post:
  #3 (permalink)  
Old 03-12-2007, 11:29 AM
Casual Pligger
 
Join Date: Sep 2006
Posts: 64
Thanks: 11
Thanked 2 Times in 2 Posts
:( I was looking for this... I'll try to see in the extra_fields but i haven't good knowledge in developping...
Reply With Quote
  #4 (permalink)  
Old 12-18-2007, 04:46 PM
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Aug 2007
Posts: 39
Thanks: 6
Thanked 0 Times in 0 Posts
Hello.

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

Thanks in advance.
Reply With Quote
  #5 (permalink)  
Old 12-18-2007, 05:03 PM
modernste's Avatar
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Nov 2007
Posts: 43
Thanks: 6
Thanked 5 Times in 5 Posts
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.
Reply With Quote
The Following User Says Thank You to modernste For This Useful Post:
  #6 (permalink)  
Old 12-18-2007, 05:03 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,401
Thanks: 171
Thanked 440 Times in 279 Posts
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
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
The Following 2 Users Say Thank You to chuckroast For This Useful Post:
  #7 (permalink)  
Old 12-18-2007, 06:22 PM
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Aug 2007
Posts: 39
Thanks: 6
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #8 (permalink)  
Old 12-19-2007, 09:31 AM
modernste's Avatar
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: yget
 
Join Date: Nov 2007
Posts: 43
Thanks: 6
Thanked 5 Times in 5 Posts
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.
Reply With Quote
The Following User Says Thank You to modernste For This Useful Post:
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I show articles from a specific ... wishmaster22 Customization Assistance 0 08-11-2008 11:11 PM
Can Pligg be modified to post user-written articles, not links to articles? slobizman General Help 3 08-08-2007 03:13 AM
Internal Pligg Site - Users submit articles, which are then voted on. tokyojj General Help 9 07-25-2007 03:44 PM
Google Not Picking Up Articles? skins4webs General Help 3 05-27-2007 09:20 PM
Add-on:View articles users have commented on in their profile kbeeveer46 Modification Tutorials 2 08-24-2006 12:31 AM


Search Engine Friendly URLs by vBSEO 3.2.0