SpiderMarket's logo
home       blog       resumé
Black Widow Magazine Theme

I’m building a customizable theme right now based on Condé Naste’s magazine themes, more specifically it’s a mixture of The New Yorker and Vanity Fair’s website themes.

I’ll have the beta up in a couple weeks. It will be chock full of customization using a number of custom fields. The most interesting and unique piece of this theme, which I will be calling Black Widow, is each page’s customization abilities. Using only custom fields, you will be able to set up an entire page without any code. If you look at the The New Yorker’s pages you’ll see that on each one the left column and the right column are the same. The middle column, however, is different. Every middle section has a number of elements. In Black Widow you will be able to define up to 10 elements per page.

This theme will be great for small to large magazines looking for scalable solutions. It will come preloaded with plugins that will need to be activated in order to make the theme work as it should. When I release the beta, I will also release all the information for customizing the theme. So far as I can tell, this theme will be the most comprehensive magazine theme since Mimbo. The theme will be free but for one restriction. I ask that should you use the theme, you keep my single ad on the top, or in another region (I will release three versions with 1 ad in 3 different spots). It should not be hard. In the next few days I’ll be posting pictures of my progress.

(entry made by Joshua Unseth @ 10:07 pm on July 20, 2008) | No Comments
Subtitler, My First Wordpress Plugin: Put Subtitles on your Blog

So this is a really hacked together plugin right now. It works, and I don’t think it should mess anything up, but the coding isn’t pretty and it does some weird things depending on which browser you’re using. I have been frustrated with WordPress’ lack of ability to put subtitles in magazines. It is pretty obvious that WordPress isn’t designed perfectly for it. There are an awful lot of bloggers[1][2][3], and there is even one company that claims to have a plugin for subtitles but hasn’t made it available for download. who have written on how to use custom fields on your blog to create subtitles. Anyhow, I don’t want to scroll down to the custom fields part of my entry screen, but I do want subtitles.

My plugin allows you to add subtitles by typing the_subtitle() into your theme. It actually does just create a custom field, but it’s in a location that is convenient (right under the Title input), and it’s got an appropriate tab (right after the title input). So, basically, it’s easy to use and convenient. I’ve only tested it in a WordPress 2.5 installation, and I doubt it works in anything much older.

Try it out, let’s debug the sucker together. It’s got a few problems, but nothing too terrible.

Download it here

(entry made by Joshua Unseth @ 2:09 pm on July 4, 2008) | No Comments
SPAM WARNING from Godaddy

This last week I got an email from my hosting provider, Godaddy.

Dear Joshua Unseth,

We have received complaints that you are involved in sending unsolicited email messages for/from the following domain(s):

CARTOONWEEKLY.COM

If this is the case, GoDaddy.com, Inc. requires that you cease this activity immediately. You are also required to respond to this notification within 24 hours to address the situation. Failure to do so may lead to the suspension or cancellation of service.

Please review our Universal Terms of Service for details on the nature of this situation: https://www.godaddy.com/gdshop/agreements.asp?prog_id=GoDaddy&isc=gdbb644

Specifically, we recommend you review Sections 5 and 6 of this agreement.

Again, as we stated above, you are required to respond to this notification within 24 hours to address the situation. We look forward to hearing from you.

Sincerely,

Spam and Abuse Department
GoDaddy.com, Inc.

I’d setup the domain cartoonweekly.com to try my hand at using WordPres MU. After my initial setup I realized that it was more than I needed for most of my projects and abandoned it. Over the last few weeks, however, my server was getting bombed. There was so much activity on my server, and I couldn’t figure out why. When I got this email, I checked my code, and sure enough, there was a SPAM redirect in my header. Boo. Anyhow, the instant I deleted the the installation, my server’s activity went back to normal.

Lorelle posted a great article today discussing how to detect SPAM comments on your blog. She talks about, specifically, trackback links that Spammers are using. They’re getting more sophistocated. When I was a new blogger, I fell for a lot of these—happy that anyone at all would notice my posts.

howtospoter gives the following list of SPAM fighting tools (other than Akismet).

(entry made by Joshua Unseth @ 2:17 pm on June 24, 2008) | 1 Comment
Comments

