Creating the Kazology Blogroll – Part 3

After getting the suggested changes to the PHP code courtesy of Andrew at Geeky Weekly. . . I spent a few more hours playing around editing the Powerblogroll PHP code – down in the area below the big “DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING” remark….. (insert screen capture of the really nasty errors here – I didn’t even know my blog spoke Japanese!)

“DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING”

Code Hacker Tip #3,298 – when editing code that you have no idea what will happen… always, and I repeat, always, keep a copy of the original code in a different directory to move back real quick when you hose everything up! (I saw an article on how to create a local copy of Word Press for experimenting on… which would be really cool, but again… I need the Ultimate Dummy directions for something like that, so all my changes go out live to see what happens being prepared to make a quick reversal if it is really bad. – get back on focus here George)
I wonder different times as I play with plugins, and reading the FAQ on the authors web site, or the “readme.txt” file with the plugin in, do they have any idea how confusing this is for many people?

Hey after all I took Fortran back in college!

While I joke about being completely illiterate, I do have some degree of familiarity with code and at least vaguely understand the principles, (Hey after all I took Fortran back in college!) but still this is difficult. So when an author documents, or replies to an already confused person trying to implement their plugin by just writing “just add < !-YouAreDense$&%20##.PHP> and it will work”, what I think they do not understand is

a) If I am having to write you for help I am obviously already confused
b) that I have no idea WHERE to add this
c) The code is maybe garbled since it was converted to HTML and back again inserting bogus characters into the “very simple statement to be added”.

I think this is no great revelation here, anyone that has never written a plugin or widget probably understands what I am talking about. So authors, please, comment your code carefully, then in your instructions show related code so we know where to put that little line… Even in one plugin you are to “change the option from false to true” to do something else… how about adding “This is easily done by removing the “remarks code” “//” from the line you want to activate and adding it to the line you wish to de-activate.” Maybe, you argue, if the user does not even have that degree of knowledge they should not be doing this… I disagree. I am willing to try, but need more hand holding to get me started. Maybe some day I will learn this and would not need to refer to a step-by-step direction, but until then help us out!

