Build a Personal Social Aggregator with Pubwich
Productivity Sauce
Facebook, Twitter, Delicious, Flickr -- with new social services popping up almost every day, how do you make all your social activities easily accessible to your friends and followers?
Enter Pubwich, a simple PHP script that aggregates data from several popular social services into a single HTML page. To run Publish on your server, you need the Apache server, PHP 5 with the SimpleXML and cURL extensions, and the crontab tool. To install Pubwich, download the latest version of the software, unpack the downloaded archive, and move the resulting folder to the document root of your server. Rename the cfg/config.sample.php file to cfg/config.php and open t for editing. Specify the parameters in the Localization and General site information sections. Next, you have to configure the settings for the services you want to use with Pubwich. To do this, you need to understand the structure of the config.php file. Each supported service is stored as an array containing the required settings. For example the Flickr array is as follows:
array( 'Flickr', 'photos', array( 'key' => 'FLICKR_KEY_HERE', 'userid' => 'FLICKER_USERID_HERE', 'username' => 'FLICKR_USERNAME_HERE', 'total' => 12, 'title' => 'Flickr', 'description' => 'latest photos', 'row' => 4, ) ),
Each service array is rendered as a box on Pubwich's main page. To configure access to Flickr, you replace placeholders with the actual values. If you want to remove a specific service from your Pubwich page, simply delete the appropriate array from the config.php file. All service arrays are grouped in arrays that represent columns on Pubwich's main page. So if you want the Flickr box to appear in a different column, move it from one column array to another.
In addition to the third-party social services, Pubwich can handle RSS feeds, so you can use it to publish feeds from your favorite Web sites. To add an RSS feed to Pubwich, you have to add an array containing the RSS feed's settings. Here is what the array that displays the latest five headlines from the Productivity Sauce RSS feed looks like:
array( 'RSS', 'Productivity Sauce', array( 'url' => 'http://www.linux-magazine.com/rss/feed/productivity_sauce', 'link' => 'http://www.linux-magazine.com/productivitysauce', 'total' => 5, 'title' => 'Productivity', 'description' => 'Dmitri's open source blend of productive computing' ) ),
You can also tweak the default theme, and the supplied README file explains how to do that.
Comments
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.
-
Fedora 41 Released with New Features
If you're a Fedora fan or just looking for a Linux distribution to help you migrate from Windows, Fedora 41 might be just the ticket.
-
AlmaLinux OS Kitten 10 Gives Power Users a Sneak Preview
If you're looking to kick the tires of AlmaLinux's upstream version, the developers have a purrfect solution.
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.
-
System76 Unveils an Ampere-Powered Thelio Desktop
If you're looking for a new desktop system for developing autonomous driving and software-defined vehicle solutions. System76 has you covered.
-
VirtualBox 7.1.4 Includes Initial Support for Linux kernel 6.12
The latest version of VirtualBox has arrived and it not only adds initial support for kernel 6.12 but another feature that will make using the virtual machine tool much easier.
-
New Slimbook EVO with Raw AMD Ryzen Power
If you're looking for serious power in a 14" ultrabook that is powered by Linux, Slimbook has just the thing for you.
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.
Posting to social media
PubwichFork
you may check out PubwichFork, it adds some flavour:
* individual cache invalidation times for each service possible
* intelligent output caching and post-output processings for faster response times
* filtering service data streams before output
* using SimplePie as stable Atom/RSS feed API including basic media feed support
A release candidate for version 2.0 is ready to get tested
http://eye48.com/go/pubwichfork