The first blog I ever maintained was at the blog community website Gather. For a while, when I was blogging everyday, all of the time, my posts became pretty popular. My pieces were usually on the front page as the highest rated or highest viewed. It made me realize that this blogging business is a lot of work. At Gather, you built up goodwill by reading and commenting on other people’s posts. They would reciprocate and read your posts, leave a comment, and rate. The thing is, sites like gather end up being their own little community portal—extremely insular. But regular blogging sites aren’t much different really. You might be interested in knowing that almost all of my hits come from links on other sites. Most of the links on those other sites are the work trackback plugins on websites. When I make a comment, their website let’s all its readers know about my article.

It’s a great little way to build some easy backlinks (although I’ll admit, I’m not really sure how much of a difference trackback links and comment links make in your overall Searchability). The thing is, if you make good comments on other sites, often times people are inclined to jump on over to your site. The problem is, however, getting other people to comment on your posts when they do saunter over. This article on proBlogger discusses how to get people engaged with your blog’s content. Now, I’m wondering if coaxing people to leave their comments is any different when their reading blogs or magazines online. Regardless, I’m going to try to implements some of the suggestions (like asking people to leave comments after articles to see if it works. I’ll update you in the coming days as to whether it worked or not.

In the meantime, I want to know if you have had any successes getting more visitors to comment on your magazine or blog articles.

(entry made by Joshua Unseth @ 3:56 pm on June 13, 2008) | No Comments
Thomas Beatie Appears on Oprah to Discuss His Pregnancy

I know this is out of character with my usual postings, but I couldn’t resist throwing my two cents into the discussion about the pregnant man, Thomas Beatie. The following YouTube videos say everything I think.

(entry made by Joshua Unseth @ 3:47 pm on June 8, 2008) | No Comments
When to Use iJoomla

I used iJoomla for the first magazine I ever developed. I really liked it. It made Joomla work like it was made for magazines. But it has a lot of shortcomings. First of all, because Joomla is made for a bit more complex things than some blog platforms, it required that the person inputting articles let multiple parts of the site know about it—the taxonomy for articles is a bit overly complicated. But it was a great tool for my first magazine. And that’s who I recommend use this product—those trying to get their feet wet in a world of online magazines.

The problems with iJoomla and Joomla itself are that they make difficult a multiuser backend (which means that you—or someone like you—is going to be stuck uploading every single article…ouch!). It doesn’t allow you to display bylines on the frontpage very easily, so your users won’t know who wrote each article unless they click on it and go to the page itself. Immigrating to another CMS or even a blogging platform is difficult. Also, as Joomla doesn’t come with a good, functional commenting system, you have to find one that is to your liking should you think that a necessary part of running a magazine (don’t forget the SPAM filter). Finally, should you feel compelled to include a blog on your site, Joomla doesn’t allow for really nice integration. There are a few hacked options whereby you can install an instance of WordPress in your Joomla installation. But your subject to using whatever antiquated edition of WordPress comes along with the wrap-in.

What I like about iJoomla is that it’s ready out of the box. You load it into your Joomla installation and activate the bots, components, and other such pieces, and poof! you’re ready to go. It is also highly customizable if you know what you’re doing. For complex architectures Joomla is a nice framework that allows for easy breadcrumbing. It’s out of box SEO has been traditionally terrible, but that can be fixed with some tweaking. The best feature of iJoomla is it’s ability to display only the most recent volume and issue. That is a beautiful feature that I await on other platforms.

If you do use it, let me make a suggestion, do whatever you can to make your website look like it isn’t using iJoomla, or Joomla for that matter. I have encountered only one instance of a site that uses Joomla but doesn’t look like it does (although I don’t think it uses iJoomla). Then again, if a site has done it really well, I probably wouldn’t ever find out.

Below is a list of a few magazines using iJoomla. Look at what they’ve done:
UN Magazine—This site has a very Joomlavian (is that a word…it is now) flavor to it. It’s good looking, but it’s obvious they use iJoomla.

The Bridge Magazine—This is a pretty nice looking magazine page. Although there is tons of content on the frontpage, and it’s not organized really well. One problem with magazines, Slate Magazine’s homepage. It is organized by day, and it keeps you interested all the way down. They have tons of information packed into a tiny space and it makes me want to read it all.

The Catalyst—Their homepage is beautiful. I especially like their attractive header, although it’s a bit large IMHO. In their actual magazine section, however, it becomes obvious that they are using iJoomla. It’s pretty and all, but it just doesn’t cut it for me. If you notice, each article has a byline at the very end of their excerpt. But if you click on the article itself, usually the byline reads “The Staff” which probably means that they got perturbed too. Second, in the menu in the header, you can browse old issues. The menu is already a mile long. If this magazine survives another couple of years, their menu is going to be off the page.

Barkley and Paws has done a good job making their site look like a non-iJoomla site. Still, no byline, but the content is nicely organized, and each article has a pretty, accompanying picture.

HCJB—was one of the first iJoomla users. They were the reason I used it. I really like HCJB and I figured if they were using it, then it was good enough for me. They’ve done a lot of work over the years to make sure that their site doesn’t look like it’s using iJoomla. Frankly, I think they’ve done the best job of any site using iJoomla to do that.

(entry made by Joshua Unseth @ 12:53 pm on ) | No Comments
Great Wordpress Plugins for Magazine Developers

Akismet—Okay, I didn’t need to include this because it comes with the default WordPress installation, but I can’t stress how important SPAM filters are. And, frankly, I haven’t found a better one than Akismet. Basically, this is my shoutout to the Akismet development team. Thanks ya’ll for keeping my blog safe.

All in One SEO Pack—I’m just learning about Search Engine Optimization. I don’t know much about it yet, but I know that it’s important. This Plugin does some basic Search Engine Optimization for you, and it’s highly customizable. Out-of-the-(proverbial)-box this thing comes ready to go, but if you know what you’re doing, you can optimize it for your blog and make it run even better. A great resource for optimizing this plugin can be found here.

CG-FlashyTitles 1—Unfortunately, this is a bit antiquated. sIFR 3 is out and this plugin only supports sIFR 2. But, if you don’t know how to implement sIFR 3 (although there are some really great tutorials out there that will teach you how), then this will do until a plugin comes out for WordPress that allows you to use sIFR 3.

DashBar—This is a really handy tool that allows you to feel like you’re logged into the backend while perusing your website’s frontend (that sounds vaguely sexual). Anyhow, it’s pretty useful, although it can be a bit extraneous at times. It’s not 100% necessary, it just saves you a bit of time.

Exec-PHP—This allows you to put PHP in your posts. That’s really important for the developer of the site. ‘Nuff said.

FeedBurner FeedSmith—So I kinda’ lied. This Feedburner thing is a plugin. But you need to go to feedburner.com and burn yourself a feed, and then add this plugin to your WordPress installation. You’ll be happy you did. FeedBurns allow you to track stats of people who are subscribing to your RSS feed. If nothing else, it keeps people like me busy. I love looking at stats.

Get Recent Comments—I spent a long time searching the web for a get recent comments plugin. This one is hands-down the best. It’s easily customizable and it’s easily customizable. Oh, did I mention that it’s easily customizable? It works well, it works hard, and it’s pretty. I love this plugin. If I were sentimental I’d probably make out with it.

Google XML Sitemaps—This plugin is like the Ronco Rotisserie. Set it and forget it as they say. You install this thing once, you put in the proper inputs (which is why you put them in), and then you hit a button which makes the first sitemap. From then on, you never have to touch it again. It updates automatically every time you update the magazine.

OneClick Installer—This thing saves me a ton of headache. I hate doing FTP. This bad boy lets me skip all that. I can even cut out the middle man and snag a plugin or two directly from the host’s website. Upload this plugin using FTP and then never use FTP to upload a plugin again.

Similar Posts— This plugin crawls the database and finds miraculously finds articles that correlate somehow to the article that the visitor is reading. It truly is magical. When I added this plugin, the average pageviews per visitor increased by .5 pages. It won’t work alone. Along with the Similar Posts plugin, you need to instal the Post-Plugin Library. I don’t know why, I just know you got’s ta’ do its.

Role Manager—This plugin just allows you to restrict user access to certain parts of the site. For control freaks and those with Napolean Complexes, this plugin will make you feel very very powerful.

Themed Login and Register—I wanted to customize my wp-login and wp-admin login screen. All I could find was a the Binary Moon Custom Login Plugin which didn’t really do what I wanted it to. Basically, it requires me to work in order to customize my login. Themed Login and Register integrates my login menu into my theme. All I have to do is load it up. Easy peazy.

WP-Footnotes—It’s never fun when i have to comb through some person’s article and insert footnotes. But this plugin allows you to do it pretty easily, and it’s output is pretty. Right now there is a problem with the out-of-box plugin. It changes all your footnotes to the letter “a” on the frontend and your modifications in the backend don’t get saved. You can find the solution here.

WP-PostRatings—This plugin comes with a nice little widget for your sidebar. WP-PostRatings will add a lot to your site. It’s an ajax rating system and it does all the ratings calculations for you. The ratings are controlled by a custom value in the backend, so you can change the ratings of any post you’d like. Also, it records all the ratings in the backend so you can watch for abuses of the system (if you care enough to).

WP-PostViews—This plugin is by the same author as the PostRatings plugin. It works just as nicely too. Highly customizable, this plugin comes with a widget. Get it! Got it? Good.

(entry made by Joshua Unseth @ 5:44 am on ) | No Comments
WordPress and Firefox

I’ve been having a little bit of trouble with WordPress lately. When I go into an old post while using firefox, oftentimes, the post is cut off about halfway. The problem has come after I’ve edited an article. The post then saves without all of its text.

(entry made by Joshua Unseth @ 12:50 pm on May 30, 2008) | No Comments
Quick and Dirty Fix: how to make rotating tabs for your website

This last week I learned how to make rotating tabs on a website. You know what I’m talking about, those rotating slideshows that display the news. Unfortunately, I couldn’t find any tutorials on the subject. But since I’m sorta’ a Java redneck, rest assured, any fix of mine is nothing more than a good lookin’ hack. But it works. And so, if you want rotating tabs on your website, do as I do and employ my quick and dirty methods.

First, put the following between your <head>…</head> tags.

<link rel="stylesheet" href="flora.tabs.css" type="text/css" media="print, projection, screen">

<script type="text/javascript" src="jquery.ui-1.5b4/jquery-1.2.4b.js"></script>

<script src="jquery.ui-1.5b4/ui.core.js" type="text/javascript"></script>
<script src="jquery.ui-1.5b4/ui.tabs.js" type="text/javascript"></script>

<script type="text/javascript">
$(function() {
$('#rotate > ul').tabs({ fx: { opacity: 'toggle' } }).tabs('rotate', 7000);
});
</script>

Then, download and unzip this into the same directory as the webpage you’re building.

Finally, somewhere in the body of your webpage, cut and past the following:

<h1>Rotating UI Tabs example</h1>
<div id="rotate">
<ul>
<li><a href="#fragment-1"><span>Section 1</span></a></li>
<li><a href="#fragment-2"><span>Section 2</span></a></li>
<li><a href="#fragment-3"><span>Section 3</span></a></li>
<li><a href="#fragment-4"><span>Section 4</span></a></li>
<li><a href="#fragment-5"><span>Section 5</span></a></li>
</ul>

<div id="fragment-1">
</div>

<div id="fragment-2">
</div>

<div id="fragment-3">
</div>

<div id="fragment-4">
</div>

<div id="fragment-5">
</div>

</div>

Put stuff in between each fragment id and it will rotate on your webpage. There you have it, super dirty, incredibly friendly.

(entry made by Joshua Unseth @ 7:57 pm on May 14, 2008) | No Comments
Using tags to display stuff in the WordPress loop

I spent the better part of today trying to manipulate the archive.php page on the Mimbo theme. Nowhere on the internet was I able to find how to integrate tags into your post. If you use the following code on your website, you can build a loop that utilizes the tag that is clicked on by your website’s user. This particular coding was the top of my “lead” story loop.

<!–
<?php
$single_tag_title = single_tag_title();
$tag == str_replace(" ", "-", $single_tag_title);
$tag == strtolower($tag);
?>–>
<div id="content">
<div class="feature clearfloat" id="lead">
<?php
// this is where the Lead Story module begins
query_posts('showposts=100&category_name=lead&tag=' . "$tag" . ' ' . "$tag");
?>
<?php while (have_posts()) : the_post(); ?>
(entry made by Joshua Unseth @ 2:36 am on May 11, 2008) | No Comments
Are Google Analytic’s Bounce Rate Accurate?

I’ve been reading on how to better utilize Google Analytics to improve your website’s performance. I’ll post some of the really great youtube videos that I found later. But, I have found some great articles, including Bounce Rate: Sexiest Web Metric Ever?, which explains how important a metric bounce rate is. The best definition of bouncerate I’ve ever heard is customers come, puke, and leave. Basically, it means that someone came to your site and left right away because they didn’t like what they saw. But I’m a bit skeptical of Google’s metric. On one of my websites, I have a bounce rate exceeding 60%. Two problems: 1) it suddenly increased one day for no reason, 2) The sites average page views are way way higher than they were when my bounce rate was nearly 0%. Either, Google changed the way the metric is measured, or it’s just wrong. I’m wondering if spiders are counted in the metric, or, perhaps, if average pageviews are not counted for “bouncers”. If anyone can explain why the graph below makes sense, I’d love that.

