My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
TwitterModule  
Community Server Twitter Extension Module
Phase-Deploy, Phase-Implementation
Updated Apr 21, 2007 by kyle.be...@gmail.com

Introduction

This CS extension adds the ability to send an update to Twitter whenever a new blog is posted. It leverages the dynamic configuration of CS Spam rules to provide a simple User Interface for configuring the module.

In addition, the extention gives three API methods that can be used by other extensions or custom libraries: Tweet Post, Make Tiny URL, and Update Twitter status.

How to install

1) Follow the instuctions to install CS.Extensions.dll on the GetStarted page. (Download the latest version of CS.Extensions.dll and copy to your Community Server's /bin folder)

2) Navigate to Mangage Spam Rules section of the

control panel (~/controlpanel/tools/ManageSpamRules.aspx).

3) Set the Twitter userName and password attributes

to match your Twitter account. You should see a "Spam Rule" named Blog Post Twitter Module. Click the 'Configure' button for that item. Enter your settings.
The settings in the order they appear:

UserName: Your Twitter Username.
Password: Your Twitter password.
Broadcast: If you want to send your tweets to the CSTweetModule
Twitter user (http://twitter.com/CSTweetModule) in
addition to the configured account, then set to 'true'. Otherwise enter 'false'.

TweetMessage: Text which formats the tweet.
Default is "(>- {0}: {1}.. {2}".
{0} is replaced by the post title. {1} is replaced by the post excerpt. {2} is replaced by the post link.

TweetExternal : Set this to "true" if you want external posts to be twittered.
Default is "false"

4) Publish a blog post to see if it works. :)

5) You can enable/disable the module by checking/unchecking the box next to the CS Twitter Module spam rule.

Bonus API

The following functions can be leveraged by referencing the CS.Extensions.dll

  • CS.PostTweeter.Instance.TweetPost(WeblogPost post) : Sends an update to the twitter account configured via the CS Twitter Module Spam rule.
  • CS.PostTweeter.Instance.MakeTiny(string bigUrl) : Converts a big Url into a tiny URL.
  • CS.PostTweeter.Instance.UpdateStatus(string text) : Updates the status of the twitter account configured via the CS Twitter Module Spam rule.
Comment by jeff.bis...@gmail.com, Aug 18, 2007

I have installed this on my CS2007 blog and have configured the options but Twitter isn't picking them up. Do I have to configure something on their side?

Comment by nwatechc...@gmail.com, Dec 12, 2007

Everything works great. I love it!

BUT.... You must click on the spam rule before posting in order to get it to work. In other words, it unloads after a certain amount of time. I'm not sure how to fix it though.

Comment by mike.d...@gmail.com, Jun 19, 2008

all I can say is thank you. mikedopp mikedopp.com

Comment by jmeridth, Nov 11, 2008

Were you able to get this to work in 2008.5. It looks like the code is inheriting from BlogSpamRule?. That changed to ConfigurableContentScorerBase? in 2008.5.

I'm going to try to re-write, and contribute back. Unless you beat me. ;)

Comment by fernande...@gmail.com, Jan 19, 2009

this support 2008.5 SP1? I dont see that into ManageSpamRules? page

Comment by neer.ku...@gmail.com, Jun 11, 2009

anybody got this working with 2008.5?

Comment by j...@the-port.co.uk, Jun 24, 2009

is there a version to allow twitter of forum posts?


Sign in to add a comment
Powered by Google Project Hosting