Featured News Module

Register an Account
Reply
 
Thread Tools
Featured News Module
Developed by Yankidank Yankidank is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page
Designed for: Pligg 1.0.1
Released: 09-28-2009
Last Update: Never
Installs: 53
Makes Database Changes
Uses Module System
Can Reuse Source Code
Template Edits Required
Not Supported by Author
While working on a new template for Pligg I was trying to come up with the best way to manage articles that would appear on top of the homepage to feature select stories. I originally was thinking that I could use the "Groups" feature for Pligg, or even create a "Featured" category. Then I thought that those methods would not allow me to appropriately label my news and were not the best way to handle the featured news articles that I wanted on the homepage. That's when I turned to CMStheme's Featurify module, which allows admins to manually set up images that link to news article and rotate those images somewhere in your template. A few hours later I had created a "Featured" module for Pligg.

How it works
The first thing you will need to do is upload and install the module. Then add a snippet of code to the template file where you want the featured news to appear. You can do this by adding the following line to a .tpl file:
Code:
{$featured}
I suggest that you place it on your homepage by placing it in index_center.tpl and wrapping it with the following code so that it only shows up on the homepage and not the second, third, etc. pages.
Code:
{if $pagename == 'index' && count($templatelite.get) == 0}{$featured}{/if}
The Featured module has a nearly identical admin interface to the Featurify module. Admins can log in to the admin area and then navigate to a page where it displays your current featured news items. If you want to remove a news item you can easily edit or delete it, or if you don't have any you can click on the button to "Add Featured News". See the attached screenshots for examples.

The module is set to only grab the latest 4 news items from your Featured News list. The most recent item will be used to display the first news article with a larger image, while the second, third and fourth most recent article appear with a smaller thumbnail.

The template file used for this module ( /modules/featured/templates/featured.tpl ) has been designed to work with the new Arthemia Pligg template. If you are using another template you will want to customize this file to make it look better in your own template. You can also make some small tweaks to the file to change how many stories you want to appear, how many characters the smaller stories get in their descriptions before being cut off and other cosmetic changes.

Lastly, make sure that you CHMOD 0777 the /modules/featured/phpthumb/cache/ directory to ensure that thumbnails are able to be added to that folder.

Credits
CMStheme for his Featurify module.
phpthumb for generating and caching image thumbnails

Download Now

File Type: zip featured.1.0.zip (605.8 KB, 2492 views)

Screenshots

File Type: png featured1.png (39.1 KB, 2405 views)
File Type: png featured2.png (18.4 KB, 1531 views)
File Type: png featured3.png (74.9 KB, 1949 views)

Show Your Support

  • If you like this download support the author by donating.
  • This download may not be copied, reproduced or published elsewhere without author's permission.

Similar Downloads
Download Developer Category Replies Last Post
Arthemia Free Pligg Template Yankidank Free Templates 311 11:39 PM 02-09-2012
Headlinr: Featured News Manager PLMCHL Free Modules 12 01:47 PM 07-10-2011

Comments
  #12 (permalink)  
Old 10-04-2009, 04:12 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Could be a phpthumb configuration problem. You might want to see if their support could hep you, here's the phpthumb homepage.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #13 (permalink)  
Old 10-04-2009, 11:25 PM
New Pligger
 
Join Date: Jan 2007
Posts: 6
Quote:
Originally Posted by Yankidank View Post
1. Make sure that you chmod 0777 the /modules/featured/phpthumb/cache/ directory.
2. The featured images? If you are talking about upload module images it's up to you to position and style them from the upload module settings page.
I've make sure the permission is 0777, but the featured image is still broken.

You can see it on my site.
Reply With Quote
  #14 (permalink)  
Old 10-04-2009, 11:45 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Quote:
Originally Posted by shilmy View Post
I've make sure the permission is 0777, but the featured image is still broken.

You can see it on my site.
I've moved your posts to the appropriate thread for the Featured module, the template is unrelated to the problems you are experiencing with this module.

Sorry, but I don't have enough time to support this module so its up to you or others to figure out a solution to your problem. I had tested this module on 3 servers before releasing this version and it worked fine on those. I'm not going to dedicate more of my time making sure that it runs on every possible server in every language.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #15 (permalink)  
Old 10-05-2009, 02:47 AM
nellaitamil's Avatar
Constant Pligger/Designer
Pligg Version: 1.1.3
Pligg Template: ar...
 
Join Date: Dec 2008
Location: india
Posts: 208
Nice Work This module

Last edited by Yankidank; 10-10-2009 at 12:19 PM. Reason: Removed link to site, not using module
Reply With Quote
  #16 (permalink)  
Old 10-10-2009, 10:56 AM
Casual Pligger
 
Join Date: Sep 2007
Posts: 35
I don't think Image is working for anyone. If it's working for anyone on the board, please post.
Reply With Quote
  #17 (permalink)  
Old 10-10-2009, 11:12 AM
Casual Pligger
Pligg Version: 1.0.3
Pligg Template: Shmiggy
 
Join Date: Aug 2009
Location: Iran (Islamic Republic Of)
Posts: 46
i have same problem
Reply With Quote
  #18 (permalink)  
Old 10-13-2009, 12:19 PM
Casual Pligger
 
Join Date: Sep 2007
Posts: 35
I want this feature to be appeariing in only in one category and not all

Which template should I put the code (& what format)


{if $pagename == 'index' && category_id == 4}
{$featured}

{/if}

Which template should I put the code in?

Otherwise, I would like to create a page where this can be displayed.

Thanks!
Thank you!

Last edited by reddyink; 10-13-2009 at 12:46 PM.
Reply With Quote
  #19 (permalink)  
Old 10-27-2009, 08:46 PM
Casual Pligger
Pligg Version: 9.8
Pligg Template: mico
 
Join Date: Oct 2007
Posts: 40
Hi,
I love this module and I am using it in the arthemia theme.I am showing it under all the pages instead of just the homepage. So I was wondering, is it possible to pass a category to the featured module such that it displays only the featured posts for that category.

The other way could be to have multiple instances of the feature module and calling them for each category something like:

if categoryid=1
{$featured}
else if category = 2
{$featured2}

and so on..

Can you provide any help?

Thanks
Reply With Quote
  #20 (permalink)  
Old 10-27-2009, 11:41 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
See "Templating Categories" on this wiki article:
Pligg Categories

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!
Reply With Quote
  #21 (permalink)  
Old 10-28-2009, 05:20 AM
sulong's Avatar
Casual Pligger
Pligg Version: 1.0.3
Pligg Template: thestandard
 
Join Date: Dec 2008
Location: China
Posts: 85
Who is perfect to use this module? demo link ,thx !
Reply With Quote
Reply

Tags
featured, featurify, module, mod_security rule, news, whitelist

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixes to Profile Extra Fields Module v0.2 and Extended Profile Module v0.1 redwine Questions and Comments 11 12-20-2010 04:18 PM
Module that allows users to put their adsense ads on their news. Ganha Questions and Comments 4 06-09-2009 08:07 PM
Removing adsense from Featured Module? submitlink Questions and Comments 1 08-16-2008 12:11 PM
How to Change Headline of FEATURED MODULE weismangroup Questions and Comments 2 06-13-2008 11:21 PM
No upcoming news module on pages other than published news? AshMCairo Questions and Comments 2 08-07-2007 10:25 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development