Bounce rates (yellow line) v. Visits (blue line)

(entry made by Joshua Unseth @ 12:19 am on May 10, 2008) | No Comments
Some really easy SEO that you maybe didn’t even know

I’m on a kick, I know. I am really trying to figure this SEO stuff out. I think it’s important. And as a website designer, it’s probably one of the most important service I can offer my clients. So today, I was looking for some really basic SEO stuff. I found it at one of my favorite blogger’s sites, Mr. Mike Davidson of Mike Industries (he’s the dude that created sIFR). In his article, Lessons From The Roundabout SEO Test, he tries some quick and dirty experiments that tell us a lot about how Google ranks sites.

His conclusions:

Header’s Matter: He found that H1 tags get ranked over simple mentions and even duplicate mentions of a keyword.
Despite nasty rumors, nested tables aren’t that big’a deal: While a page with an instance of a keyword is ranked above a page with an instance of a keyword and a nested table, if two keywords appear on a site with a nested table, it will be ranked highest of all. And so, as he says, “The mere appearance of many nested tables…does not have a strong enough negative effect to be considered a drag on search engine ranking.”
code validity matters (at least in some instances): Mike found an instance in which invalid code got a page blackballed from google. While it doesn’t happen all the time, it apparently does happen some of the time.
The placement of semantic elements of coding don’t matter:An H1 tag put at the end of a post where it doesn’t even matter is far more effective than an H4 tag at the top of a post where it actually serves a function.
Semantic elements of coding don’t matter that much:“Although good semantics are somewhat valuable in optimization, simple things like proper titles, descriptive filenames, and incoming links are dramatically more important.”