Getting to the conclusion – eventually: Taking the offered lines of code, figuring out where to replace them (another aside… drat I am never going to get to the end… the author really did do a good job of explaining, even adding the line number to be replaced. That helps, IF I am using a “real PHP code editor” that lists line numbers, but if I am using Note Pad to edit… I got no line numbers! See how this is all confusing to newbies? Anyway… I compared the suggested code to the original, figured out where it went, converted the mangled characters to the proper syntax and saved the modified version. I uploaded it, and boom, trashed web page. Oops, put back the original, check changes, save again and upload again. Success!! A great looking web page, ordered the way I want it, not how it want to. Went into the Admin Panel again, changed some links around and checked the results…ooops, nothing again. What the #$@%^! is going on. In the Admin Panel for MyLinkOrder when I selected a category to order I was getting extra entries showing. I carefully checked the listing of entries, opened each one up, verified each one had the correct category assigned and tried again… No luck. I kept playing around for a while, I finally found that I had to open each blogroll entry up, select the proper category again, even if it looked correct, save it, then tried again. Success! Only the proper links assigned to a category appeared in the “order links here” field. I set the order the way I wanted them to appear, updated, and went out to view the BlogRoll Page for the 257th time. TA-DA!! I am one happy camper now! It is a work of art, a sight to behold (or is that site to behold), cooking with gas, better ‘en sliced bread. I pwned it (honestly I have never figured that one out.) W00T W00T.

TA-DA!! I am one happy camper now! It is a work of art, a sight to behold!

Check it out!

Now… since this is so long, I think I am going to try out the “continued on page” plug in…. cross your fingers!

Until the final link opens,

It’s 23.0 °F / -5.0 °C degrees outside, what should we do today?

It’s a typical Michigan Saturday afternoon in January. A light snow is falling, there is a reasonably stiff wind blowing (8 mph), it’s 23 degrees (F) and the air is somewhat damp so it goes right into your bones. So, what should we do today? The answer to this almost seems so obvious as to be ridiculous – we head outdoors and go to the Plymouth Ice Sculpture show of course!

Every Year the town of Plymouth Michigan holds the “Plymouth International Ice Sculpture Spectacular” and is billed as “The Oldest and Largest Ice Sculpture Show in the World“. Quite a claim there I would say.

Never having been to any other ice carving shows I cannot dispute this, and guess I really do not even want to do so.

This seems to be another new annual tradition – that of freezing our fingers, toes, noses and anything else that lives outside of several layers of clothing. We also went last year and the temperature was even colder with wind chills in the negative numbers. (January 19-21, 2007 it was 15.1 °F / -9.4 °C ) Apparently it was so cold we did not even attempt to take pictures since I cannot locate any in the archives! I can only find 2005 and I think we missed attending in 2006.

For some reason in the past we always went in the evenings, which is nice since the carvings are lit with colored lights, but did not really see people working on the carvings. We went early enough this year to see the artisians entered in the competition still at work (it is timed). It was pretty interesting watching some of the techniques and “tools” used.

  • standard electric chain saws (from 12 inch up to about 24 inch bars)
  • chisels, from about 1/4 inch or so up to several inchs wide with handles two plus feet long (modifed wood turning chisels?)
  • electric drills with a wide variety of bits
  • brushes (hand – car window – paint – scrub -and about anything else)
  • small hand held and large “wand type” propane torches
  • and our favorite, the regular old steam iron as used on clothes (remember those were used a lot before “permanent press” came along. I am told you can still find these in antique stores.) Now used by the craftsmen for smoothing the surfaces and giving a very nice glossy finish.

Paul has already mangaged to get some photos out on the web site so you can take a look at those.

Hopefully I will get mine posted in the near future also, although his photos are usually better and more comprehensive than mine anyway.

After walking around for a hour or so we decided some food was in order so we hit a nearby Thai place for some hot – of both the temperature and spicy varieties – food.

The feeling returned to our toes about the time we were done eating, and so we ventured back outside to retrieve the car and head home.

Until the final snowflake falls in Michigan,

Mini Post A new widget

Playing around with different widgets. ????? ???? This is called “Mini-Post”. Hopefully you can tell why.

Update: You can’t tell – because it isn’t working. There seems to be a conflict with the plugin and another one somewhere. This is supposed to appear as a small text item in the right column, it does, but seems to destroy all the formatting on the regular posts so I have turned it off.

NAIAS – “The Show”

Every year Detroit hosts what is called “The NORTH AMERICAN INTERNATIONAL AUTO SHOW” or “The Greatest Automobile Show on Earth”, more commonly know as “the Auto Show.

For all the hoopla the tickets are pretty boring!

    Having last been to “the show” a couple of years ago I was hesitant to
    a) battle the traffic
    b) find parking in downtown Detroit
    c) go into downtown after dark….
    d) battle the traffic, then once having fought through the traffic, found parking and survived the walk to the convention center
    e) fight the crowds inside of Cobo Hall and
    f) not swat any kids that seem to think because they are “just little kids” they have an inherent right to push in front of you whenever they wish, and finally
    g) not call out the parents for allowing that behaviour.

In spite of all that, the show is pretty good. So after a hiatus of several years we decided to try again. This time we went later in the evening with the thought maybe the little goobers would be tired out from a long day and already gone home to whine over something there.

Well, either the attendance at the show is way down this year, or going in the evening has definate advantages because we got good parking on the Cobo Hall roof.. only about 50 feet from the door actually. But even better the exhibition hall was fairly empty and got more so as the evening went on!

Most of the curtain climbers had gone home for their dose of ritalin, so it was really pretty quiet. This also revealed the huge security presence in the hall. There were flocks of every imaginable type county sherrif’s, city police, town marshall’s, private security and probably some undercover agents. They were all hanging out or milling around in groups.

