Featured News Module

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools
Featured News Module
Developed by Yankidank Yankidank is online now
Developer Last Online: Mar 2010 Show Printable Version Email this Page
Designed for: Pligg 1.0.1
Released: 09-28-2009
Last Update: Never
Installs: 21
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, 705 views)

Screenshots

File Type: png featured1.png (39.1 KB, 767 views)
File Type: png featured2.png (18.4 KB, 493 views)
File Type: png featured3.png (74.9 KB, 634 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 147 09:20 AM 03-21-2010

Comments
  #22 (permalink)  
Old 11-06-2009, 08:38 AM
New Pligger
Pligg Version: 1.0.1
 
Join Date: Nov 2009
Posts: 4
Hi,

Do I need to add "{if $pagename == 'index' && count($templatelite.get) == 0}{$featured}{/if}
" in to my index_center.tpl manually if I'm using Arthemia as a template?

thank you =)
Reply With Quote
  #23 (permalink)  
Old 11-13-2009, 02:16 PM
New Pligger
 
Join Date: Oct 2008
Posts: 3
Hi,
this module looks really nice. I was wondering if it is possible to link this to top stories, so that the most popular 4 would be always displayed automatically?
Reply With Quote
  #24 (permalink)  
Old 11-13-2009, 02:32 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 3,804
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Quote:
Originally Posted by bugman_w View Post
Hi,
this module looks really nice. I was wondering if it is possible to link this to top stories, so that the most popular 4 would be always displayed automatically?
No, the module is not designed to work that way. You could accomplish that type of feature through the Pligg template itself without any additional modules or hacks. If you look at the source code for this module's template it might give you an idea as to how to accomplish that.

Now Available: Facebook Connect Module !
Reply With Quote
  #25 (permalink)  
Old 11-21-2009, 09:52 PM
New Pligger
Pligg Version: 1.0.1
 
Join Date: Nov 2009
Location: http://dighi5.com
Posts: 2
thxxxxxxxxxxxxx
Reply With Quote
  #26 (permalink)  
Old 12-04-2009, 01:43 PM
New Pligger
 
Join Date: Dec 2009
Posts: 1
I did just the like image logo like it wants to load on my main page but I also noticed that it is trying to pull the image from a place its not from:

/templates/wistie/images/headline.png

instead of

module.php?module=featured&action=view_image&id=2

Where in the your code does it call up the image to show.. Maybe it is calling on the wrong path. I am not sure.

Thanks!
Reply With Quote
  #27 (permalink)  
Old 12-06-2009, 08:14 PM
lowster11's Avatar
Pligg Donor/Designer
Pligg Version: 1.0.3
Pligg Template: custom
Donation Level 1 
 
Join Date: Oct 2009
Location: Sacramento
Posts: 227
Quote:
Originally Posted by sulong View Post
Who is perfect to use this module? demo link ,thx !
works 4 me

when's the last time you donated your Pligg

Last edited by Yankidank; 12-06-2009 at 11:54 PM.
Reply With Quote
  #28 (permalink)  
Old 12-08-2009, 09:19 AM
New Pligger
 
Join Date: Oct 2009
Posts: 2
i was using this module around 1 month now.. it was working fine.. but now i found a problem when i use it with google chrome. just when i load the site all videos start to play sounds (audio only). i mean even with out clicking the video play button. just the time i load the site. can anyone help me to fix this problem. thank you.
Reply With Quote
  #29 (permalink)  
Old 12-08-2009, 01:03 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 3,804
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
I don't think this is related to the Featured News Module, unless you are embedding the videos using that module. Either way you should look at this post which discusses disabling auto play for the Video Plus module.

Now Available: Facebook Connect Module !
Reply With Quote
  #30 (permalink)  
Old 12-28-2009, 09:56 PM
oobie11's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: Custom, wistie
 
Join Date: Apr 2009
Location: Monterey, CA
Posts: 148
I'm having a few problems.

First, it isn't link to the featured css file. Do I have to manually link it in <head>?

Second, there is no featured.png in the images folder. Is there suppose to be?

Thanks
Reply With Quote
  #31 (permalink)  
Old 12-28-2009, 10:06 PM
lowster11's Avatar
Pligg Donor/Designer
Pligg Version: 1.0.3
Pligg Template: custom
 
Join Date: Oct 2009
Location: Sacramento
Posts: 227
Quote:
Originally Posted by oobie11 View Post

Second, there is no featured.png in the images folder. Is there suppose to be?

Thanks
Here you go:



you can copy the image from here:
Code:
http://916sac.com/twitpics/featured.png

when's the last time you donated your Pligg
Reply With Quote
Reply

Tags
featured, featurify, module, news

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 8 01-04-2010 07:06 PM
Module that allows users to put their adsense ads on their news. Ganha Questions and Comments 4 06-09-2009 07:07 PM
Removing adsense from Featured Module? submitlink Questions and Comments 1 08-16-2008 11:11 AM
How to Change Headline of FEATURED MODULE weismangroup Questions and Comments 2 06-13-2008 10:21 PM
No upcoming news module on pages other than published news? AshMCairo Questions and Comments 2 08-07-2007 09: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