He goes onto say that for good Search Engine Optimization, making a “site sticky enough to attract quality incoming links is by far and away the thing to concentrate on.” Apparently, pagerank doesn’t matter much, but “link love” does.

SEO is an interesting animal. While some developers make it a priority in developing their site, others seem to think it sort of a happenstance feature of good coding and good practice. I’m sort of inclined to agree with the latter. It seems that most basic SEO is accomplished by building sites that are W3C compliant and use HTML elements correctly and efficiently. And that is why I will sign this blog post off with a great big

I love SEO-Search Engine Optimization

.

(entry made by Joshua Unseth @ 11:15 am on May 7, 2008) | 1 Comment
The HTML on the Google homepage is invalid


I just ran the w3c validator to crawl google’s homepage. I was surprised to find 66 errors. It makes me wonder how important this valid XHTML stuff really is. I’ve found a lot of controversy on the issue. And I’m not really sure of the answer. All I know is that Google seems not to care about it’s own HTML. Interestingly, 456 Berea Street has a HTML valid version of Google’s homepage. Apparently, the valid HTML is 1402 bytes smaller than Google’s current invalid homepage. That’s so much bandwidth. Ouch! You’d think Google would do something about that.

good articles about google and Valid HTML:
Hobo found that Google loves valid HTML