What does all that mean? Well for one that we definitely had a better time than the previous visit. We were able to get up to the cars and see them and also get into most of them without any delays longer than one or two persons.

There were a lot of cars, with “Green” as the theme. Including hydrogen power, diesel power, full electric, gas/electric hybrids, various “Smart” cars and so on. However for every environmental “Greenie” there were several “Meanies”… gas guzzling behemoths such as Toyota Tundra, Hummer, Dodge Ram, and other vehicles that suck down gas at the rate of a tenth of a gallon per mile = $.30 cents a mile for gas, NOT including operating expenses.

While there were hundreds of cars only a few were “picture worthy”. Actually it appears upon review the the photo downloads there was only ONE that was worthy! A great little Audi that we liked.

We did enjoy seeing the few concept vehicles and the new model introductions – didn’t get introduced to any new models though. My observation on that is you need to cough up the big bucks to attend the opening “Black Tie Gala” to see the real show theatrics. Once it opens to the general public I think they turn it over to a different group of persons to demonstrate.

Some favorites: Mini-Cooper “stretch” with a real (?) trunk in the back with double doors = a very small old fashioned panel truck – with the worlds largest speedometer! Acura, which would be a great step up from the Accord I currently use. More reasonably priced is the Honda Accord, but I have a problem with the dash.. it seems to “busy” and looks like the different design groups (instrument panel, sound, navigation, A/C) did not coordinate well.

And if I every hit the big lottery… just about ANY Ferrari . . .

It was fun, it is done, and will think about returning in future years when the time comes.

Until the last car is made in Detroit there are no more new designs left to explore . . . .

Setting up Zo’C PowerBlogRoll

UPDATE 11/16/2015: I think this is all gone now… cannot locate the web site any longer, and do not see the plugin on the WP site anymore.) I am using this pretty cool plug in to create a BlogRoll page. Called “powerblogroll and written by Zo’C. I had used it as a widget using the “widgetize anything” plugin, but decided to move it to a “links” page after it outgrew the sidebar. (Link to web site removed 11/16/2015 no longer worked and I could not locate web site any longer.)

I have seen quite a few questions on the authors web page about setting it up, and while there is some help, it seems there are still quite a few questions. I am certainly no programmer, but with several hours (!) was able to make a page work. Here is my quick guide in case anyone googles for help and happens to find this.

1. You need a “links.php” template. The template I am currently using did not have one included. So I used the Theme Editor in WordPress to look at the other templates I had downloaded to try out before. I found one with a “Links” page. (The “WordPress Default” theme has a “Links” page.)

2. I used FTP to make a copy of that “Links” page into the current theme I wanted to use.

3. I opened the new “links.php” page with the WP Theme Editor. I do not think I removed any code from the original template, only added four lines. The total contents of this page is now:

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

<?php
/*
Template Name: Links (Whatever you put here is what appears in your theme template list.)
*/
?>

<?php get_header(); ?>
<div id=”zoc_powerblogroll”>
<h2>Recommended Links:</h2>
<ul class=”zoc_powerblogroll”>
<?php wp_zoc_powerblogroll(); ?>
</ul>
</div>

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

In mine I only added the four lines lines in bold above which are:

<div id=”zoc_powerblogroll”>

<ul class=”zoc_powerblogroll”>
<?php wp_zoc_powerblogroll(); ?>

</ul>

in the code above.

Check the “Template Name: Links” line also. You can name this anything you want. This is the name that will show up in the WP Page Editor when you select the template to use.

Then I had to add the CSS to the StyleSheet page, again using the WP Theme Editor.

I just found a spot in the existing code and stuck this in:

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

/* This section begins the formatting for the BlogRoll Links Page */
.zoc_powerblogroll { list-style: none; }
.zoc_powerblogroll ul{ list-style: none; }
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

