KU Connect widget
The KU Connect widget makes it easy for web developers to add visually attractive links to KU-related social media to their sites, along with tools that allow visitors to share a KU web page through their own social networking accounts.
By default, each icon in the widget is a direct link to the corresponding main KU social media account, including Facebook, Twitter, the KU iPhone app, the KU News RSS Feed, YouTube, Flickr, Foursquare and LinkedIn. This can be overridden so that each icon links to a custom URL (with optional custom text), displays a drop-down menu of up to five custom URLS, hides the main KU links, or hides the icon altogether. All elements have CSS classes and can be restyled.
A basic example of the widget in action, with no additional settings, can be seen to the right. To include the widget on your site, you will need to use SSI, have KU's "contained" version of JQuery turned on (it's on by default), and be on a central KU webserver such as www2.ku.edu. The basic code, without any additional settings, should look like this:
<!--#include virtual="/~http/ssi/2009/widgets/connect_include.shtml" -->
The widget itself does not contain the "Connect" heading above it, but you can add it to your page using the following HTML before the SSI include:
<div class="rightnavheader">
<h2>Connect</h2>
</div>
Connect
Settings
These settings must be placed on your page above the include statement. You will likely want to define all these in your header file.
connect_myserviceXX_link (5 for each service)
This parameter must contain the word "my" followed immediately by the name of the service and a number from 01 to 05.
Possible service names: myfacebook, mytwitter, myiphone, myrss, myyoutube, myflickr, myfoursquare, mylinkedin
connect_myserviceXX_linktext (5 for each service)
This parameter must contain the word "my" followed immediately by the name of the service and a number from 01 to 05.
Possible service names: myfacebook, mytwitter, myiphone, myrss, myyoutube, myflickr, myfoursquare, mylinkedin
connect_myservice_show (1 for each service)
This parameter must contain the word "my" followed immediately by the name of the service.
Possible service names: myfacebook, mytwitter, myiphone, myrss, myyoutube, myflickr, myfoursquare, mylinkedin
connect_myservice_showku (1 for each service)
This parameter must contain the word "my" followed immediately by the name of the service.
Possible service names: myfacebook, mytwitter, myiphone, myrss, myyoutube, myflickr, myfoursquare, mylinkedin
connect_showlikebutton
connect_showtweetbutton
connect_showsharebutton
If you have any questions about this process, please feel free to contact webcomms@ku.edu.




top