Featured News Module

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools
Featured News Module
Developed by Yankidank Yankidank is offline
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, 701 views)

Screenshots

File Type: png featured1.png (39.1 KB, 760 views)
File Type: png featured2.png (18.4 KB, 488 views)
File Type: png featured3.png (74.9 KB, 628 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 146 08:57 AM 03-16-2010

Comments
  #42 (permalink)  
Old 01-23-2010, 11:05 PM
LPH LPH is offline
Casual Pligger
Pligg Version: 1.0.3
Pligg Template: Arthemia
 
Join Date: Jan 2007
Posts: 53
Unfortunately, I had to disable this module. It was working great for several weeks but today the black box problem showed up. Everything I tried failed to get it to work. CHMOD cache didn't work. Deleting cache, etc.

Maybe this will get updated some day....
Reply With Quote
  #43 (permalink)  
Old 01-26-2010, 03:26 PM
wesamly's Avatar
New Pligger
Pligg Version: 1.0.3
 
Join Date: Jan 2010
Location: Tripoli, Libya
Posts: 7
Thanks a lot, great module indeed.

My Pligg Website: http://about.ly
Reply With Quote
  #44 (permalink)  
Old 02-01-2010, 12:23 PM
New Pligger
 
Join Date: Dec 2009
Posts: 19
How do you link News ID to the page that doesn't have ID number? For Instance, I want it to link to "About us" page, it doesn't come with vote system and all.

Thanks.
Reply With Quote
  #45 (permalink)  
Old 02-03-2010, 09:43 AM
New Pligger
 
Join Date: Dec 2009
Posts: 19
Hello developer? Could you help me with that? How do you make it linkable to any pages rather than using NEWS ID only?
Reply With Quote
  #46 (permalink)  
Old 02-05-2010, 02:02 PM
New Pligger
 
Join Date: Feb 2010
Posts: 1
Quote:
Originally Posted by Yankidank View Post
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.
OK, I fixed it myself.
If you have same ploblem, try this


First,

Open
Code:
modules\featured\templates\featured.tpl

go to line 24 and change
HTML Code:
<a href="{$featured[featured].link_url}"><img style="border:1px solid #ccc;padding:2px;" src="{$my_pligg_base}/modules/featured/phpthumb/phpThumb.php?src={$my_base_url}{$my_pligg_base}%2fmodules%2ffeatured%2ffeatured.php%3fid%3d{$featured[featured].featured_id}&w=300" alt=""></a> 
to

HTML Code:
<a href="{$featured[featured].link_url}"><img style="border:1px solid #ccc;padding:2px;" src="{$my_pligg_base}/modules/featured/phpthumb/phpThumb.php?src=http%3a%2f%2fwww.YOR_DOMAIN_NAME.com%2fmodules%2ffeatured%2ffeatured.php%3fid%3d{$featured[featured].featured_id}&w=300" alt=""></a> 
if you install in sub folder
ex. http://www.YOR_DOMAIN_NAME.com/YOUR_FOLDER try this


HTML Code:
<a href="{$featured[featured].link_url}"><img style="border:1px solid #ccc;padding:2px;" src="{$my_pligg_base}/modules/featured/phpthumb/phpThumb.php?src=http%3a%2f%2fwww.YOR_DOMAIN_NAME.com%2fYOUR_FOLDER%2fmodules%2ffeatured%2ffeatured.php%3fid%3d{$featured[featured].featured_id}&w=300" alt=""></a> 


Go to line 37,
Change this
HTML Code:
<img class="left" src="{$my_pligg_base}/modules/featured/phpthumb/phpThumb.php?src={$my_base_url}{$my_pligg_base}%2fmodules%2ffeatured%2ffeatured.php%3fid%3d{$featured[featured].featured_id}&w=100" alt=""> 
to
HTML Code:
<img class="left" src="{$my_pligg_base}/modules/featured/phpthumb/phpThumb.php?src=http%3a%2f%2fwww.YOR_DOMAIN_NAME.com%2fmodules%2ffeatured%2ffeatured.php%3fid%3d{$featured[featured].featured_id}&w=100" alt=""> 

if you install in sub folder
HTML Code:
<img class="left" src="{$my_pligg_base}/modules/featured/phpthumb/phpThumb.php?src=http%3a%2f%2fwww.YOR_DOMAIN_NAME.com%2fYOUR_FOLDER%2fmodules%2ffeatured%2ffeatured.php%3fid%3d{$featured[featured].featured_id}&w=100" alt=""> 

Save and upload


Ps. Don't for get to change
YOR_DOMAIN_NAME
YOUR_FOLDER

--
Techaker - Your Source for Technolgy News and Networking
Reply With Quote
  #47 (permalink)  
Old 02-09-2010, 08:18 PM
New Pligger
Pligg Version: 1.0.0
 
Join Date: Jul 2009
Posts: 1
I have the same image problem everyone is having. Is there an easy way I can bypass uploading a new image, and just link the image that already exists on the site? I really need this feature, I actually re-did my site just to use this template and feature.

Can anyone help me?
Reply With Quote
  #48 (permalink)  
Old 02-10-2010, 12:35 AM
princevio's Avatar
Casual Pligger
Pligg Version: 1.0.2
Pligg Template: wistie
 
Join Date: Nov 2009
Posts: 77
Any one can development module for home page, i mean the custom home page content placement like upcoming, top, category boxex and other thingns.

Thanks


Last edited by chuckroast; 02-10-2010 at 12:53 AM. Reason: removed link
Reply With Quote
  #49 (permalink)  
Old 02-10-2010, 12:53 AM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Galleria
 
Join Date: Jun 2006
Posts: 3,830
Quote:
Originally Posted by princevio View Post
Any one can development module for home page, i mean the custom home page content placement like upcoming, top, category boxex and other thingns.

Thanks

Please stop adding your link to every post you make. This is against the forum rules.


Get the full Pligg Module Pack today.

Anyone want the domain MyHubb.com ? Bid Now!




Reply With Quote
  #50 (permalink)  
Old 02-19-2010, 12:17 PM
FallenAngel's Avatar
New Pligger
Pligg Version: 1.0.3b
Pligg Template: Arthemia
 
Join Date: Jan 2010
Posts: 28
I think,

Right now only the God user can add featured news, I think this task should be given to the admin users.

The God user who is responsible for overall configuration
The admin users should have the task of manageing the news but no access to the module configurstion.

Question.
I would like to add the management of the featured news in the "Manage" if the featured news is enabled,
and not under the "Module".

We can put it under the module only for enabling and disabling this feature, but the day to day management should be under the "Module" drop down menu (right next to Group Management)

Any idea how to do this?

Thanks
Reply With Quote
  #51 (permalink)  
Old 02-28-2010, 10:51 PM
FallenAngel's Avatar
New Pligger
Pligg Version: 1.0.3b
Pligg Template: Arthemia
 
Join Date: Jan 2010
Posts: 28
I have installed both, looking for a way of puting them together, any idea will be appreciated.

thanks
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