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
  #32 (permalink)  
Old 12-28-2009, 11:29 PM
oobie11's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: Custom, wistie
 
Join Date: Apr 2009
Location: Monterey, CA
Posts: 148
Thanks, now just to figure out the css problem.
Reply With Quote
  #33 (permalink)  
Old 12-28-2009, 11:34 PM
oobie11's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: Custom, wistie
 
Join Date: Apr 2009
Location: Monterey, CA
Posts: 148
Oh, and I just realized I dont have the headline.png either
Reply With Quote
  #34 (permalink)  
Old 12-29-2009, 01:43 AM
lowster11's Avatar
Pligg Donor/Coder/Designer
Pligg Version: 1.1.1
Pligg Template: custom
 
Join Date: Oct 2009
Location: Sacramento
Posts: 260
Quote:
Originally Posted by oobie11 View Post
Oh, and I just realized I dont have the headline.png either
Here you go:
Code:
http://916sac.com/twitpics/headline.png
Reply With Quote
  #35 (permalink)  
Old 01-01-2010, 05:36 PM
LPH LPH is offline
Casual Pligger
Pligg Version: 1.0.3
Pligg Template: Arthemia
 
Join Date: Jan 2007
Posts: 53
I installed the featured module today and added two stories. Unfortunately the date and time stamp provided are incorrect. A May 13, 2009 date is showing for a story submitted 01/01/2010.

Is there a setting for the date that is incorrect on my part or is this a featured module problem?
Reply With Quote
  #36 (permalink)  
Old 01-02-2010, 01:08 AM
Pligg Donor/Coder
Pligg Version: 1.0.1
Pligg Template: Midnight Blue
 
Join Date: Oct 2009
Location: Chicago, IL
Posts: 170
This module had a few bugs e.g. you featured a post but then decided that you want to feature something else. You would naturally try by changing the featured post status from Enabled to disabled in featured administration. Try doing that or try Deleting that featured post. Now go to the main page and you will not see the featured image. You will only see a Black section in place of the image with text on top "phpThumb().... ". This is a bug.

What needs to happen is that when you disable or delete a featured post, the one before it should become the featured post. I fixed this bug. Here is a 1 line fix.

1. Open featured/featured_main.php file.
2. Search for the following code around line 249
Code:
$sql = "SELECT * FROM " . table_prefix . "featured ORDER BY featured_id ASC";
3. Replace this line with the following:
Code:
$sql = "SELECT * FROM " . table_prefix . "featured WHERE featured_enabled='Yes'  ORDER BY featured_id ASC";
This should fix the bug I mentioned.

Azam | SquidUp.org

Now Available: Status Wall from Pligg Pro

Quit Smoking Cigarettes. Live Healthy! Switch to Vapor. Learn about Electronic Cigarettes Electronic Cigarettes

Last edited by linkcitypro; 01-02-2010 at 01:21 AM.
Reply With Quote
  #37 (permalink)  
Old 01-15-2010, 12:52 PM
New Pligger
Pligg Version: 1.0.3
 
Join Date: Jan 2010
Posts: 1
I also had the same problem, the image in the headline doesn't work at all ... I've already set CHMOD to 777 but it showed error opening ... "featured/featured.php?=1": 401 authorization required

Anyone can help?

Thanks
Reply With Quote
  #38 (permalink)  
Old 01-15-2010, 11:11 PM
Casual Pligger
Pligg Version: 1.0.3b
Pligg Template: Arthemia
 
Join Date: Jul 2009
Location: Madrid, Spain
Posts: 38
MySql 4.1.22
php 5

Pligg 1.0.3b
Arthemia

Featured
applied CHMOD yankidank (../phpthumb/cache)
applied changes of linkcitypro
if i apply CHMOD in phpThumb.php, image not shown

This is image shown
Attached Images
File Type: png phpThumb.php.png (743 Bytes, 33 views)

Last edited by seomaker; 01-15-2010 at 11:55 PM.
Reply With Quote
  #39 (permalink)  
Old 01-16-2010, 02:08 PM
Pligg Donor/Coder
Pligg Version: 1.0.1
Pligg Template: Midnight Blue
 
Join Date: Oct 2009
Location: Chicago, IL
Posts: 170
Quote:
Originally Posted by seomaker View Post
MySql 4.1.22
php 5

Pligg 1.0.3b
Arthemia

Featured
applied CHMOD yankidank (../phpthumb/cache)
applied changes of linkcitypro
if i apply CHMOD in phpThumb.php, image not shown

This is image shown
Everything was working fine but now i'm also seeing the same error image. Any help?

Azam | SquidUp.org

Now Available: Status Wall from Pligg Pro

Quit Smoking Cigarettes. Live Healthy! Switch to Vapor. Learn about Electronic Cigarettes Electronic Cigarettes
Reply With Quote
  #40 (permalink)  
Old 01-16-2010, 02:39 PM
Pligg Donor/Coder
Pligg Version: 1.0.1
Pligg Template: Midnight Blue
 
Join Date: Oct 2009
Location: Chicago, IL
Posts: 170
Nevermind, this was fixed by reapplying the chmod to all folders in the Cache

Azam | SquidUp.org

Now Available: Status Wall from Pligg Pro

Quit Smoking Cigarettes. Live Healthy! Switch to Vapor. Learn about Electronic Cigarettes Electronic Cigarettes
Reply With Quote
  #41 (permalink)  
Old 01-17-2010, 10:41 AM
New Pligger
Pligg Version: 1.0
 
Join Date: Aug 2009
Posts: 1
The Module doesn't works well with none-english characters, all text are converted to ??????
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