Mark Daoust found that Google loves invalid HTML.

(entry made by Joshua Unseth @ 5:09 pm on May 6, 2008) | No Comments
Validating XHTML

The last couple days I’ve been reading a lot about Search Engine Optimization. Apparently it’s really important (just kidding, i know it’s important). I just began working on optimizing one of my sites. Over the next few weeks I’ll be watching traffic, and I’ll let you know whether my SEO attempts helped increase visits.

Anyhow, I spent the better part of the day just validating my sites HTML using the W3C validator. My most common mistakes: I didn’t close off my imgtags with a /, I didn’t have alttags on all of my images, and I used capitalized tags.

Frankly, I had no idea that <BR /> is invalid HTML and <br /> is valid HTML. Convention has always been something I didn’t concern myself with, but it may be more important than you think. Additionally, I had no idea that having an alt tag in an image would be as helpful as it (apparently) is. In my readings, adding tags to elements ends up skewing the content:links ratio toward more content on one’s page. This, of course, is good when it comes to getting indexed by search engines (search engines love content). Your image tags should look like the following:

<img alt="Some description goes here" src="URL" />
(entry made by Joshua Unseth @ 1:30 am on ) | No Comments
Where Wordpress Falls Short

Issue and Volume Management

While Wordpress has quickly become my favorite platform for building almost any webpage (so simple even my stupid brother could use it), it isn’t perfect by any means. When it comes to magazines, one of the biggest problems with Wordpress is that there is no Issue and Volume management. iJoomla has constructed a phenomenal plugin for Joomla. It allows you to organize your issues and volumes, change the layout, and much much more. The problem with iJoomla is that you have to use Joomla. Now, I love Joomla(it was my first CMS), but to be honest, it’s a terrible CMS when it comes to handing it off to an end-use who isn’t you. The backend navigation is a bit complex for most users.

