A Few Customizing Tips for K2

The semester is coming, so here’s a little something to keep you going…

Including a Custom Header Image in K2:

To include a custom header in K2 you have two options. You can use the custom header tool in the tabs Presentation –> Custom Header or you can modify the Cascading Style Sheets (CSS). Modifying the custom header via the Presentation tab is relatively self explanatory, but it does not give you as many options for presenting your header. In particular, it is difficult to move the text in the header up or down to complement the header image. For this reason we will look at adding an image in the header using the CSS. First things first, select an image for your header that is 780px wide by 200px high. Make sure this image is optimized for the web and is no bigger than 25k. Upload this file to the wp-content/uploads folder (or some other folder designated for uploads). After this, go into the Presentation –> Theme Editor tab and make sure you are editing the “style.css” file. The following code should be replace the current styles for the header. Keep in mind two things: 1) I extended the height of the header to 225px so that the page tabs would not overlap the image -there will be a 25px space for the page tabs (in this case black because that is the color I set for the header background); 2) the URL is specific to one particular site -if you want to use the code on another site you are going to have update the address accordingly.

#header {
padding: 0;
margin: 0;
position: relative;
height: 225px;
background: black url(../wp-content/uploads/fairbanks.jpg) top center no-repeat;
}

Moving the Text in the Header:
Depending on the image in your header you may want the freedom to move your header text around. This is easily accomplished by modifying the CSS code for K2. For this code I added a text-align: right; and changed the padding to 50px (from the top) and 20px (from the right). The padding code works as follows: padding: top right bottom left; (substituting a pixel value for the appropriate positions as you see in the code below). If the font is too big you can change the size using the font size value, etc.

h1 { /* H1 is the title in the header */
font-size: 3em;
font-weight: bold;
letter-spacing: -1px;
padding: 50px 20px 0px 0px;
text-align: right;
}

After you changed and updated both these areas of the CSS file you should get something like the image below.

Header Banjo

Changing the Size of the Content Area:
Finally, if you want to remove the sidebar and have a larger content area there are two steps:

  • Go into Presentation –> theme editor and edit the “Page Template” file. Remove the get sidebar call that looks like this .
  • Next, edit the primary class of the CSS and change the width value from 500px to 780px as illustrated below. Additionally, you may want to edit the right and left margins to center your work a bit more. I changed the right and left margins below from 10px and 30px –> 50px and 30px in order to center the body of the text a bit more.

#primary {
width: 780px;
float: left;
padding: 20px 0 20px;
margin: 0 50px 0 30px;
display: inline;
}

That’s it, hope this helps.

For a far more thorough and thoughtful tutorial on doing things with the K2 theme for WordPress, check out Paul Stamatiou’s tutorial here. His instructions for placing a rotating images in your K2 header are quite good, and it proves to be a very easy hack!

Posted in WordPress | Tagged , , , , | 10 Comments

The WordPress Plugins in My Life

