Binary Blue 1.1.0 Customizations & How to get your link categories to show..

April 3, 2006

The Count has done it again with another GREAT release of his theme Binary Blue. I thought I would share how I’ve customized it to fit my blog.

This version has several things fixed that I was looking for, including improved localization via a field in the options tab. I haven’t found all of the goodies yet. I haven’t even experimented with the widgets yet. But, I did need to get my customizations back into my blog.

Step 1 – Replace stock images
The first thing I do is restore my image replacements. For example I have custom schemes\BB-Images\bg404.gif, schemes\Blue\headlineBg.jpg, and schemes\Blue\bg_3.jpg (now correctly referenced as topbanner-base.jpg) files. I suppose I should create my own scheme, but for now replacing the files is just quicker and easier. And Yes, MY binary code in the background actually says something. The first one to figure out what gets their blog added to my blog roll. I was dissapointed that The Count’s binary background didn’t seem to translate to characters. But who knows, maybe he’s tricked me by not using ASCII. :)

Step 2 – Restore the Link Categories

The other Big visual difference between my blog and The Counts, is that I make use of my Link categories. The Count has two categories hard coded into this theme, BlogRoll and LinkRoll. I break mine down more, for instance, you can see the links to software I use and to sites I manage. Personally, I think the Buttons section should also be included in the links section, but The Count might not like inserting button records in people’s link tables. So, I can understand why he did it with a Widget.

I’ve implemented the link categories in the Binary Blue theme (Hmmmm almost called it “Binary Blues” which also is a good name) by replacing the entire contents of the link roll block. You can find that by choosing Manage>Files and under Other Files enter wp-content/themes/WP-Binary-Blue-v110/blocks/block_linkroll.php

After making a backup, I replace everything there with the following:
[php]
// block_linkroll.php
// The entire contents of this file have been replaced.
// The purpose is to allow multiple link categories to be displayed in
// in the on the right.
// Brian Layman 2/APR/2006 www.TheCodeCave.com

// Create a query that gets the link categories are pointed to by existing link records
// "Select DISTINCT" is used instead of a "where exists(" because I had compatiblity issues
// with the older version of MySQL running on my server.
// NOTE: The Blogroll category is excluded by name as that is how it is referenced by the theme.
$cats = $wpdb->get_results(”
SELECT DISTINCT cat_id, cat_name
FROM “.$wpdb->linkcategories.”,”.$wpdb->links.”
WHERE cat_name <> \”Blogroll\” and cat_id = link_category
ORDER BY cat_id “, ARRAY_A);