If Wordpress had some sort of mechanism like iJoomla that would allow you to manage the content on the frontpage by volume and issue, that would be amazing. As it is now, a Wordpress magazine user has to be content with just allowing the content within their issue to be treated like all Wordpress; the old stuff sinks to the bottom, and the new stuff sits at the top. That means that an old issue’s material will likely exist on the frontpage right under new content. Eww! Wordpress needs a plugin that allows magazine developers to manage volumes, issues, and frontpage content.

Batch editing of Articles
One of my greatest frustrations with Wordpress has to do with its inability to allow an user to batch edit posts. One of the magazines I worked on required me to archive years worth of material. What that meant was I had to upload about 300 articles, upload a picture for each article, assign its “date of publication”, insert pullout quotes for each article, and assign a category and tags to every article. It took nearly 3 hours per issue. I would love to see a plugin for Wordpress that allows a person to edit the categories, tags, and dates of multiple articles simultaneously.

(entry made by Joshua Unseth @ 7:11 pm on May 5, 2008) | No Comments
Just a Heads Up

In the next few weeks, I’m going to be putting up SpiderMarket’s bare essential WordPress plugins for running a magazine site. Below is my initial list of plugins. I’d love your recommendations, if you have other ideas.

StatPress (or some other WordPress Statistic Plugin)
Google XML Sitemaps
CG-FlashyTitles (if you know of a less clunky sIFR plugin, I’d love your comment).
WP-PostRatings
Exec-PHP

(entry made by Joshua Unseth @ 3:18 pm on May 1, 2008) | No Comments
loop generator beta

I wrote a WordPress loop generator to expedite my own site building process. So far, I have only been able to incorporate the standard loop option into WordPress. I will be adding to this as I go, making it evermore complex.



FIRST, PICK THE TYPE OF LOOP YOU WANT:


(entry made by Joshua Unseth @ 2:51 pm on April 30, 2008) | 1 Comment
Mimbo for bimbos: Making Mimbo do what you need

Mimbo is a great magazine theme. It is easy to manipulate, the CSS is clearly written, and there are so many uses for it.

For an example of a site that uses the Mimbo theme, look at The Brown Spectator. The Spectator has modified the Mimbo theme to fit its own needs, which is skill you’re about to learn. This theme is pretty neat in that it uses arrays to display data. This means that the code for Mimbo is incredibly clean, which makes for easy modifications. Let’s take a look at the front page’s file, the Main Index Template or index.php

<?php get_header(); ?>

Okay, this is just retrieving the header.php file listed as header in the WordPress theme editor. We’ll worry about that file later.

<div id=”content”>
 
  <div class=”feature clearfloat” id=”lead”>
 
   <?php
// this is where the Lead Story module begins   
   query_posts(’showposts=1&cat=3′); ?>
    <?php while (have_posts()) :
the_post(); ?>

This snippet of coding looks for all posts in category 3 and then displays 1. The problem with this methodology is that WordPress doesn’t allow you to know really easily which category is cat=3. There are ways, but if you don’t know how, an easier way to display something in my humble opinion, is to use category names. To do this delete cat=3 from the code snippet and replace it with category_name=the name of the category you want displayed.

I think this is pretty obvious, but since I’m assuming people reading this are noobs like I was, I’ll take nothing for granted. If you want more posts displayed, change showposts=1 to showposts=whatever number posts you want displayed

The final part of the code is the beginning of a loop that displays what you just asked it to display. Basically, it just says that while there is still a post to display in the category deliniated, execute the loop.

    <a href=”<?php
the_permalink() ?>” rel=”bookmark” title=”Permanent Link to
<?php the_title(); ?>”><img
src=”<?php bloginfo(’template_url’);
?>/images/<?php
// this is where the Lead Story image gets printed  
 
    $values =
get_post_custom_values(”Image”); echo $values[0]; ?>” alt=”"
id=”leadpic” /></a>
    <h3>

This code snippet represents what makes WordPress so incredibly powerful. Custom values are a coder’s best friend as they allow you to customize wordpress in any way you want: show pictures, display posts or alternative CSS, or any other creative thing you can think of.