Seems like the Cog Dog and teachinghacks.com having been doing a little sharing about their WordPress plugins, which I find extremely useful -so thanks. I have been talking a bit lately about some of the plugins I have recently discovered here, here, and here -but the following list is a quick and dirty look at what’s beneath the hood of bavatuesdays:

      404 Notifier 1.0: This plugin will log 404 hits on your site and can notify you via e-mail or you can subscribe to the generated RSS feed of 404 events. Adjust your settings here. By Alex King.
      Aggregate 1.0: Allows you to place the contents of an RSS feed into your posts. By Rob Miller.
      Articles 1.1: Display posts in an ‘Articles’ list. To include a post in the list, add a custom field to the post: ‘article’ = ‘1′. By Alex King.
      BDP RSS Aggregator 0.4.10 (test): RSS Aggregator – collate RSS feeds and summarise to a page – updates regularly without the need for cron. By Bryan Palmer.
      Code Markup 1.1.1:: A filter that displays code blocks nicely while still allowing formatting. By Bennett McElwee.
      Exec-PHP 3.0:: Allows php code tags inside the content or excerpt of your posts and pages to be executed just as in usual PHP files. By Sören Weber.
      Kimili Flash Embed 1.1: Provides a wordpress interface for Geoff Stearns’ excellent standards compliant Flash detection and embedding JavaScript. By Michael Bester.
      Netflix 2.1 :Displays info from your Netflix account. This includes text and images via RSS feed. By Albert Banks.
      Optimal Plugin (formerly, OPML Renderer) : Renders valid OPML from any source as an expandable/collapsible list. By Dan MacTough.
      podPress: The podPress plugin gives you everything you need in one easy plugin to use WordPress for Podcasting. Set it up in ‘podPress’->Feed/iTunes Settings. By Dan Kuykendall (Seek3r).
      Share This: Let your visitors share a post/page with others. Supports e-mail and posting to social bookmarking sites. Thanks to Thomas McMahon for footwork on the URLs. By Alex King.
      Spam Karma 2: Reloaded: The only spam filter for WordPress. Period.
      Viper’s Video Quicktags:: Creates quicktags for embedding various video types, including those hosted at YouTube and Google Video, into WordPress. Uses the ButtonSnap class by Owen Winkler. By Viper007Bond.
      Wikipedia Link 0.1: With this plugin, you can link to Wikipedia entries just like within Wikipedia by simply enclosing the word you want to link with in double brackets. By Andreas Krennmair.
      WordPress Database Backup:: On-demand backup of your WordPress database. By Scott Merrill.
      WordPress Mobile Edition 2.0: Show a mobile view of the post/page if the visitor is on a known mobile device. By Alex King.
      WP-FLV 0.2: This plugin eases insertion of Jeroen Wijerings FLV Video Player By Roel Meurders. (PodPress does play FLVs, but this is still the slickest and most solid FLV player for WordPress)
      Brian’s Latest Comments 1.5.10: This shows an overview of the recently active articles and the last people to comment on them. By Brian Meidell.

How about you? -what plugins do you keep in your backend?

Posted in plugins, WordPress | Tagged , | 4 Comments

Alex King’s Articles Plugin for WordPress

If you haven’t already, go check out Alex King’s post about the plugins he is employing for the redevelopment of his WordPress site. He has produced some unbelievably cool functionality for WordPress, and the community owes him much.

I took four plugins from the post referenced above:

  • the 404 Notifier (a feed for page errors on your blog)
  • the WordPress Mobile Edition (a theme for PDAs)
  • Share This (an ajax enabled link for sharing posts through web 2.0 services or e-mail)
  • The Articles plugin allows you to define certain blog posts that you want to re-index on a static page.

You can download any of these plugins and more here. All of the plugins are worth exploring, but I was particuarly struck by the last one I mentioned. The Articles plugin allows you to define certain blog posts that you want to re-index on a static page that cross-references these posts using the category tags you assign to each. I tried a little experiment by selecting four posts I had published over the last few months that were a bit more involved and defined them as articles. I then took the code provided by the Articles plugin and slapped it in a static page (using the Exec-PHP plugin that makes it easy) and, lo and behold, the bavarticles page has one column (you can also have two columns if you choose) of category tags beneath which are lists of titled links to the “articles.” You can also put the code that calls articles in your blog’s sidebar(s). Not only is this an intuitive way to index posts across several category tags outside of the blog’s inverted chronology, but it also allows you to cull certain posts from the blog to use as articles by defining a taxonomy accordingly. I use the term taxonomy here with Drupal in mind, for the Articles plugin for WordPress begins to build in some of the functionality of taxonomies and vocabularies (on a more limited scale) that makes Drupal such a powerful CMS for organizing conent along several different axes.

Posted in drupal, WordPress | Tagged , , , | 1 Comment

Colonizing Social Sites: It’s Fun & It’s FREE!

Collier WorkJim Spadacinni at Ideum recently posted on the potential of institutions -in this case museums- to colonize web 2.0 spaces (article link). He brings up a lot of excellent examples in his post. See his discussion of the Los Angeles Museum of Contemporary Art’s My Space profile and Ideum’s work-in-progress with the Maxwell Museum of Anthropology that will be…

…using a Flickr mashup to create a gallery and online activity. The site focuses on the 20th Century American photographer, John Collier Jr. The Maxwell will be posting around 500 high-resolution images to Flickr. At the moment, you can visit a John Collier Jr.’s Flickr site and see a test-bed which includes around 40 images.

These are just two examples of ways that museums are tapping into the immense social networks that have already been established by applications like MySpace and Flickr. I posted a little while back about Brooklyn College’s Library presence on MySpace; I was thinking aloud about the presence of other universities and colleges on MySpace. Yesterday, Melissa (sorry I don’t have a link or more info about this great resource) replied in the comments of that post directing me to the Universities and Colleges page on Myspace. From my initial explorations there are 23 colleges and universities on MySpace and there profiles vary widely in approach and accessibility. Not all of them are public and many of them have issues with the formatting of their profile, check out Yale and Brown’s profiles for cleaner, more attractive interfaces. Many of the profiles have done a good job of befriending their students: Wake Forest has 893 friends and Brown has 375 friends.

