Posts in the category "Site" and its subcategories.

Very cool comment links for no one to click!

I installed the brand new Per Post Comment text plugin. Now I can have any kind of text for the comment link instead of the “boring” Comment?. Very nice.

Oh, dammit. Of course, cause the information is stored in the Custom fields, they will show before the post because I have other kinds of custom fields that need to show…

Thinking if I should make a category for WP… I think I should.

[edit: Nov 11] Had to remove the nice comment links because I wanted to try Alex King’s Since Last Visit plugin (indicates new posts and comments with a tiny image) — couldn’t get this to work. [/edit]
[edit: Nov 18] Installed Get Custom Field Values from Coffee2Code, so now I can choose which custom fields to show and which can be used as actual meta data. So, Per Post Comment text is activated again. [/edit]

Let there be flocks

Now my blog is added to the blog list. I was wondering what the 2 new visits were… :mrgreen:

I had to write something because the update date (on my link in the list) is “Thursday, 1.1.1970, 02:00”. That’d be quite an accomplishment…

Now I gotta catch some shut-eye so I won’t get completely lost when I venture to the project meeting at the University of Technology (eek, engineers).

Fearing the flocks

Getting the domain working has made me blog-crazy.

I did against my nature and applied/reported my site to a blog list. I’m always saying that no one reads my blog but then again, I don’t know how I’d react if someone did. On the other hand, it’d be nice to get comments on some of the entries that have something to say.

Now I’ll just wait and see. A brown paperbag ready.

The RSS feed links are at the bottom, by the way. :) (in the application I wrote I know zilch about those but I dug the urls from the depths of source code)

Cleaning out my closet

*sweeping with a big broom* I’m deleting the Movable Type install. Instead, I’m installing a nightly build of WP to play with. So exciting!

HURRAY!!!

The domain is working to the right direction!!!
*does a little dance*

Is ‘all things me’ a stupid name for a blog?

Layout worries revisited: The solution

First of all, Happy Mulder’s Birthday!! He’s 43 today. Chris Carter, whose b’day it really is, is 48.

Now that I’m going crazy with formatting my code snippets and doing tiny icons to appear in the bottom right corner of the snippet box, I’m going to post a summary on the layout trick I learned in an article at A List Apart. The basic structure of a page is

<div id="wrapper">
  <div id="container">
    <div id="content">
    </div>
  </div>
  <div id="sidebar"></div>
  <div id="clear">&nbsp;</div>
</div>
<div id="footer"></div>

I.e. container, sidebar and clear-div go inside the wrapper. Clear-div makes sure the footer doesn’t clash with the menu.
Then, in the css part you specify

#container {
  width: 100%;
  float: left;
  margin-right: –menu widthpx;
}
#content{
  margin-right: menu widthpx;
}
#sidebar {
  width: menu widthpx;
  float: right;
}
#clear{
  height: 0;
  clear: both;
}

This places the menu on the right hand side.

Plugplugplugplugin!

I installed ScriptyGoddess’s Next/Previous link for archive pages. Also put a little PHP logo in the bottom right corner of the Php code bits I have. If I ever have anything else (I’ve been meaning to put a CSS thing), I’ll do logos for them too. Also, the red bits are the ones you (definitely) have to change.

Bah, this article got me excited that YES it’s possible to assign two classes to an element. Well, in the comments it said that IE doesn’t handle it well. Have to test that out though.

[edit @ 23:18] Now I’m going to install Service Pack 2 (Durand’s recommendation, I’m holding you responsible if something happens!!! :wink: ). Wish me luck. Good bye cruel world!! *dramatic exit* [/edit]
[edit] I didn’t [/edit]

Tweaking the calendar

My calendar didn’t have a link to the current month, so I added it. There’s a function called get_month_link(year,month) which returns the URL to a monthly archive page (not the link). So, I put it in some <a> tags:

