<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jefferson&#039;s Newspaper &#187; information architecture</title>
	<atom:link href="http://jeffersonsnewspaper.org/tags/information-architecture/feed/" rel="self" type="application/rss+xml" />
	<link>http://jeffersonsnewspaper.org</link>
	<description>A blog about information, education, and the (digital) humanities...</description>
	<lastBuildDate>Thu, 02 Feb 2012 16:01:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Creating a Blog Topics Directory in WPMU 2.8 + BuddyPress 1.1</title>
		<link>http://jeffersonsnewspaper.org/2009/creating-a-blog-topics-directory-in-wpmu-2-8-buddypress-1-1/</link>
		<comments>http://jeffersonsnewspaper.org/2009/creating-a-blog-topics-directory-in-wpmu-2-8-buddypress-1-1/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 03:28:12 +0000</pubDate>
		<dc:creator>E. Bell</dc:creator>
				<category><![CDATA[Reference]]></category>
		<category><![CDATA[buddypress]]></category>
		<category><![CDATA[DIY]]></category>
		<category><![CDATA[information architecture]]></category>
		<category><![CDATA[plug-ins]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wpmu]]></category>

		<guid isPermaLink="false">http://jeffersonsnewspaper.org/?p=557</guid>
		<description><![CDATA[I recently set up an installation of WordPress MultiUser (WPmu) + BuddyPress for the History Department where I work. We have a number of different user groups on the site, including Courses, Workshops, and Projects. Eventually we will also have Personal sites (for students, staff, and faculty in the dept.) and perhaps some small organizations and campus groups. Right now the site is small, so it would be reasonable to manually create and maintain a...]]></description>
			<content:encoded><![CDATA[<p><img src="http://jeffersonsnewspaper.org/wp-content/uploads/2009/10/buddyPress-alt.jpg" alt="buddyPress-alt" title="buddyPress" width="630" height="auto" class="aligncenter size-full wp-image-572" /></p>
<p>I recently set up an installation of <a href="http://mu.wordpress.org/">WordPress MultiUser</a> (WPmu) + <a href="http://buddypress.org/">BuddyPress</a> for the History Department where I work.  We have a number of different user groups on the site, including Courses, Workshops, and Projects.  Eventually we will also have Personal sites (for students, staff, and faculty in the dept.) and perhaps some small organizations and campus groups.  Right now the site is small, so it would be reasonable to manually create and maintain a topical directory.  As the site grows, however, this could become a burden to say the least.  Nobody likes to do that kind of crap &#8211; not even graduate assistants.  So with the help of an outdated plug-in and a couple of tiny hacks, I easily created a directory of Blogs by Topic so I never need to hand code the directory.  Read on to find out how.</p>
<p><span id="more-557"></span></p>
<p>To begin with, I&#8217;m using Deanna Schneider&#8217;s very handy <a title="BlogTopicsForWPMU @ WordPress.org" href="http://wordpress.org/extend/plugins/blog-topics/">Blog Topics For WPMU</a>. Basically, Blog Topics creates a field in the relevant Settings, Registration and BuddyPress areas in which your users choose from a drop-down of admin-defined topics.  They cannot create new topics, they must use the ones you set, so keep that in mind.  The Site Admin can manually set the Topic for any blog at any time; this might be necessary if you already have a handful of blogs on your site (or you could demand that your users do it themselves because this is all about being lazy).  Some users might misfile their site in the wrong category, but you can always go in and edit any blog&#8217;s Topic; they probably won&#8217;t even notice.</p>
<p>You might be wondering why I would write a tutorial for installing a plug-in.  Well, I&#8217;m not sure if the plug-in code has some deprecated elements or if it just doesn&#8217;t play nice with the new BuddyPress theme structure, but it&#8217;s actually a bit more complicated than just installing the plug-in. For whatever reason, the documentation for this plug-in is pretty weak and some of it just doesn&#8217;t seem to work without some tweaks.  That&#8217;s where I come in to sum up my hours of frustration with what now seems like an obvious process.</p>
<p>Here&#8217;s the drill&#8230;</p>
<ol>
<li>Install the plug-in in your wp-content/plugins folder and activate it on your parent site.  The plug-in comes with a nice little widget for your MU child sites, but it won&#8217;t help you here so consider it optional.</li>
<li>Inside the wp-content/plugins/blog-topics directory, you will find the file cets_blog_topics_page.php (a WordPress page template).  Copy this file to the root of your site&#8217;s parent theme file. If you are using BuddyPress 1.1, that means themes/bp-sn-parent.</li>
<li>Now, take that file and mess it all up according to the instructions below.  Unfortunately, in the plug-in&#8217;s current state (v. 0.3.2), the default file just doesn&#8217;t work, but after digging around in the code, I found some functions that work quite nicely and can be easily integrated into your BuddyPress directories.  Again, you will need to save this to the root of your theme.</li>
<li>Create a page called Blog Topics Directory (or whatever) and apply the Blog Topics Page template you just created.
</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span> ?php
<span style="color: #666666; font-style: italic;">/*
Template Name: Blog Topics Page
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;</span> ?php get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;narrowcolumn&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span> ?php do_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'bp_before_directory_blogs_content'</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;page&quot;</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;blog-page&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
			<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				<span style="color: #339933;">&lt;</span>h2 <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pagetitle&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
&nbsp;
                                <span style="color: #339933;">&lt;!--</span>using anchors <span style="color: #b1b100;">for</span> long lists<span style="color: #339933;">,</span> or you could <span style="color: #000000; font-weight: bold;">use</span> something fancier to browse topics<span style="color: #339933;">--&gt;</span>
&nbsp;
					<span style="color: #339933;">&lt;</span>ul id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;topic-list&quot;</span><span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#topic1&quot;</span><span style="color: #339933;">&gt;</span>Topic <span style="color: #cc66cc;">1</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#topic2&quot;</span><span style="color: #339933;">&gt;</span>Topic <span style="color: #cc66cc;">2</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>	
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#topic3&quot;</span><span style="color: #339933;">&gt;</span>Topic <span style="color: #cc66cc;">3</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>	
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#topic4&quot;</span><span style="color: #339933;">&gt;</span>Topic <span style="color: #cc66cc;">4</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>	
					<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#topic5&quot;</span><span style="color: #339933;">&gt;</span>Topic <span style="color: #cc66cc;">5</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>	
					<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>					
&nbsp;
<span style="color: #339933;">&lt;!--</span>add the numeric Topic ID according to the models below<span style="color: #339933;">--&gt;</span>	
&nbsp;
<span style="color: #339933;">&lt;!--</span>topic1<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;topic1&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h2 <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pagetitle&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> cets_get_topic_name<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Blogs<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>  
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> cets_get_blogs_from_topic_id_html<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span>topic2<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;topic2&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h2 <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pagetitle&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> cets_get_topic_name<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'2'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Blogs<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>  
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> cets_get_blogs_from_topic_id_html<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'2'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span>topic3<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;topic3&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h2 <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pagetitle&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> cets_get_topic_name<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'3'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Blogs<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>  
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> cets_get_blogs_from_topic_id_html<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'3'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span>topic4<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;topic4&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h2 <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pagetitle&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> cets_get_topic_name<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'4'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Blogs<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>  
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> cets_get_blogs_from_topic_id_html<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'4'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span>topic5<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span>a name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;topic5&quot;</span><span style="color: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h2 <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pagetitle&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php <span style="color: #b1b100;">echo</span> cets_get_topic_name<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'5'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Blogs<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>  
<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">echo</span> cets_get_blogs_from_topic_id_html<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'5'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
			<span style="color: #339933;">&lt;</span> ?php <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
		<span style="color: #339933;">&lt;</span> ?php do_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'bp_after_directory_blogs_content'</span> <span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span> ?php get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span> ?php get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>You could probably find any number of ways to integrate this into your theme&#8217;s Blog Directory.  Although I might eventually change it, right now, I&#8217;ve just added a link to the Blog Directory sidebar which users can&#8230; use&#8230; to Browse Blogs by Topic.  If it helps, <a title="Cleveland History Blogs" href="http://clevelandhistory.org/">here&#8217;s a link to the site where this code is being used</a>.  Again, it needs some tweaking but this should get you started.  Hope this quick fix has helped.  </p>
<p>If you&#8217;re wondering why this post has a giant image of <a href="http://en.wikipedia.org/wiki/Brak_%28character%29">Brak</a> (among other notable &#8220;buddies&#8221;) at the top, or if you just need a break from all this BuddyPress nonsense, you might need to listen to this&#8230;<br />
<!-- ProPlayer by Isa Goksu --><div name="mediaspace" id="mediaspace"><div class="pro-player-container" width="630px" height="46px"><div id="pro-player-557pp-single-4f3026226be9b"></div></div></div><script type="text/javascript" charset="utf-8">var flashvars = {width: "630",height: "46",autostart: "false",repeat: "false",backcolor: "111111",frontcolor: "cccccc",lightcolor: "66cc00",stretching: "fill",enablejs: "true",mute: "false",skin: "http://jeffersonsnewspaper.org/wp-content/plugins/proplayer/players/skins/default.swf",plugins: "",javascriptid: "557pp-single-4f3026226be9b",image: "",file: 'http://jeffersonsnewspaper.org/wp-content/plugins/proplayer/playlist-controller.php?pp_playlist_id=557pp-single-4f3026226be9b&sid=1328555555'};var params = {wmode: "transparent",allowfullscreen: "true",allowscriptaccess: "always",allownetworking: "all"};var attributes = {id: "obj-pro-player-557pp-single-4f3026226be9b",name: "obj-pro-player-557pp-single-4f3026226be9b"};swfobject.embedSWF("http://jeffersonsnewspaper.org/wp-content/plugins/proplayer/players/player.swf", "pro-player-557pp-single-4f3026226be9b", "630", "46", "9.0.0", false, flashvars, params, attributes);</script></p>
<p align="center"><a href="http://brakbuddy.ytmnd.com/">Brak sings Yeah Buddy (via brakbuddy.ytmnd.com)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jeffersonsnewspaper.org/2009/creating-a-blog-topics-directory-in-wpmu-2-8-buddypress-1-1/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
<enclosure url="http://content.ytmnd.com/content/9/3/f/93fb525eff749c9e9f82e14ce629bf12.mp3" length="700465" type="audio/mpeg" />
<enclosure url="http://i.cdn.turner.com/adultswim/shows/downloads/shows/brak/mp3/brak_6.mp3" length="192504" type="audio/mpeg" />
		</item>
	</channel>
</rss>