Interestingly enough, many of the “friends” of these universities are alumni, suggesting these profiles as possible spaces that universities and colleges can colonize to “stay in touch” with graduates. More than that, it is a way to find out how many students are on MySpace; how people are using this online application; and what such a social networking tool might bring to the realm of teaching and learning technologies. I don’t thin k I need to make the case so vehemently for Flickr as MySpace, for given the fear and terror associated with MySpace predators -it is often framed as anathema to all things “educational.” But as these social networking spaces with critical mass continue to foster active communities populated by large numbers of people such an argument may not hold water for much longer. I hate the advertising presence on MySpace as well as the look and feel of the site just as much as the next discerning web junkie, but thinking of this space as one of many portals into more particularized university and college resources (say like scholarship viz-a-viz podcasts, videos, online learning experiemnts, etc.) may not be as crazy as I once thought -or is it?

Tagged , , , , | 5 Comments

Optimizing with Optimal -A Plugin for WordPress

I have been playing pretty intently with WordPress these days in an attempt to develop out a UMW Division of Teaching & Learning Technologies site that features our projects, aggregates our blog posts & del.iciou.us feeds, while also acting as a resource for faculty, students, and the whole world wide web. It has been a really enjoyable project because I am finally creating the time to sit down and push WordPress as far as my paltry imagination will let me. I have already blogged the BDP RSS plugin -which provides the basis for some inspired WordPress eduglu. Another plugin I came across recently for WordPress is Optimal. The description on the Yabfog blog of this dynamic plugin is as follows:

Optimal renders valid OPML from any source in a tree-like view ideal for browsing. Links to external OPML files as well as RSS, RDF, and Atom feeds are expanded in place.

For those of you who may be unfamiliar with an OPML file, it is a file written in Extensible Mark-up Language (xml) that aggregates disparate feeds from various sources (in this case RSS feeds from blogs) into one file. Optimal allows you to link externally to this file and display the links to various sources (in my case blogs -but it can also be podcasts, mediawiki articles, forum threads, or anything else with an RSS feed). None of these features makes the Optimal plugin particularly special, what does, however, is that this plugin allows you to browse the most recent content from these various feeds right in the page where you have added the simple script.

An example might make this a bit clearer. A while back Darcy Norman “published” an OPML file of all the eduTech blogs he reads for anyone else out there to take advantage of (he’s a giver!). Using the Optimal plugin, all I need to do is get the address of the OPML file and plugin it into a little code that comes with the plugin and BOOM! -I have my own eduTech bloglines right within bavatuesdays that everyone else also has access to. Take a look at bavafeeds to see this plugin hard at work.

Posted in WordPress | Tagged , , , , , , , | 8 Comments

YOUTUBERS: the video!

I was just reading Andy Rush’s blog, spending some quality time admiring his new “My YouTube Favorites” sidebar widget -very nice!, when I came cross a veritable gem! He is always good for an entertaining video, but the one I clicked on today was a lot more than that. YOUTUBERS, despite the melodramatic music, is a nine minute montage that suggests something compelling about the complex intersections of technology and identity -on Youtube specifically but also much more generally.


[youtube]VXwarrIYLJ4″[/youtube]

Posted in video | Tagged , , , | 1 Comment

A Social Revolution: The Web 2.0 Poster

Ross Mayfield’s “revolucion” poster puts a very specific context of the social back into Social Networking!

Social Revolution

“Web 1.0 was commerce. Web 2.0 is people,”
Ross Mayfield – WEb 2.0 Conference.
via Christian Contini

Tagged , , | 2 Comments

The Grammar Mechanic via cac.ophony

Mikhail Gershovich over at cacophony just pointed to a great video on YouTube that features a clip from a 1980s sitcom called Grammar Mechanic. If I am remembering correctly, it was sandwiched between The Facts of Life and Diff’rent Strokes which, as the video below confirms, was a grossly underrated period of fine television. 🙂

Great stuff, Mikhail!

[youtube]QsWn-zvnRvs[/youtube]

Tagged , | Leave a comment