In WordPress, when the_permalink() appears within a loop that is retrieving posts, it will print the URL address of the post. Likewise, the_title() will print the title of the post being retrieved. The code snippet bloginfo(’template_url’), will print the URL of the file your template is located: www.X.com/wp-content/themes/YOUR_THEME’S_NAME. As a string, bloginfo is one of the most versatile and useful that WordPress has to offer.

bloginfo() or get_bloginfo(’name’) prints the title of your blog
bloginfo (’description’) prints your blog’s tagline
bloginfo(’template_directory’) prints your blog’s template directory’s URL
bloginfo(’charset’) prints the character set your blot is using like UTF-8
bloginfo(’url’) prints your website’s URL
bloginfo(’rdf_url’) prints rdf/rss1.0 url’s
bloginfo(’rss_url’) prints rss .92 url
bloginfo(’rss2_url’) prints rss 2.0 url
bloginfo(’atom_url’) prints atom feed url
bloginfo(’comments_rss2_url’) prints comment’s rss 2.0 feed’s url
bloginfo(’pingback_url’) prints Pingback’s url
bloginfo(’admin_email’) prints administrator’s email address
bloginfo(’version’) prints WordPress version your blog uses
bloginfo(’html_type’) prints Content type for your blog
bloginfo(’wpurl’) URL of WordPress installation
bloginfo(’template_url’) Current template’s URL
bloginfo(’stylesheet_url’) prints the URL of the current template’s stylesheet
bloginfo(’stylesheet_directory’) prints the directory of the current template’s stylesheet

(Most of this was synthesized from the WordPress website)

In this particular code-bit, however, the bloginfo(’template_url’) code is wrapped in a img src= code snippet and followed by a /images/ another bit of code which I’ll explain in a second. Anyhow, what it all means is that there is an images folder in the directory where the theme is located. The location of the image itself and the type of image (jpeg, gif, png) is specified by a custom value.

Now, as I said, custom values are pretty cool. But there are plenty of great blog posts on how to use them online. I’m concerned specifically with the Mimbo template. Sometimes when I’ve posted columns, there aren’t coinciding pictures. Mimbo’s way of handling this is to give a dummy location for an image that doesn’t exist. This renders on firefox as a little box with nothing in it, and in Internet explorer, this renders as one of those giant broken file images we all love so much. So here’s how you deal with that.

<?php
// this grabs the image filename
$values = get_post_custom_values("Lead-Image");
// this checks to see if an image file exists
if (isset($values[0])) {
?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/images/<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>" alt="" id="leadpic"/></a>
<?php } ?>

You flip things around a bit. The original Mimbo code is a bit backwards. It assigns the location of the image to a variable before it checks to see if there is even an image in existence. In this example, however, the variable is assigned the value in the string get_post_custom_value(). And then, it checks to see if the value is empty. If it is empty, then it knows to skip putting in the picture, however, if the value comes back with something in it, then it knows to put a picture next to the title. Problem solved.

    <?php
    // this is where the name of the Lead
Story category gets printed      
  
 wp_list_categories(’include=3&title_li=&style=none’);
?></h3>

Just like the comment says. This is where the name of the Lead Story’s category gets printed. It gets printed in between h3 tags. Usually, when I implement Mimbo, I remove this portion of code for the lead story. The story is at the top of the page, and I generally just let it sit there. It’s pretty obvious that it’s the lead story, the category doesn’t matter so much, in my opinion. Once again, you can see an example of this on The Brown Spectator’s website.

    <a href=”<?php
the_permalink() ?>” rel=”bookmark” title=”Permanent Link to
<?php the_title(); ?>” class=”title”>
    <?php
// this is where the title of the Lead Story gets
printed      
    the_title(); ?>
    </a>

This simply adds a link to the lead story. You can change the title of the link, if you want to, by changing the_title(). But why would you want to?

    <?php
// this is where the excerpt of the Lead Story gets
printed      
    the_excerpt(); ?>
    {<a href=”<?php
the_permalink() ?>” rel=”bookmark” title=”Permanent Link to
<?php the_title();
?>”>More&raquo;</a>}
    <?php endwhile; ?>
  </div><!–END FEATURE–>

This code snippet prints an excerpt of your lead story right below the title that was printed in the previous snippet. And then, right after the excerpt is printed, the there is a link that is added that looks like {More»}. Sometimes, people don’t like the snippets at the end that link to the article. In case you’re wondering, it’s safe to delete from “{<a href=”<?php
the_permalink() ?>”… to …”More&raquo;</a>}”.

  <div id=”leftcol”>
    <?php
