Friday, December 21, 2007

XML error on swapping blog and post title on new blogger

UPDATE: This hack is no longer valid as you will not be able to add it to your blogger template.

When you search for a post in a blog, say, with google, does the search result shows the title of the post? Or the name of the blog? If you say the latter, which is the default condition for blogger, then you'll need to swap the blog title and the post title on your blog.

Jacky Supit, on his blog, posted New way to swap Blog Title and Post Title on New Blogger.

What is this, exactly? To put it simply, it's turning this:
Before
Into this:
After
Now why would anyone try to do that? One might wonder. It doesn't seem to worth the effort. However, this little change can mean a lot. Putting the title of the post before your website title means that when people search for something and google returns your site, the title of the page presented to the user will not start with the title of your site. Which in my case would mean, because of the title's length, it'll take up most of the space available on google search to show the title of the page, like so:
A Bad search result.
Which means that the user would less likely to click on it because they don't see the title of the page representing the topic they'd want to see. Not only this is SEO, this is just common sense.

Now, to remedy this, you'll need to swap the titles. To do that, you'll just need go to your blogger dashboard, go to template > edit html. You will then need to select expand widget template, and then look for:

<title><data:blog.pagetitle/></title>

Like so:

That single line is the only thing you'll need to replace. However, the hack to achive our purpose, is not that simple. The code is provided on Jack Supit's blog post, however, some users (like me) has reported that it returns an XML error, like so:
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Open quote is expected for attribute “{1}” associated with an element type “cond”.
So, after a bit of investigating, the code apparently contains some minor bugs. I think it's due to blogger's habit on changing punctuation marks. A little tweaking, and I managed to get the code to work on this blog. Here's the code that I end up using.
<b:if cond='data:blog.pageType == "item"'>
<b:section id='swaptitle'>
<b:widget id='Blog2' locked='false' title='Blog Posts' type='Blog'>
<b:includable id='nextprev'/>
<b:includable id='backlinks' var='post'/>
<b:includable id='post' var='post'>
<title>
<data:post.title/> - <data:blog.title/>
</title>
</b:includable>
<b:includable id='commentDeleteIcon' var='comment'/>
<b:includable id='status-message'/>
<b:includable id='feedLinks'/>
<b:includable id='backlinkDeleteIcon' var='backlink'/>
<b:includable id='feedLinksBody' var='links'/>
<b:includable id='postQuickEdit' var='post'/>
<b:includable id='comments' var='post'/>
<b:includable id='main' var='top'>
<b:loop values='data:posts' var='post'>
<b:include data='post' name='post'/>
</b:loop>
</b:includable>
</b:widget>
</b:section>
<b:else/><title><data:blog.pageTitle/></title>
</b:if>
If, somehow blogger decides to change some marks, here's a txt file of the code that you can download.

After that, just save the template and go see if it works.
The title hack only changes the titles of post pages, and not your main page.

Read the full article......

Wednesday, December 12, 2007

Define Friendship . . .




Define friendship, Charlie Brown. I think that simple question is not very easy to answer. For one, what kind of friend are you? And how do your friend befriend you? That would weigh in to your evaluation of the definition of friendship quite heavily. Don't cheat. Everyone has come up with their own definition. What's yours?

Charles M. Schulz, he was one lucky guy. Getting that strip was the best thing that ever happened to him.

I drew this the other day. I made the original PNG file available for download if you want to examine my inking up close. There's good detail captured in the scanning process. I used Photoshop to clean out my sketch lines and fix some weird scaling problem I didn't realize I have until I put this two drawing together in photoshop. Believe it or not, the Charlie Brown part was on the right side of a landscape paper, while the left occupies another sketch. The Lucy sketch was on the left side of another landscape paper while on the right side was the sketch of the dancing snoopy.

Peanuts (C) United Features Syndicate. No parts of this publication may be reproduced without the author's permission.

Read the full article......

Good ol Charlie Brown



It's Good 'ol Charlie Brown.

Charles M. Schulz, . . . I still miss him.

This is the early style Charlie Brown. I'm not sure why his head is very oval but I can assure you, that's how oval he looks in the book I'm copying this from. Just that particular drawing. The others aren't very oval.

I drew this the other day. I made the original PNG file available for download if you want to examine my inking up close. There's good detail captured in the scanning process. I used Photoshop to clean out my sketch lines.

Peanuts (C) United Features Syndicate. No parts of this publication may be reproduced without the author's permission.

Read the full article......

Composition in Red and Blue




It's Composition in Red and Blue.

Made with blender.

I can't believe I forgot to post this here....

Read the full article......

Monday, December 10, 2007

Lucy and Snoopy


Snoopy is the only character due to his naivete and purity, cannot be crabbied out by Lucy.

Charles M. Schulz, thru snoopy, has taught us the value of positive thinking, which is what we desperately need these days in the condition the world is in today.

I drew this the other day. I made the original PNG file available for download if you want to examine my inking up close. There's good detail captured in the scanning process. I used Photoshop to clean out my sketch lines. Then frame and text bubble the thing out in Inkscape.

Peanuts (C) United Features Syndicate. No parts of this publication may be reproduced without the author's permission.

Read the full article......

Dancing Snoopy



Snoopy dancing his happy feet. :)

Too bad Charles M. Schulz passed away just before the world turned upside down. We could use some of his insights to make us feel happy again.

I drew this the other day. I made the original PNG file available for download if you want to examine my inking up close. There's good detail captured in the scanning process. I used Photoshop to clean out my sketch lines.

Peanuts (C) United Features Syndicate. No parts of this publication may be reproduced without the author's permission.

Read the full article......

Composition in Lines and Brown




PLEASE PLEASE PLEASE PLEASE see this not in regular view, not in full view, but download it and see it zoomed to 100% in in your viewer of choice and enjoy the details on this thing. See only parts of it, and never see it as a whole.

These lines are mathematically generated in ubuntu then cleaned up in Photoshop.

Read the full article......

Sunday, December 09, 2007

Linus and Snoopy




Happiness is a warm puppy and security is a thumb and a blanket.

So, I decided to color these two. Digitally. The paper background made it look natural, I think. There's no way I could color something like this in real life. The ink would go runny I think and I have to go out in my ninja suit and throw some shuriken at it. Please see it in full resolution. I love the dirty details on this thing, this should be printed to a billboard and put in a living room to enjoy how the ink and watercolor is spreadly soaked on the paper. You know what I mean.

We are in badly need of another Charles M. Schulz because the world today is too cold and insecure. . . .

Peanuts (C) United Features Syndicate. No parts of this publication may be reproduced without the author's permission.

Paper background is from [link] 's [link] .
I think this is the best paper stock ever existed in deviantART.

How do you make those links to other DA account with the icons? Do you know? Mine turns out linky links style.

Read the full article......