// Now iterate the result set
if ($cats)
{
// Access each line of the result set as an array
foreach ($cats as $cat)
{
// This li groups the entire roll up section. I give each category a unique name.
// In this fashion, they are all independent.
echo “

  • “;

    // This is the title bar content I did not include any title as anything I put here
    // would not be localized unless Count Null’s files have a generic phrase that would work.
    echo ”

    ” . $cat['cat_name'] . “

    \n”;

    // Again, the actual list of links gets a unique ID from the link category id
    echo ”

      “;
      // Now I let WordPress do the work of displaying each category.
      // One could pass other parameters here too to override default display options.
      wp_get_linksbyname($cat['cat_name']);
      echo ”

    “;
    echo “

  • “;
    } // foreach
    } // if ($cats)
    ?>
    [/php]

    That displays all of the link categories in seperate boxes, omits the blog roll (so it can be its own widget) and omits any empty link categories. Each category rolls up on its own and I rather like the result. Moving the Link Roll Widget should move all the links, but I’ll get to testing that later. I still have more customization to do.

    Step 3 – Fix the header
    My last step is to customize the header file. You can reach that by choosing Presentation>Theme Editor and then selecting Header from the list on the right.

    Part 1
    Now every blogs header will be different. And the changes I make to mine should not be the change you make in yours. Plus, the header is where the meta tags are stored and many people will spend many wasted hours debating whether things like including a “Revisit-After” tag at the top of your blog does anything or not. You will also here a good bit of discussion on the HTML to CONTENT ratio. In short, your code should be short and your posts long. So, these are the settings that work best for me. It should not be surprising that The Count has different preferences. Who’s right? I don’t know, because the answer will change over time. Tags like the “Robots”, “index,follow” were needed till 1998, and then stopped being used by most search engines. Are they being observe again? I doubt it, but I think the answer really depends upon the executive boards at the big search engine.
    In short, I chose to “waste” a few extra bytes here and there by including a couple of extra tags that may make my code “unprofessional” as far as the META-TAG and SEO gurus of the world are concerned. Who knows, that wasted 1K of download, might allow my site into 2 more spider engines. And with the way I ramble on, my content ratio is NOT a problem.

    OK. Speech over. Here are the old meta tags starting with the line containing “publisher” and ending with the list “ [html]






    [/html]

    Here’s my new code:
    [html]











    [/html]

    In short, I’ve kept the robots line even though it is really only supposed to be there to restrict access if you don’t have the ability to customize robots.txt. In the past at least one major search engine defaulted to Index,nofollow. So, it could happen again. I’ve also kept revisit-after. Again, some new search engine out there might start using it. That’s less likely. Again, this line is here to restrict search engines, not encourage them. You can’t say Revisit After 1 Minute and have google at your doorstep all day long.

    I’ve also put in 10 keywords. Some new search engines might, maybe, look at the list, determine it is short and therefore potentially valid.

    I’ve changed the author, publisher and copyright to me, no offense meant, Carsten. Notice that I have left the “Generator” (not shown here) in the header. In this fashion WordPress and Binary Blue both get some credit in the header.

    Lastly I added several of the Safe Surfing headers so that people with filter software can still get to my site. Don’t copy mine, go out and get ones that are appropriate to your blog. Mislabeling your site is not the best thing to do. My settings say I am safe for everyone, there’s no swearing, and I allow user content (comments) but it is moderated.

    Part 2

    I do make two more changes to the Header file. These are even more optional, but I like them.
    First, I don’t like calling my blog page “blog” that seems rather mundane. I call it “Cavern Entrance”. Now isn’t that better?
    Also, I like to be able to reach my post page directly from my blog’s main page. So, I have added a link to do just that. It is only visible if the logged in user has the rights to create posts (aka only I can see it).

    Here is the old code – I’m replacing the whole topMenu div
    [html]

    [/html]

    Here is the new
    [html]

    [/html]

    And voila! I have my blog back!

    Share and Enjoy:
    • del.icio.us
    • Fark
    • Reddit
    • Digg
    • DZone
    • email
    • Facebook
    • FriendFeed
    • Google Bookmarks
    • Netvibes
    • Ping.fm
    • Posterous
    • Slashdot
    • StumbleUpon
    • Suggest to Techmeme via Twitter
    • Technorati
    • Tumblr
    • Yahoo! Bookmarks
    • Add to favorites
    • Blogosphere News
    • HackerNews
    • Identi.ca
    • LinkedIn
    • MySpace
    • Print
    • Yahoo! Buzz

    Comments

    5 Responses to “Binary Blue 1.1.0 Customizations & How to get your link categories to show..”

    1. CountZero on April 6th, 2006 1:40 pm

      Brian, thank you very much for your great article about further BB customization. For your interest: the binary digits background of the 4null4.de basic scheme is the binary value of 404 ;)

      Unfortunately I’m awefully busy at the office these days, so I’m a little lacking support both on the newly created forum and the static BB post’s comments. This will get better again next week, I hope ;)

    2. Brian on April 6th, 2006 2:56 pm

      *smacks head*

      Gee Whiz, I should have thought to look for that straight off the bat!

      I was going to jump in with an answer for that guy’s recent comment delema, it’s not at all hard at all to do, but I didn’t want to be seen as “taking over”. So, I kept silent. :) Professional courtesy, you know…

      If you don’t mind me throwing in an answer or two as the questions come up, I’d be glad to do so. Otherwise, I can just sit back and watch :) .

      Cheers!

    3. CountZero on April 10th, 2006 2:44 pm

      oh, I’d be happy to see the users answering their questions among themselves, as it indicates a true growth of a small community around the theme suite ;) so don’t hesitate, I’m really glad to have some helping hand around for this question – answer game.
      The office is still very busy these days, and this won’t improve before mid-may when I’m going on vacation for about three weeks (egypt – my first vacation for more than nine years now) ;)

    4. Brian on April 10th, 2006 3:02 pm

      I WILL expect to see pictures!

      Egypt, Germany, and Greece are three places I want to visit someday. I’d love to visit England sometime as well, but I confess the other three come first.

    5. CountZero on April 12th, 2006 3:30 pm

      sure ;) the friend of mine with whom together I’m flying is a great photographer, so I expect lots of good pictures to be taken. Well, as a German I can tell you which cities are worth a visit, but I haven’t been to Greece either ;)

    Got something to say?





    Who is Brian Layman

    I am a WordPress expert living in North East Ohio. I am part of the ever expanding Open Source Internet workforce. I am able to stay at home, with my wife and four home schooled kids, while working as the Senior Developer for b5media - a blogging network that has hosted over 300+

    I co-host the NEO WordPress Monthly meetup. I am the board chair of our local church. I host and have provided development services for clients such TV personalities Rhett and Link as well as corporations such as Borland International.

    In my spare time I try to sneak out, canoe, mountain bike and camp as often as I can. Sometimes I also defend the earth against zombies and aliens, but usually not during the camping trips.

    Services Provided

    In providing hosting, email, theme and plugin development to my clients, I function as a single point of contact answering to the needs of their expanding sites.

    My service portfolio includes but is not limited to WordPress hosting, optimization, theme development and custom plugin creation. Community creation via vBulletin, Ning and BuddyPress and bbpress

    I also am well experienced in site conversion, transition and merges. To clarify this, website technologies change and giving up your data is not an option. I have transitioned literally hundreds of sites from one platform to another.

    viagra 50 mg indian version of viagra cialis cheapest viagra india online viagra cost comparison viagra for sale without prescription generic tadalafil online buy viagra in korea indian levitra discount cialis online viagra prescription over the counter vardenafil cialis otc cialis no rx cialis 30 mg viagra ranbaxy buy levitra in uk cialis low price tadalafil tablets 10mg cheap viagra fast shipping cheap generic levitra cialis discount cialis 5mg viagra discount prices buy levitra without prescription vardenafil online generic levitra canada viagra professional price cheapest sildenafil citrate indian version of cialis viagra lowest price viagra online prescriptions tadalafil 10mg levitra over the counter levitra prescriptions online buy viagra without a prescription liquid tadalafil citrate buy viagra prescription online tadalafil 20mg india india viagra generic sildenafil citrate for sale vardenafil hcl 10mg cialis discount coupon buy levitra australia viagra over the counter in canada liquid sildenafil tadalafil price comparison viagra cost in india cialis mail order sildenafil sales buy vardenafil cialis offer cheap vardenafil generic cialis no prescription viagra tabs generic indian names viagra price canada vardenafil hcl 20 mg generic viagra without prescription viagra by scilla biotechnologies buy generic cialis free viagra viagra over the counter viagra pills kamagra 100 mg cialis from india tadalafil australia tadalafil 20mg tablets tadalafil soft tabs sildenafil pills viagra no prescription required generic viagra paypal tadalafil online indian viagra cost tadalafil online pharmacy generic soft viagra sildenafil soft tablets viagra generic names buy viagra in ireland levitra without prescription levitra online purchase cialis pill indian tadalafil levitra 5mg cialis cost per pill tadalafil oral jelly sildenafil no prescription vardenafil price generic cialis 10mg cheap cialis no prescription order sildenafil citrate indian generic viagra blue viagra buy cialis usa apcalis 20mg tablets viagra overnight delivery sildenafil india purchase viagra without a prescription viagra prescriptions order viagra without prescription viagra with no prescription levitra for sale purchase viagra canada discount levitra viagra 200mg cheap viagra 100mg cialis overnight delivery buy sildenafil online viagra made in india cialis tabs 10mg viagra indian pharmacy viagra for sale in ireland viagra uk prices buy viagra in europe generic cialis india levitra online viagra for sale india buy viagra in dublin generic cialis soft tabs viagra 50mg cost generic sildenafil 100mg tadalafil generic viagra super active 100 mg kamagra 100mg sildenafil 100 mg tablets cialis no prescription viagra low price online cialis suhagra tablets buy cialis daily use tadalafil sample cialis prices viagra prescription online buy cialis pill kamagra from india cialis online levitra mg vigora india vardenafil 10 mg sildenafil citrate 100mg buy viagra in india buy cialis professional viagra in india buy viagra in singapore generic revatio viagra substitutes sildenafil canada viagra no script cheap kamagra viagra retail price cheap lovegra order viagra uk buy cialis in mexico viagra prescription price purchase cialis online without prescription online cialis prescription ranbaxy caverta buy viagra in hong kong sildenafil price cialis mastercard buy viagra in england viagra mail order canada cialis tablets for sale order cialis cialis soft tabs generic levitra india tadalafil prices cheap sildenafil citrate tablets cialis online prescriptions cialis 5 mg daily levitra prices prescriptions viagra viagra over the counter alternative cialis 20 mg tablets cialis generic india cialis prescribing cialis 20mg daily sildenafil 50 mg viagra drug prices tadalafil generic india cialis sale viagra prices buy viagra 50 mg levitra pharmacy buy viagra generic viagra prescription drug cialis daily cost vardenafil uk viagra soft tabs online buy viagra super active cialis 10mg price 25mg viagra silagra 100mg online viagra prescriptions cialis prescription cheap cialis india revatio 20 mg indian equivalent of viagra tadalafil india viagra capsules cheapest viagra buy cialis without prescription tadalafil overnight cheap tadalafil online purchase viagra online no prescription