// this is where the Features module begins  
   
  
 query_posts(’showposts=3&cat=4′); ?>
    <h3><?php
    // this is where the name of the
Features category gets printed      
  
 wp_list_categories(’include=4&title_li=&style=none’);
?></h3>
    <?php while (have_posts()) :
the_post(); ?>
    <div
class=”feature”><a href=”<?php the_permalink()
?>” rel=”bookmark” title=”Permanent Link to <?php
the_title(); ?>”><img src=”<?php
bloginfo(’template_url’); ?>/images/<?php
// this is where the custom field prints images for each
Feature      
    $values =
get_post_custom_values(”Image”); echo $values[0]; ?>” alt=”"
/></a><a href=”<?php the_permalink()
?>” rel=”bookmark” class=”title”>
      <?php
// this is where title of the Feature gets printed  
   
      the_title();
?>&raquo;</a></div>
    <?php endwhile; ?>
  </div><!–END LEFTCOL–>
 

 
  <div id=”rightcol”>
    <?php
// this is where you enter the IDs of which categories you want to
display
$display_categories = array(5,6,7);
foreach ($display_categories as $category) { ?>
    <div class=”clearfloat”>
      <?php
query_posts(”showposts=1&cat=$category”);
       
$wp_query->is_category = false;
      
 $wp_query->is_archive = false;
      
 $wp_query->is_home = true;
         ?>
     
<h3><a href=”<?php echo
get_category_link($category);?>”><?php
    // this is where the name of each
category gets printed      
      single_cat_title();
?></a></h3>
      <?php while
(have_posts()) : the_post(); ?>
      <?php
// this grabs the image filename
    $values =
get_post_custom_values(”Image”);
// this checks to see if an image file exists
    if (isset($values[0]))
{      
       
         
?>
      <a
href=”<?php the_permalink() ?>” rel=”bookmark”
title=”Permanent Link to <?php the_title();
?>”><img src=”<?php
bloginfo(’template_url’); ?>/images/<?php $values =
get_post_custom_values(”Image”); echo $values[0]; ?>” alt=”"
/></a>
      <?php }
?>
      <a
href=”<?php the_permalink() ?>” rel=”bookmark”
class=”title”><?php
// this is where title of the article gets printed  
   
      the_title();
?>&raquo;</a>
      <?php
the_excerpt(); ?>
      <?php
endwhile; ?>
    </div>
    <?php } ?>
  </div><!–END RIGHTCOL–>
</div><!–END CONTENT–>

<?php get_sidebar(); ?>
<?php get_footer(); ?>

(entry made by Joshua Unseth @ 10:17 pm on April 27, 2008) | 3 Comments
To their credit

Below are the list of and links to the programs that have made my my life easier.

CG-FlashyTitles is a wordpress plugin that implements sIFR. All I have to do is embed the fonts. This plugin makes sIFR installation easy as pi (which is my favorite number).

Google (XML) Sitemaps Generator generates a handy-dandy sitemap whenever the site is updated. It basically indexes every single bit of content on a website and helps guide Google’s spiders. They crawl every nook and cranny, and then list the nooks and crannies on google. Simple, fun, and painless.

The Mimbo Theme is a beautiful theme that works well for magazines. The code is easy to read and modify to fit your needs.

Tom Schneider’s Role Manager is a wonderful plugin that allows you to keep idiots from ruining everything. If you run a blog that publishes multiple people’s work, then this plugin is for you. It ayou to assign roles, and give people the ability to access only the parts of the site that are relevant to their role. voilla, your WordPress installation is safe from pokey little puppies.

sIFR allows users to use any font they want in their website’s headlines. Woohoo, pretty titles!!

Statpress is a wonderful little plugin that keeps track of a website’s stats. It doesn’t put a lot of load on your server, and it is pretty accurate. It’s not as detailed as Google Analytics, but it’s detailed enough for most websites.

Wordpress is a simple, but powerful blogging platform. It’s fully customizable, and it is generally pretty fast. Templating Wordpress websites is easy-peasy, and handing them off to a different end user is a lot of fun. The back end is so intuitive even a baby with the proper training and incredible motor skills could update a wordpress site.

(entry made by Joshua Unseth @ 4:24 pm on April 20, 2008) | 10 Comments
Contact Us junsethatgmaildotcom
My Google Pagerank The Brown Spectator Uses Wordpress

Site created by SpiderMarket