The so-called last FREEMAN!

There has been some speculation as to my uncanny resemblance to Gordon Freeman -a video game superhero with a Ph.D. in Physics. I hope the pictures below will finally put the question as to whether I am or am not this “so-called last freeman” to rest once and for all.

Original FreemanFreeman

As you can plainly see, I am far better looking than this poor sap!!!

First lines from Half-Life 2:
G-Man: The right man in the wrong place can make all the difference in the world.

G-Man: Rise and shine, Mr. Freeman. Rise and shine. Not that I wish to imply you have been sleeping on the job. No-one is more deserving of a rest. And all the effort in the world would have gone to waste until… well, let’s just say your hour has come again. The right man in the wrong place can make all the difference in the world. So, wake up, Mr. Freeman. Wake up and smell the ashes.

Read more quotes from Half-Life 2 on IMDb.

Posted in video games | Tagged | 2 Comments

BDP RSS: A WordPress Aggregator that Works

This semester has raised some questions that have led me to start searching for a better rss aggregation tool for WordPress. And, as is often the case in the WordPress community, I think I have already found it! The background here is that this semester we here at DTLT have begun encouraging students in certain classes to use WordPress.com, or some other free multi-user blogging solution, to set up and maintain their own blog for classes. The downside of this experiment has been finding the right tool for WordPress to aggregate this diaspora of student blog posts into a more centralized course blog that will cleanly and effectively showcase the latest content from the students. I worked initially with Rob Miller’s aggregate plugin, which is a nice tool for getting rss feeds into posts, but the display possibilities are limited and it did not work so well for me in static pages and in the sidebar. Finding a tool that can do all of these things while giving you flexibility with the look and feel of the incoming content would be next to impossible, or so I thought.

About a month ago I found a plugin from The Oz Politics Blog called BDP RSS which has been around for over a year and has gone through several iterations. After playing with this plugin a bit, I think it may be an excellent solution for aggregating student content from distributed blogs into a more centralized WordPress course site (dare I say WordPress course management site?!). Some of the features of BDP RSS are as follows, all of which can be manipulated using the backend RSS tool that is installed under the “Manage” tab upon activation of the plugin.

  • As I have already said, it allows you to aggregate feeds into static pages, posts and the sidebar (for pages you need another plugin which allows you to execute php, I used Exec-PHP and it worked great).
  • It allows you to edit the output format so that you can organize the content from the sites you are aggregating. You can arrange the order of the blogs you are aggregating chronologically -showing the most recent posts from any of the sites in your list. Alternatively, you can organize the logic of the output alphabetically which will show the most recent posts from each site organized by its blog title. This is a really cool feature that I have yet to come across in other aggregators for WordPress.
  • There is also a “List of all sites” feature that is checked by default. If you uncheck this feature you can pick and choose the blogs you want to aggregate without having to delete the others.
  • The previous feature is even cooler when used with what I believe is the most impressive feature of this plugin. BDP RSS can save and output customized formats, i.e., you can pick and choose the blogs you want to aggregate from your list of class blogs to create distinct groups of bloggers whose content can be aggregated together on separate pages. In other words, BDP RSS can take all these disparate, “alienated” blogs and foster a larger class blog as well as a series of smaller group blogs -all of which can be viewed on one post and/or page of the course blog, or on several different static pages/posts. This, in effect, allows for a larger class “group blog” as well as more finely customized group blogs, all without any of the potential headaches of a single point of sign-on, user management, permissions, etc. Not a bad day’s work for a plugin.
  • Finally, BDP RSS can display inline images, links, italicized text, bold text, block quotes, published date, post title and blog title (both with hyper links). You can choose the amount of characters you want to show before it creates a link to the post, or you can have the entire post show up in the page. The flexibility of the plugin is mind-blowing.

In short :), if you are using WordPress and thinking about aggregating content via rss from several disparate sites, than this plugin may very well save your life!

Here is a quick example I threw together using an aggregation of the DTLT blogs at UMW called bavabuddies, notice that bavatuesdays is not in this list of postings even though my feed was entered with the other four. All I did to leave my posts out was just uncheck the “list all blogs” option and selected (or checked) the other four while still preserving my rss information in the event I want to aggregate myself using another customized format.

This may be a bit jumbled, but I am still exploring the possibilities of such a nifty plugin, one of my new favorites -maybe even up there with podpress !

Posted in WordPress | Tagged , , , , | 12 Comments