Twitter is a popular microblogging service. This plugin provides integration between Nucleus and Twitter. It can be used as a simple (but not full feature) twitter client.
Feature included:
| General Plugin info | |
|---|---|
| Author: | Edmond Hui |
| Current Version: | v0.8 |
| Download: | here |
| Code: | n/a |
| Demo: | here |
| Forum Thread: | here |
i.e. 4,7,14,21,28,35,42,49,56 * * * * root /usr/bin/GET "http://localhost/blog/action.php?action=plugin&name=Twitter&op=refresh" &> /dev/null
To setup a twitter badge, simple put <%Twitter(tweets,member,num%> in the sidebar of a skin.
Also, advanced user can create a custom page to put up a twitter user interface on Nucleus similar to twitter’s own web interface. This provide a way user to archive his/her tweets locally and use Nucleus as a alternate twitter client.
The setup steps:
see example
If a Tweetlet function is desired, user can add this to bookmark:
javascript:location.href='http://yourblog.com/blog/action.php?action=plugin&name=Twitter&op=tweetlet&url='+encodeURIComponent(location.href)+'&text='+encodeURIComponent(document.title)
User can use the update box from to send a update.
[reply] button is at the end of a tweet to allow user to reply to another twitter via @someone.
[directmail] button is at the end of a tweet to allow user to replay to another twitter via direct mail
[delete] button is also visible for a login user to delete his/her update.
[favorite] button allow user to make a tweet as favorite
If direct message and favorite are setup, a link is provide to access these tweets
SkinVars:
<%Twitter(updatebox)%> - show the twitter update box for the current login user, it should be wrapped with <%if(loggedin)%> and <%endif%> so only display when login.
<%Twitter(tweets,member,num,[text|icon])%> - show a twitter badge of x most recent tweets by a particular member and those he/she followed, the twitter name formating can be overrided by putting optional parameter text/icon at the end
<%Twitter(link,member,link label) - show a link to a member's twitter page
<%Twitter(stats,member)%> - show #friends/follower for a member
<%Twitter(mytweets,member,num,[text|icon])%> - show a twitter badge of x most recent tweets by a particular member only, the twitter name formating can be overrided by putting optional parameter text/icon at the end
<%Twitter(linktodm)%> - add a link to show direct message (for login user only)
<%Twitter(linktofav)%> - add a link to show favorite tweets (for login user only)
<%Twitter(linktoatweet)%> - add a link to show also friends' tweets of a user
TemplateVars:
<%Twitter(twitthis)%> - add a button to allow visitor to tweet about a post using [[http://twitthis.com/|Twitthis]]
Tweets header formating - header for the twitter badge
Tweets formating - formating of each update. Available formating tag: %%TWITTERT%% for twitter name in text, %%TWITTERI%% for twitter name with image, %%TWEET%% for update text, %%TDATE%% - date
Tweets footer formating - footer for the twitter badge
Text to tweet on new post - formatting to use when sending update for a new post . One format per line, will be randomly pick so multiple format is possible. Available formating tag: %l == item url, %t == title, %e == excerpt
Delete tweets cache on uninstall - whether to delete update archive when uninstall
Show Date in Archive - whether to show date to separate tweets in badge
The tweetlet will not work if there are ' somewhere in URL.... it’s a firefox/javascript not sure how to fix it...
NP_Twitter version 0.6 works with Nucleus CMS 3.31 - 2007-10-29 admun