定制 nemein/com-meego-planet 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nemein/com-meego-planet

Composer 安装命令:

composer require nemein/com-meego-planet

包简介

Blog aggregator component for Midgard MVC

README 文档

README

com_meego_planet is a social news aggregation component for Midgard MVC. It operates a bit like Planet by allowing multiple RSS feeds to be aggregated together into one consistent list.

What is a major difference between our social aggregator and Planet is that we have two views - the traditional Planet-like list of new items, and a list of most popular items. This allows busy users to easily see by glance the most important blog posts in the community.

The importance of posts is determined by various relevancy calculations, taking into account factors like:

  • How many Tweets mention the item
  • How many users have Liked or Shared the item on Facebook
  • How many upvotes and comments the item has received on Hacker News
  • How many times the item was bookmarked on Delicious
  • The age of the post

Setup

You need a working Midgard2 + Midgard MVC installation. On top of this, enable this component in your application manifest components section:

com_meego_planet:
    - {type: github, user: nemein, repository: com_meego_planet, branch: master}

You also need a node on your site handled by com_meego_planet. Add this to the nodes section of your application manifest:

title: My Planet
content: <p>Welcome to my Planet</p>
component: com_meego_planet

Then just midgardmvc update and log into your site to add some feeds you want to aggregate.

Cron jobs

The Social News system comes with three cronjobs that you need to add to your cron configuration.

php -c php.ini com_meego_planet/bin/update_feeds.php

This command fetches all configured feeds, and imports items from them into the content repository. A good schedule for running this might be every hour.

php -c php.ini com_meego_planet/bin/update_scores.php

This command updates the Social Web scores of items. Run it couple of times per day.

php -c php.ini com_meego_planet/bin/update_age.php

This command updates age calculations for all posts. Run it as often as is fit for your environment. For example every half hour.

Background

This is a Midgard MVC port of org.maemo.socialnews, the Social News aggregator developed for Maemo News. This new version has been developed initially for Planet MeeGo.

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL
  • 更新时间: 2012-12-10