Thank you for purchasing the jQuery Social Stream plugin.
If you have any questions that are beyond the scope of this help file, please feel free to send us an email using the contact form on our codecanyon profile page. We are also available for hire if you require any customisations or assistance with jQuery or Wordpress.
The files that make up the plugin are:
The plugin requires the jQuery javascript library. So first thing is to add the jquery library from your preferred source. There are no specific requirements for this plugin so you are free to use any of the latest versions:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
If you wish to display a social network wall include the following file:
<script type="text/javascript" src="js/jquery.social.stream.wall.1.7.js"></script>
Include the social stream plugin file:
<script type="text/javascript" src="js/jquery.social.stream.1.6.js"></script>
Finally, if you want to use the default styles then either include the dcsns.css file or copy/paste the CSS code to your site's style sheet:
<link rel="stylesheet" type="text/css" href="css/dcsns_dark.css" media="all" />
If you are wanting to include Twitter you will also need to add the twitter.php file to your website - this can be found in the plugin folder. To set up your Twitter API credentials see instructions below.
If you are wanting to include Facebook page feeds you will also need to add the facebook.php file to your website - this can be found in the plugin folder. To set up your Facebook API credentials see instructions below.
If you are wanting to include RSS or Pinterest feeds you will also need to add the rss.php file to your website - this can be found in the plugin folder. You do not need to edit this file, just upload to your server.
The plugin is now ready to use!
The easiest way to get started is to just initialize the plugin with the default settings and your relevant social network IDs.
Twitter - to set up your Twitter API credentials see instructions below.
Facebook - to set up your Facebook API credentials see instructions below.
Instagram - you will need to setup your own clientId and accessToken - see the Creating Your Own Instagram API Client ID & Access Token section for step-by-step instructions on how to do this.
1. Insert the following jQuery into the head of your document (before the closing "head" tag) - dont forget to change the settings for your own social network profiles:
<script type="text/javascript"> $(document).ready(function($){ $('#social-stream').dcSocialStream({ feeds: { twitter: { id: 'designchemical' }, rss: { id: 'http://feeds.feedburner.com/DesignChemical' }, stumbleupon: { id: 'remix4' }, facebook: { id: '157969574262873' }, google: { id: '111470071138275408587' }, delicious: { id: 'designchemical' }, vimeo: { id: 'brad' }, youtube: { id: 'FilmTrailerZone/UUPPPrnT5080hPMxK1N4QSjA' }, pinterest: { id: 'designchemical' }, flickr: { id: '' }, lastfm: { id: 'lastfm' }, dribbble: { id: 'frogandcode' }, deviantart: { id: 'isacg' }, tumblr: { id: 'designchemical' } } }); });</script>
2. Add the following HTML to your page wherever you want the social feed or wall to appear:
<div id="social-stream"></div>
That's all there is to it! The social network stream will automatically be created when the page loads by combining all of the various feeds for the above profiles to create a single feed, displayed in a rotating ticker style list.
The plugin creates a social stream, which is a single stream of items and updates created from all of your individual social network profiles, data feeds and APIs.
The social stream combines each different network and orders them by date, giving you a single, standardised feed showing your social interactions over time. This gives you more opportunities to present all of this information in more useful and interesting ways.
The plugin includes 2 different features for you to display your social stream on your website - a rotating feed list plus the social network wall - more information provided on each feature in the following sections & demo pages.
The plugin includes extensive options, which make the social stream highly customisable. Most of the settings do not need to be changed and the plugin will automatically use the default values where applicable.
The following list details the options available for customizing the plugin and the default values:
Option | Default | Alternatives | Description |
---|---|---|---|
remove: | '', | This option allows you to remove specific posts from the stream. To remove posts enter the URL of the post. To remove multiple posts enter each URL separated by a comma - e.g remove: 'https://twitter.com/designchemical/status/364012915533164544' | |
twitterId: | '', | Enter your twitter username to be used when sharing posts via twitter - this will be added to the tweets as "via @username" | |
days: | 30, | Maximum age of stream items in days' | |
limit: | 50, | Maximum number of results to check/return for each social network' | |
max: | 'days', | days, limit | Set whether to create the feed based on maximum days or number of results per network' |
external: | true, | true, false | Set to true to open all links in new browser window' |
speed: | 600, | Speed (in milliseconds) of animation' | |
height: | 520, | Height in pixels of stream container' | |
wall: | false, | 'true, false | Set to true to output the social stream as an isotope powered social network wall |
center: | false, | 'true, false | Set to true to center the wall feed items in the page |
order: | 'date', | date, random | Set to random to order wall feed items randomly as opposed to by date |
filter: | true, | true, false | Set to true to include a filter navigation allowing the user to filter specific social networks' |
controls: | true, | true, false | Set to true to include links for controlling feed rotator' |
rotate: { | Feed rotator options' | ||
direction: | 'up', | up, down | Direction for content rotation' |
delay: | 8000 | Delay in milliseconds between rotations - if set to 0 the automatic rotation effect is disabled' | |
}, | ' | ||
style: { | Network wall style options | ||
layout: | 'classic', | classic, modern | Wall layout styling |
colour: | 'light' | dark, light | Colour/styling for modern layouts |
}, | ' | ||
dates: | 'min,mins,hr,hrs,day,days,week,weeks,month,months,year,years', | Text used to display dates | |
}, | ' | ||
transition: | '0.8s', | Time in seconds for the isotope animation speed | |
}, | ' | ||
cache: | true, | true, false | Set to true to cache AJAX response, set to false to force response not to be cached by the browser' |
container: | 'dcsns', | CSS class of main element' | |
cstream: | 'stream', | CSS class of stream ul tag' | |
content: | 'dcsns-content', | CSS class of main content wrapper' | |
debug: | false | true, false | Set to true to include returned error messages in feed items' |
The social stream network feed sources can be set using the plugin's "feeds" option followed by the supported network detail options:
Option | Default | Alternatives | Description |
---|---|---|---|
twitter: { | Twitter' | ||
id: | '', | Twitter has 3 different feed options:
| |
retweets | false | true, false | Set to "true" to include retweets |
replies | false | true, false | Set to "true" to include replies |
intro: | 'Tweeted', | Feed item intro text | |
search: | 'Tweeted', | Search item intro text | |
out: | 'intro,date,text,user,share', | intro, title, text, user, share | Stream item output - content blocks & order' |
images: | '', | thumb, small, medium, large | Option to show twitter images. Enter one of the sizes to include the image when available or leave blank to exclude images. Image sizes are:
|
url | twitter.php | The path & file name for the Twitter Authentication file - default file name is "twitter.php" IMPORTANT - this is required for all Twitter feeds | |
icon: | 'twitter.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
facebook: { | Facebook' | ||
id: | '', | Facebook has 2 different ID options:
| |
intro: | 'Posted to wall', | Feed item intro text' | |
out: | 'intro,thumb,title,text,user,share', | intro, thumb, title, text, user, share | Stream item output - content blocks & order' |
comments: | 3 | Enter the maximum number of comments to display for facebook page gallery images - maximum value = 25. | |
image_width: | 6 | 3, 4, 5, 6 | Enter the image size for facebook gallery images:
|
url | facebook.php | The path & file name for the Facebook Authentication file - default file name is "facebook.php" IMPORTANT - this is required for all Facebook page feeds | |
feed | 'feed' | feed,posts | feed = show all posts on the facebook page, including those by other users, posts = show only those posts made by the page admin |
icon: | 'facebook.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
google: { | Google +1' | ||
id: | '', | Google +1 profile IDs' | |
intro: | 'Shared', | Feed item intro text' | |
out: | 'intro,thumb,title,text,share', | intro, thumb, title, text, share | Stream item output - content blocks & order' |
api_key: | '', | Google +1 API Key - REQUIRED | |
image_height: | 90, | Google +1 Thumbnail height | |
image_width: | 90, | Google +1 Thumbnail width | |
shares: | true, | true, false | Include share stats' |
icon: | 'google.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
youtube: { | YouTube' | ||
id: | '', | Youtube has 2 different ID options:
Note: The maximum limit for each youtube feed is 50 - if the limit option is set higher than 50 the plugin will automatically use 50 for youtube feeds. | |
intro: | 'Uploaded', | Feed item intro text' | |
search: | 'Search', | Search item intro text | |
out: | 'intro,thumb,title,text,share', | intro, thumb, title, text, user, share | Stream item output - content blocks & order' |
api_key: | '', | Youtube API Key - REQUIRED. See Social Networks Details -> Creating Your Own Youtube API Key | |
thumb: | 'medium', | default, medium, high, standard | Size of thumbnail image - default 120 x 90, medium 320 x 180, high 480 x 360, standard 640 x 480 |
icon: | 'youtube.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
flickr: { | Flickr' | ||
id: | '', | Flickr has 2 different ID options:
| |
out: | 'intro,thumb,title,text,share', | intro, thumb, title, text, share | Stream item output - content blocks & order' |
lang: | 'en-us', | Language' | |
icon: | 'flickr.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
delicious: { | Delicious' | ||
id: | '', | Delicious usernames' | |
intro: | 'Bookmarked', | Feed item intro text' | |
out: | 'intro,thumb,title,text,user,share', | intro, thumb, title, text, user, share | Stream item output - content blocks & order' |
icon: | 'delicious.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
pinterest: { | Pinterest' | ||
id: | '', | Pinterest has 2 different ID options:
| |
intro: | 'Pinned', | Feed item intro text' | |
out: | 'intro,thumb,title,text,user,share', | intro, thumb, title, text, user, share | Stream item output - content blocks & order' |
url | rss.php | The path & file name for the RSS file - default file name is "rss.php" IMPORTANT - this is required for all Pinterest feeds | |
icon: | 'pinterest.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
rss: { | RSS Feed' | ||
id: | '', | RSS feed URLs' | |
intro: | 'Posted', | Feed item intro text' | |
out: | 'intro,thumb,title,text,share', | intro, thumb, title, text, share | Stream item output - content blocks & order' |
url | rss.php | The path & file name for the RSS file - default file name is "rss.php" IMPORTANT - this is required for all RSS feeds | |
icon: | 'rss.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
lastfm: { | Last.fm' | ||
id: | '', | Last.fm usernames' | |
intro: | 'Listened to,Loved,Replied', | Feed item intro text' | |
out: | 'intro,thumb,title,text,user,share', | intro, thumb, title, text, user, share | Stream item output - content blocks & order' |
feed: | 'recenttracks,lovedtracks,replytracker', | lovedtracks, recenttracks, replytracker | Feed type. Options include lovedtracks: A feed of tracks a user has loved, recenttracks: 10 recently played tracks for this profile, replytracker: A feed of replies to a user's forum posts and journal comments' |
icon: | 'lastfm.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
dribbble: { | Dribbble' | ||
id: | '', | ' | |
intro: | 'Posted shot,Liked', | Feed item intro text' | |
out: | 'intro,thumb,title,text,user,share', | intro, thumb, title, text, user, share | Stream item output - content blocks & order' |
accessToken: | '', | (See Section - Creating Your Own Dribbble Access Token) | |
feed: | 'shots,likes', | shots, likes | Feed type. Options include latest shots or latest likes' |
icon: | 'dribbble.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
vimeo: { | Vimeo' | ||
id: | '', | ' | |
intro: | 'Liked,Video,Appeared In,Video,Album,Channel,Group', | Feed item intro text' | |
out: | 'intro,thumb,title,text,user,share', | intro, thumb, title, text, user, share | Stream item output - content blocks & order' |
feed: | 'likes,videos,appears_in,all_videos,albums,channels,groups', | likes, videos, appears_in, all_videos, albums, channels, groups | likes = Most recent likes, videos = Videos created by user, appears_in = Videos that the user appears in, all_videos = Videos that the user appears in and created, albums = Albums the user has created, channels = Channels the user has created and subscribed to, groups = Groups the user has created and joined' |
thumb: | 'medium', | small, medium, large | Size of thumbnail image - small = 100px wide, medium = 200px, large = 640px' |
stats: | true, | true, false | If set to true the feed will include statistics - e.g. number of likes, views, comments, etc' |
icon: | 'vimeo.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
stumbleupon: { | Stumbleupon' | ||
id: | '', | Stumbleupon usernames' | |
intro: | 'Shared,Reviewed', | Feed item intro text' | |
out: | 'intro,thumb,title,text,user,share', | intro, thumb, title, text, user, share | Stream item output - content blocks & order' |
feed: | 'favorites,reviews', | favorites, reviews | favorites = The sites you thumbed up, reviews = Reviews you have written' |
icon: | 'stumbleupon.png' | Icon file name' | |
}, | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
deviantart: { | Deviantart' | ||
id: | '', | Deviantart usernames' | |
intro: | 'Deviation', | Feed item intro text' | |
out: | 'intro,thumb,title,text,user,share', | intro, thumb, title, text, user, share | Stream item output - content blocks & order' |
icon: | 'deviantart.png' | Icon file name' | |
} | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
tumblr: { | Tumblr' | ||
id: | '', | Tumblr usernames' | |
intro: | 'Posted', | Feed item intro text' | |
out: | 'intro,title,text,user,share', | intro, title, text, user, share | Stream item output - content blocks & order' |
thumb: | '100', | 75, 100, 250, 400, 500, 1280 | Width of thumbnail image |
video: | '250', | 400, 500, 250 | Width of video player for video type posts |
icon: | 'tumblr.png' | Icon file name' | |
} | ' |
Option | Default | Alternatives | Description |
---|---|---|---|
instagram: { | Instagram' | ||
id: | '', |
Insert ! followed by your instagram user ID. To get your user ID use the following link:http://www.otzberg.net/iguserid/ As with all networks multiple feeds can be entered by separating each feed ID with a comma: | |
intro: | 'Posted', | Feed item intro text' | |
search: | 'Search', | Search item intro text | |
out: | 'intro,thumb,text,user,share', | intro, thumb, text, user, share | Stream item output - content blocks & order' |
accessToken: | '', | (See Section - Creating Your Own Instagram API Client ID) Access token created from the authorisation of your OAuth Client | |
redirectUrl: | '', | (See Section - Creating Your Own Instagram API Client ID)The URL entered as the redirect URL when registering your new OAuth Client in the instagram API setup | |
clientId: | '', | (See Section - Creating Your Own Instagram API Client ID)Client ID for API created after registering your new OAuth Client in the instagram API setup | |
thumb: | 'low_resolution', | low_resolution, thumbnail, standard_resolution | Width & Height of image - low_resolution 306, thumbnail 150, standard_resolution 612 |
icon: | 'instagram.png' | Icon file name' | |
} | ' |
Any of the options can be changed by setting the new values when the plugin is initialized. To change an option, include the parameter and it's new value in the initialisation code - e.g.
$(document).ready(function($){ $('#social-stream').dcSocialStream({ feeds: { facebook: { id: '', intro: 'Posted', out: 'intro,thumb,title,text,user,share', comments: 3, image_width: 6, //3 = 600 4 = 480 5 = 320 6 = 180 url: 'facebook.php', thumb:true, icon: 'facebook.png' }, twitter: { id: '', intro: 'Tweeted', search: 'Tweeted', out: 'intro,thumb,text,share', retweets: false, replies: false, images: '', // large w: 786 h: 346, thumb w: 150 h: 150, medium w: 600 h: 264, small w: 340 h 150 url: 'twitter.php', icon: 'twitter.png' }, google: { id: '', intro: 'Shared', out: 'intro,thumb,title,text,share', api_key: '', image_height: 75, image_width: 75, shares: true, icon: 'google.png' }, youtube: { id: '', intro: 'Uploaded', profile: '', search: 'Search', out: 'intro,thumb,title,text,user,share', api_key: 'AIzaSyCFSB5p2xsmTo-dGz5y7gmZonB7M93hvVc', thumb: 'default', icon: 'youtube.png' }, flickr: { id: '', intro: 'Uploaded', out: 'intro,thumb,title,text,share', lang: 'en-us', icon: 'flickr.png' }, delicious: { id: '', intro: 'Bookmarked', out: 'intro,thumb,title,text,user,share', icon: 'delicious.png' }, pinterest: { id: '', intro: 'Pinned', out: 'intro,thumb,text,user,share', url: 'rss.php', icon: 'pinterest.png' }, rss: { id: '', intro: 'Posted', out: 'intro,title,text,share', url: 'rss.php', icon: 'rss.png' }, lastfm: { id: '', intro: 'Listened to,Loved,Replied', out: 'intro,thumb,title,text,user,share', feed: 'recenttracks,lovedtracks,replytracker', icon: 'lastfm.png' }, dribbble: { id: '', intro: 'Posted,Liked', out: 'intro,thumb,title,text,user,share', accessToken: '', feed: 'shots,likes', icon: 'dribbble.png' }, vimeo: { id: '', intro: 'Liked,Video,Appeared In,Video,Album,Channel,Group', out: 'intro,thumb,title,text,user,share', feed: 'likes,videos,appears_in,all_videos,albums,channels,groups', thumb: 'medium', stats: true, icon: 'vimeo.png' }, stumbleupon: { id: '', intro: 'Shared,Reviewed', out: 'intro,thumb,title,text,user,share', feed: 'favorites,reviews', icon: 'stumbleupon.png' }, deviantart: { id: '', intro: 'Deviation', out: 'intro,thumb,title,text,user,share', icon: 'deviantart.png' }, tumblr: { id: '', intro: 'Posted', out: 'intro,title,text,user,share', thumb: 100, video: 250, icon: 'tumblr.png' }, instagram: { id: '', intro: 'Posted', search: 'Search', out: 'intro,thumb,text,user,share', accessToken: '', redirectUrl: '', clientId: '', thumb: 'low_resolution', icon: 'instagram.png' } }, twitterId: '', days: 10, limit: 50, max: 'days', external: true, speed: 600, height: 550, wall: false, order: 'date', filter: true, controls: true, rotate: { direction: 'up', delay: 8000 }, style: { layout: 'classic', colour: 'light' }, dates: 'min,mins,hr,hrs,day,days,week,weeks,month,months,year,years', transition: '0.8s', cache: true, container: 'dcsns', cstream: 'stream', content: 'dcsns-content' }); });
Options that are not included in the initialisation code will automatically use the default values.
NOTE: Social network ID's do not have default values. Valid profile IDs must be specified when the plugin is initialised.
Each feed item includes share links for facebook, twitter, google + and linkedin - this allows your visitors to quickly and easily share your wall content via both social networks.
For twitter posts the facebook and twitter share links are replaced by the standard twitter reply, retweet and favourite links.
To remove share options from specific social networks remove "share" from the "out" option for the relevant feed - e.g. to remove from pinterest use:
Default Option Setting
pinterest: {
id: 'username',
out: 'intro,thumb,title,text,user,share',
}
Change To
pinterest: {
id: 'username',
out: 'intro,thumb,title,text,user',
}
The plugin includes 2 features for displaying your social network stream. Both features use the same options and set up for generating the social stream items, only the method of displaying the output is different.
The rotating feed feature generates a standard list of your social stream items, which can be set to display as a rotating/looping feed or as a standard, static list. The list includes a filter feature for enabling/disabling individual network items.
The plugin files also include 2 style options for the feed - light & dark:
For details and code samples on how to create the rotating feed see demos below.
The social network wall feature creates a full width display of feed items, ordered by date and laid out using the jQuery isotope plugin. The wall also includes an animated filter system, which allows the user to select any of the available social networks. The social network wall shows all items at the same time and offers an interesting way for your users to view your network interaction over time.
There are 3 built in layout styles for the network wall:
This is the default style
A more clean & modern look
A more clean & modern look
For details and code samples on how to create the social network wall see demos below.
There are no limits on the number of feeds that can be added to the social stream for each social network. To add multiple feeds include the relevant social network IDs as a comma-separated list.
Example - Create a social stream, which combines 3 twitter users, a twitter list and a search for "designchemical" into one single feed:
$('#social-stream').dcSocialStream({ feeds: { twitter: { id: 'designchemical,wordpress,jquery,/9927875,#designchemical' } } });
The plugin uses a basic template system, which offers some options to add/remove content from the stream items as well as change the order in which these content blocks appear. This can be modified using the "out" option.
Each feed (with a couple of exceptions) has the following content blocks:
intro:
Brief text with the age of the feed item created using the "intro" option for the network + the age of the item based on the published date from the social network.
thumb:
Any thumbnail image available in the feed
title:
The feed item title (including link to original article)
text:
Any additional content text/summary - availability of useful additional text varies between social networks
user:
User name of the feed profile, including link to user profile page
The plugin will add content based on the blocks listed in the "out" option and in the order in which they are written. E.g. to output latest facebook wall posts showing only the intro and title use:
$('#social-stream').dcSocialStream({ feeds: { facebook: { id: '157969574262873', intro: 'Posted to wall', out: 'intro,title' } } });
Using a combination of the "out" option plus customising the CSS for each feed the layout for each social network is extremely flexible - sample of customised feed can be found with pinterest where the CSS and layout mimics the pinterest.com site:
The social stream includes 2 features, which can be enabled to give the user more control over the stream contents:
If the "filter" option is set to true the plugin will automatically create a list of social network icons for those networks contained in the stream. Clicking on these icons will show/hide the feed items from that network.
The plugin includes a feed rotator, which will loop the feed items based on the "delay" settings in the plugin options.
If "control" is set to "true" a set of icons will be inserted, which allow the user to stop/start the feed rotator as well as manually cycle through the feed items using the "next" and "previous" links.
The direction of the rotator can also be set - see Plugin Options
Set the "delay" value to zero to disable the auto-rotation.
Starting with version 1.7 of the plugin the Twitter API now requires authentication.
To create your own Twitter API credentials
Example
// SET YOUR TWITTER API DETAILS HERE $consumer_key = "cUfx93n2NBU3J8VCZ1pQ"; $consumer_secret = "FvKP8uzrVhGAJ2ncuofsSTUsLV50H2KdW9CkNrhAENo"; $oauth_access_token = "261263099-mF9o2SrPe5vno5IcwzGE36a0L4MiGf86Ou6a0CJy"; $oauth_access_token_secret = "eqgxmDB7hsBoph18758dRmkzzb0E8emyZfIm8bD9pWg";
The plugin should now be able to access your Twitter feed.
Note that the above values are for demonstration only and will NOT work with your plugin.
Starting with version 1.5.8 of the plugin facebook feeds now require authentication.
To create your own Facebook App
// SET YOUR FACEBOOK API DETAILS HERE $app_id = 'INSERT APP ID HERE'; $app_secret = 'INSERT APP SECRET HERE';
// SET YOUR FACEBOOK API DETAILS HERE $app_id = '876112410078524'; $app_secret = 'd26b9883d63c8aeb753063aad93ce61d';
The plugin should now be able to access your Facebook feed.
Note that the above values are for demonstration only and will NOT work with your plugin.
Make sure that you have set the facebook "url" option to point to the actual location of your facebook.php file. The default setting is:
url: 'facebook.php'
The google +1 feed requires an API key. Fortunately creating your own google API key is fairly quick and easy:
Youtube feeds now require a google API key:
In order to use the Instagram feed you must first create your own "Client ID"
instagram: { accessToken: 'YOUR ACCESS TOKEN', clientId: 'YOUR CLIENT ID' }
In order to use the Dribbble feed you must first create your own "Access Token"
dribbble: { id: 'frogandcode', accessToken: 'YOUR ACCESS TOKEN' }
The google +1 feed requires an API key in order to work. The API key provided in the plugin examples is for test purposes only.
Make sure you change the API key for your own - google limit the number of API calls per day for each API key. If you use the test value this may result in your google +1 feed not working correctly.
For information on how to create your own API key see the instructions.
The user feed will show the latest posts from a specific user ID. To create a user feed use "!" followed by the user ID - e.g.
id: '!123456'
The plugin includes 3 different style sheets, which can be used based on whether you are using the rotating feed or the dark/light skin.
To use the dark skin include the dcsns_dark.css file in the head of your page:
<link rel="stylesheet" type="text/css" href="css/dcsns_dark.css" media="all" />
To use the light skin include the dcsns_light.css file in the head of your page:
<link rel="stylesheet" type="text/css" href="css/dcsns_light.css" media="all" />
For the social network wall include the dcsns_wall.css file in the head of your page:
<link rel="stylesheet" type="text/css" href="css/dcsns_wall.css" media="all" />
The plugin contains 2 styles of layout for the network wall - classic & modern. The modern layout also comes in 2 colours - light & dark
The "classic" layout is the default option for the wall.
See demo - Example 6
To set the modern light layout change the plugin's style options to the following:
style: { layout: 'modern', colour: 'light' }
See demo - Example 7
To set the modern dark layout change the plugin's style options to the following:
style: { layout: 'modern', colour: 'dark' }
See demo - Example 8
Quick start - no customized options! Only minimum settings for the social network user ID's are required - View Example 1
$(document).ready(function($){ $('#social-stream').dcSocialStream({ feeds: { twitter: { id: 'designchemical' }, rss: { id: 'http://feeds.feedburner.com/DesignChemical' }, stumbleupon: { id: 'remix4' }, facebook: { id: '157969574262873,Facebook Timeline/376995711728' }, google: { id: '111470071138275408587', api_key: 'AIzaSyB1UZNnscjMDjjH-pi_XbnLRld2wAqi3Ek' }, delicious: { id: 'designchemical' }, vimeo: { id: 'brad' }, youtube: { id: 'FilmTrailerZone/UUPPPrnT5080hPMxK1N4QSjA', thumb: '0' }, pinterest: { id: 'jaffrey,designchemical/design-ideas' }, flickr: { id: '' }, lastfm: { id: 'lastfm' }, dribbble: { id: 'frogandcode' }, deviantart: { id: 'isacg' }, tumblr: { id: 'richters', thumb: 250 } }, twitterId: 'designchemical', iconPath: 'images/dcsns-dark/', imagePath: 'images/dcsns-dark/' }); });
There are no limits on the number of feeds that can be added to the social stream for each social network. To add multiple profiles include the relevant social network IDs as a comma-separated list.
$(document).ready(function($){ $('#social-stream').dcSocialStream({ feeds: { twitter: { id: 'designchemical,wordpress,jquery,/9927875,#designchemical' } } twitterId: 'designchemical' }); });
The plugin uses a basic template system, which offers some options to add/remove content from the stream items as well as change the order in which these content blocks appear. This can be modified using the "out" option.
$(document).ready(function($){ $('#social-stream').dcSocialStream({ feeds: { twitter: { id: 'designchemical', out: 'intro,text,user,share' }, rss: { id: 'http://feeds.feedburner.com/DesignChemical', out: 'intro,title,user,share' }, stumbleupon: { id: 'remix4', out: 'intro,title,user,share' }, facebook: { id: '157969574262873', out: 'intro,title,user,share' }, google: { id: '111470071138275408587', out: 'intro,title,user,share' }, delicious: { id: 'designchemical', out: 'intro,title,user,share' }, vimeo: { id: 'brad', out: 'intro,title,user,share' }, youtube: { id: 'FilmTrailerZone/UUPPPrnT5080hPMxK1N4QSjA', out: 'intro,title,user,share' }, pinterest: { id: 'jaffrey,designchemical/design-ideas', out: 'intro,title,user,share' }, flickr: { id: '', out: 'intro,title,user,share' }, lastfm: { id: 'lastfm', out: 'intro,title,user,share' }, dribbble: { id: 'frogandcode', out: 'intro,title,user,share' }, deviantart: { id: 'isacg', out: 'intro,title,user,share' } }, twitterId: 'designchemical' }); });
The plugin's "wall" display feature uses jQuery isotope to create a filterable layout of all your stream items - View Example 4
$(document).ready(function($){ $('#social-stream').dcSocialStream({ feeds: { twitter: { id: '/9927875,#designchemical,designchemical', thumb: true }, rss: { id: 'http://feeds.feedburner.com/DesignChemical,http://feeds.feedburner.com/codecondo' }, stumbleupon: { id: 'remix4' }, facebook: { id: '157969574262873,Facebook Timeline/376995711728' }, google: { id: '111470071138275408587' }, delicious: { id: 'designchemical' }, vimeo: { id: 'brad' }, youtube: { id: 'FilmTrailerZone/UUPPPrnT5080hPMxK1N4QSjA' }, pinterest: { id: 'jaffrey,designchemical/design-ideas' }, flickr: { id: '' }, lastfm: { id: 'lastfm' }, dribbble: { id: 'frogandcode' }, deviantart: { id: 'isacg' }, tumblr: { id: 'richters', thumb: 250 } }, rotate: { delay: 0 }, twitterId: 'designchemical', control: false, filter: true, wall: true, cache: false, max: 'limit', limit: 10, iconPath: 'images/dcsns-dark/', imagePath: 'images/dcsns-dark/' }); });
If you wish to display the wall feed randomly as opposed to date order just set the "order" option to "random" - View Example 5
$(document).ready(function($){ $('#social-stream').dcSocialStream({ feeds: { twitter: { id: '/9927875,#designchemical', thumb: true }, rss: { id: 'http://feeds.feedburner.com/DesignChemical' }, stumbleupon: { id: 'remix4' }, facebook: { id: '157969574262873,Facebook Timeline/376995711728' }, delicious: { id: 'designchemical' }, vimeo: { id: 'brad' }, youtube: { id: 'FilmTrailerZone/UUPPPrnT5080hPMxK1N4QSjA' }, pinterest: { id: 'jaffrey,designchemical/design-ideas', }, flickr: { id: '' }, lastfm: { id: 'lastfm' }, dribbble: { id: 'frogandcode' }, deviantart: { id: 'isacg' }, tumblr: { id: 'richters', thumb: 250 } }, rotate: { delay: 0 }, twitterId: 'designchemical', control: false, filter: true, wall: true, order: 'random', max: 'limit', iconPath: 'images/dcsns-dark/', imagePath: 'images/dcsns-dark/' }); });
The social network wall is automatically responsive and will adjust the number of columns based on your page width. Just insert the wall into a responsive page - View Example 6
To create a wall using show modern dark layout set the "style" options View Example 7
$(document).ready(function($){ $('#social-stream').dcSocialStream({ feeds: { twitter: { id: '/9927875,#designchemical,designchemical', thumb: true }, rss: { id: 'http://feeds.feedburner.com/DesignChemical,http://feeds.feedburner.com/codecondo' }, stumbleupon: { id: 'remix4' }, facebook: { id: '157969574262873,Facebook Timeline/376995711728' }, google: { id: '111470071138275408587' }, delicious: { id: 'designchemical' }, vimeo: { id: 'brad' }, youtube: { id: 'FilmTrailerZone/UUPPPrnT5080hPMxK1N4QSjA' }, pinterest: { id: 'jaffrey,designchemical/design-ideas' }, flickr: { id: '' }, lastfm: { id: 'lastfm' }, dribbble: { id: 'frogandcode' }, deviantart: { id: 'isacg' }, tumblr: { id: 'richters', thumb: 250 } }, rotate: { delay: 0 }, style: { layout: 'modern', colour: 'dark' } twitterId: 'designchemical', control: false, filter: true, wall: true, cache: false, max: 'limit', limit: 10, iconPath: 'images/dcsns-dark/', imagePath: 'images/dcsns-dark/' }); });
To create a wall using show modern light layout set the "style" options View Example 8
$(document).ready(function($){ $('#social-stream').dcSocialStream({ feeds: { twitter: { id: '/9927875,#designchemical,designchemical', thumb: true }, rss: { id: 'http://feeds.feedburner.com/DesignChemical,http://feeds.feedburner.com/codecondo' }, stumbleupon: { id: 'remix4' }, facebook: { id: '157969574262873,Facebook Timeline/376995711728' }, google: { id: '111470071138275408587' }, delicious: { id: 'designchemical' }, vimeo: { id: 'brad' }, youtube: { id: 'FilmTrailerZone/UUPPPrnT5080hPMxK1N4QSjA' }, pinterest: { id: 'jaffrey,designchemical/design-ideas' }, flickr: { id: '' }, lastfm: { id: 'lastfm' }, dribbble: { id: 'frogandcode' }, deviantart: { id: 'isacg' }, tumblr: { id: 'richters', thumb: 250 } }, rotate: { delay: 0 }, style: { layout: 'modern', colour: 'light' } twitterId: 'designchemical', control: false, filter: true, wall: true, cache: false, max: 'limit', limit: 10, iconPath: 'images/dcsns-dark/', imagePath: 'images/dcsns-dark/' }); });
If nothing is appearing on the screen check the following:
If the feed returns an error the plugin will insert the error text into the tab. If the feed cannot be found first check your user ID/username to make sure that this matches your profile.
If your twitter feed is not displaying make sure that you have set up your Twitter API Credentials. If these have been set up correctly then check that the correct path and filename are inserted into the twitter: url option. The default value is "twitter.php", which will be valid if the location of the twitter.php file is in the same directory as the page containing the tabs. If you are unsure then enter the absolute path & filename for this file - e.g
twitter: { url: 'http://www.yourdomain.com/social-stream-folder-name/twitter.php' }
If the twitter feeds are not showing and there are no errors this may be due to the limits imposed by Twitter on their API:
Searches - 180 calls per 15 mins.
Lists - 180 calls per 15 mins.
Users - 180 calls per 15 mins.
During this time other users will still be able to view your twitter feeds as limits are on a per user and per application basis.
There are 2 main reasons your facebook feed may not work:
1. You are trying to use a facebook profile instead of a page.
For more information on how to create a facebook page see - http://blog.hubspot.com/blog/tabid/6307/bid/5492/How-to-Create-a-Facebook-Business-Page-in-5-Simple-Steps-With-Video.aspx
2. Your facebook settings restrict the age of the user that may view your page - in order for the facebook feed to work you must remove any age restriction from your fan page.
To get your facebook gallery ID browse to your facebook gallery page - e.g:
https://www.facebook.com/195819930466243/photos/?tab=album&album_id=195824323799137
The ID for the gallery is shown at the end of the URL as the "album_id" parameter - in the example above this would be - 195824323799137
To get your google profile ID for the google +1 tab go to your google accounts page and click on the “edit profile” link.
Check the URL in the browser address bar – your profile ID is the number in the middle of the URL:
https://profiles.google.com/100058553707375301897/about/
The latest version of the Youtube API no longer recognises youtube usernames. We have created a quick online tool, which will allow you to get your list ID for your username
Browse to the following link - How to get your youtube ID
In the form with the heading "Input your Youtube Profile Name" enter your profile name into the "username" field and click "submit".
Your list ID will appear in the "List ID" field
Browse to the following URL - changing YOUR USER NAME & YOUR ACCESS TOKEN for your values:
https://api.instagram.com/v1/users/search?q=YOUR USER NAME&access_token=186786085.3a81a9f.a0716c493a5042fb8122151735e898e4
The Instagram API should then load a page containing text with your profile details similar to the format shown below:
{"meta":{"code":200},"data":[{"username":"YOUR USER NAME","bio":"","website":"","profile_picture":"","full_name":"","id":"YOUR USER ID"}]}
Search for the "id" parameter for your username.
You can use the twitter search function to show searches from specific usernames using the following format -
e.g. to search tweets containing "jquery" from user "designchemical"
#jquery+from:designchemical
To disable specific share links from the feeds add the following css:
Facebook:
.share-facebook {display: none;}
Twitter:
.share-twitter {display: none;}
Google +:
.share-google {display: none;}
LinkedIn:
.share-linkedin {display: none;}
To disable all share links from the feeds add the following css:
.section-share {display: none;}
If you wish to remove specific posts from a stream you can use the "remove" option
Enter the URL's of the posts you wish to remove separated by a comma
Example - to remove the following 2 posts:
https://twitter.com/designchemical/status/364012915533164544
http://www.facebook.com/DesignChemical/posts/575999262459900
Add the following option to your initialisation code:
remove: 'https://twitter.com/designchemical/status/364012915533164544,http://www.facebook.com/DesignChemical/posts/575999262459900'
Although the plugin does not include a lightbox, these can be included separately as a plugin to enhance the social stream. An example of using a lightbox with the stream to show inline youtube and vimeo videos can be found on our demo website - Adding a jQuery Lightbox.
In the demo example we have used the jQuery prettyPhoto lightbox. Below is an example of the additional code added to open the videos in the ligthbox popup:
jQuery(window).load(function(){ jQuery(".dcsns-youtube .section-thumb a, .dcsns-vimeo .section-thumb a").prettyPhoto({ autoplay_slideshow: false, overlay_gallery: false, social_tools:false, deeplinking: false, theme:'pp_default', show_title: false}); });
The actual code required would depend on which lightbox you wish to use and usually can be found in the lightbox documentation.
The only key requirement is that the jQuery code is initialised using the jQuery(window).load(function() as the feed must be fully loaded before the lightbox is added.
Each social network feed item has its own css class, which allows you to target specific feed - e.g. dcsns-youtube for youtube feeds, dcsns-vimeo for vimeo feeds, etc.
If you are using the jQuery Fancybox lightbox plugin you can use the following code for youtube videos:
jQuery(window).load(function(){ jQuery(".dcsns-youtube .section-thumb a").click(function() { jQuery.fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'title' : this.title, 'width' : 680, 'height' : 495, 'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'), 'type' : 'swf', 'swf' : { 'wmode' : 'transparent', 'allowfullscreen' : 'true' } }); return false; }); });
v1.6 26th August 2016 (Current Version)
v1.5.18 22nd June 2016
v1.5.17 27th May 2016
v1.5.16 18th May 2016
v1.5.15 2nd Dec 2015
v1.5.14 22nd July 2015
v1.5.13 22nd June 2015
v1.5.12 28th May 2015
v1.5.11.1 8th May 2015
v1.5.11 5th May 2015
v1.5.10.1 1st May 2015
v1.5.10 23rd April 2015
v1.5.9.1 11th February 2015
v1.5.9 3rd February 2015
v1.5.8 1st February 2015
v1.5.7 24th November 2014
v1.5.6 10th November 2014
v1.5.5 7th November 2014
v1.5.4 9th August 2013
v1.5.3 3rd August 2013
v1.5.2 7th May 2013
v1.5.1 12th March 2013
v1.5 24th February 2013
v1.4.3 18th November 2012
v1.4.2 12th November 2012
v1.4.1 - 31st August 2012
v1.4 - 23rd August 2012
v1.3.1 - 16th August 2012
v1.3 - 4th June 2012
v1.2 - 24th April 2012
v1.1 - 18th April 2012
v1.0 - 11th April 2012
Once again, thank you for purchasing the jQuery Social Stream plugin!
If you have any questions relating to this plugin or suggestions for future improvements please contact us via our Code Canyon profile or via our website - http://www.designchemical.com/blog/
jQuery Social Stream Plugin was created by Design Chemical.