Actually this is not necessary if you do not mind the default “List” bullets (created by the “ul” code) in front of each entry. (assuming the template you are using has them.) In powerblogroll I use the setting to show the favicons and found also showing the extra “ul” bullet was distracting. This actually is what took me the longest to figure out.

That was it. I just used WP Editor, created a new Page, used the “Links” template, left the contents of the blank and it puts in the BlogRoll automatically. If you want to add text into the blogrollpage you probably have to add more CSS for something like “contents”… but that is all dependent on how the theme author wrote the CSS.

Now I am pretty sure that someone that really knows what is going on will say “you don’t need this in the code”, or “you don’t need that in the code”, or there are 32 better ways to do this. But I wasn’t getting much help from the web site, and so just experimented until I got it to work. If there is a better way I am happy to revise this, but until then you can try it this way.

Good Luck!

If any “real” plug in editors read this. What I would *really* like is to combine this plugin with another that would also order the links the way I want them. I do not like seeing “Ardvarks R Us” first in the blogroll just because it starts with “A”. There is another plugin that does this called “mylinkorder” which has manual sorting options. This can be found at . Unfortunately the two do not work together right now.

If you didn’t already know PowerBlogRoll can (Could) be found here: “z-oc.com/blog/powerblogroll” UPDATE: 12/14/2015 this is no longer working so I removed the link. You can try searching for this ULR though.

Since getting this working I have found another issue, which I think is unrelated to the changes above. I use another plugin to format the blog for mobile users. It is now showing the first page, as opposed to post, and it also reveals text in the BlogRollPage which is not visible when viewed with a normal browser.

Until the final WP PlugIn loses power,

BBSSS Beachs Buffets Sun Sand Shells

Holidays and vacations seem to go together. After we celebrated Christmas with the families we headed out for a little drive.
First stop was Lookout Mountain Georgia where we visited “Rock City”. I have seen the barns painted with “See Rock City” along the roads for years so finally decided it was time to see what it was all about. We made it in the evening for the “Fantasy of Lights” which they do every Christmas time. You can see the pictures in the album.
It was about as expected. Some very nice natural scenery and a lot of tourist stuff.

My curiosity satisfied we were on the road to the next destination, Florida’s “Emerald Coast”. Nancy had heard about the emerald green gulf waters and white sand and wanted to see for herself. We hit the coast beaches from Fort Walton across the pan handle until we turned towards Orlando.

We did not want to use a full day of a Disney ticket when we only had a partial day, so we spent time visiting some of the theme resorts. As they do for about everything, the Disney crew puts together some pretty nice resorts! They were decorated for Christmas so it seemed extra special. We also had tickets to see Cirque Du Soleil La Nouba. This was really cool. We have been to several “Cirque” shows and each one seems better than the one before.

Over the next two days we spent time in Animal Kingdom and Disney Hollywood Studios (new name for MGM studios.) Lots of photos, and a good time… even if it did rain a little the final day.

The other place we wanted to see was Sanibel Island. Nancy loves natural things, and shells is high on the list. We have been told about how great Sanibel is for finding shells so we wanted to see for ourselves and hopefully score some “hand picked” shells. We made it down to the island and out onto a number of the beachs. Unfortunately the weather had turned a bit nippy, and the wind was kicking up pretty good. We still managed to spend a couple of hours wandering up and down the shore line looking for “finds”. Since we came home with some pretty full bags of shells I guess it was a success.

We had some dinner at the local tourist spot “The Bubble Room” and then headed back off the island. After a nights rest we headed back towards Michigan, and got home about 2 am…. We had been concerned since we had heard there had been about a foot of snow since we left, and were not sure how we were going to get into the garage. It turned out that a mysterious neighbor had cleared the drive way already so we were able to pull right into the garage and hit the beds!

This is a pretty condensed version of the trip, but probably few people if any really want all the details.

Until Mickey and Minney fall out of love,