Twitter Status Updates

From KickApps API Reference

Jump to: navigation, search

What you see above is a KickApps status widget, powered by an RSS feed from Twitter!

What's cool about this is, you can create one for your self, customize the widget and what not, and then embed it on your profile page! Check out the code below for inserting this into your community:

if(Ka.Info.PAGE  === "pages/kickPlaceServerSide.jsp" && Ka.Info.PROFILENAME=='DannyM'){
$j('<div id="ka_widgy"></div>').insertAfter('#ka_profileAbout');<br>
var so = new SWFObject("<a mce_href="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction" href="http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction">http://serve.a-widget.com/kickapps/service/getWidgetSwf.kickAction</a>", "kickWidget_ASID_WIDGET-ID", "WIDTH", "HEIGHT", "9.0.25", "#ffffff");<br>
so.addParam("FlashVars", "affiliateSiteId=ASID&amp;widgetId=WIDGET-ID&amp;width=WIDTHT&amp;height=HEIGHT");
so.addParam("menu", "false");
so.addParam("allowScriptAccess", "always");
so.addParam("allowfullscreen", "true");
so.addParam("wmode", "window");
so.write("ka_widgy");
}

If you try to copy and paste this code, you wont see anything on your community, unless you have the distinct privilege of having me as a member. To get this to work, you'll have to search through code for the following terms and replace them with the appropriate parameters, as shown in the table below:

DannyM ASID WIDGET-ID WIDTH HEIGHT
This is the name of the member, whose profile you want to embed on. The ASID is the affiliate site ID, which can be gotten from your community URL address. The WIDGET-ID is availabe in the widgets embed code. The width of the widget is defined in the Widget Studio when creating the widget. The height of the widget is also defined in the Widget Studio

The code above will either be attached to your pre-existing script files, if you have, or can be placed in the footer of the Global Page Template between <script></script> tags.

Did you enjoy this tutorial? Have questions, comments, or want to submit one of your own? Contact us at support@kickapps.com.