<caption><a href="'.get_month_link($thisyear,$thismonth).'"><img src="'.get_settings('siteurl').'/image location/'.$month[zeroise($thismonth, 2)].'.gif" /><img src="'.get_settings('siteurl').'/image location/'.date('Y', $unixmonth).'.gif"></a></caption>

Of course, if you don’t have images in place of the original texts, you just put the link part around what there is in the <caption> of the calendar table. Basically it’s

<caption><a href="'.get_month_link($thisyear,$thismonth).'">whatever you do to get the month and year</a></caption>

Nutty Professor Part 2

Doh… sometimes I’m so clever I amaze myself. I’ve kept this page “in the dark”, waiting for the domain thing to get settled and start working — which has been a sloooow process. I just realized I can put a link to this page from the index page in my current space, be it an ugly address and not a pretty domain (well, I’ve lived with even an uglier address since this January… and a little more bearable since 1997…). Anyway. Welcome to the new all things me! Hope you like the new layout — I know I do.

Many of the links (not blog related) don’t work yet because I’ve set up subdomains which need the domain working to work themselves.

Word of the Day TO BORK — to fail, to mess up, to damage irreversibly; be borked

Ironing and folding and sorting by date

I added the Nicer Archives code snippet from WP Wiki. I tried to use the “upgraded” versions of it (from Weblog Tools Collection) but they borked — big time.

When you enter the page, it shows the posts of the current year. Then you can sort the posts by date, title, or category; ascending or descending; and from all years or one year at a time (there is only one year, for now). The original script had a possibility sort by author but because there’s only me, I commented it out.

Time format is date.month.year.

On to the archives »

The calendar showed as January 2004 so I started to look for a way to remove it. Easier said than done. Well, not really, but I didn’t think of echoing the variable in my if-test to see what it’s out put was. This is what I wrote (first):

<?php $thispage = $_SERVER[‘HTTP_HOST’].$PHP_SELF;
    if ($thispage != “www.mypage.xxx/blog-folder/pagename.php“) { ?>
     <!-- CALENDAR -->
     <li id=”calendar”>
        <?php get_calendar(); ?>
     </li>
<?php } ?>

http_host + php_self return the url of a php page a without the http (as that’d be the protocol)

Then I tried what $_SERVER[‘REQUEST_URI’] does and it echoed the path without the host. Nifty. Thus, I changed the code to

<?php $thispage = $_SERVER[‘REQUEST_URI’];
    if ($thispage != “/blog-folder/pagename.php“) { ?>
     <!-- CALENDAR -->
     <li id=”calendar”>
        <?php get_calendar(); ?>
     </li>
<?php } ?>

[edit: Nov 22/Dec 15, ’04/Jan 5, ’05] I had an oddly titled post which messed up the archive. Well, not exactly *mess* but because it had an less-than sign at the beginning it was archived under L, but first alphabetically. After some testing, I figured out how to prevent this. From the WP Wiki I found a function sanitize_title_with_dashes which I used in the archive code, this is in the function archive_header: This worked when my odd titles included only one starting with A. But when there was one with D, I noticed the code didn’t work. Why? Because it compares the first letter if the current title to the previous one and the query sorts the odd titles at first. Well, I took another approach to this. All odd titles will be categorized under # (I know it means ‘number’ but here it’s just some non-alphabetic character). A new try, a * I had in one of the titles wouldn’t be recognized, probably because the line starting with preg_match matches only letters and numbers, so I changed that to match any one character (at the beginning). Hopefully this will prove working with my strange titles…

elseif ('title' == $orderby) {
preg_match('/.{1}/i', $post->post_title, $match);
$thisletter = ucfirst($match[0]);
if (!ctype_alpha($thisletter)) { $thisletter = '#'; }
if ($thisletter != $previous) {
$output .= "<br/>".$thisletter;
}
$previous = $thisletter;

The highlighted part checks if the first letter of the title is NOT an alphabetic character, if it’s true that it’s NOT one, the letter will be a ‘#’. Now all the odd titles will be grouped at the beginning of the list of titles (or end if the order’s descending) . [/edit]