WordLog

A weblog authored by Carthik about the latest in the WordPress world.

Thursday, May 26, 2005

Headers, Lots of Headers!

Filed under: — Carthik @ 1:35 am

Header Images for the Kubrick based WordPress default theme were never easier to find.

Get yours now!.

I find a lot of S9y and a lot of all sorts of other blogs using Kubrick these days. I guess it is still “cool” for users of other blogging tools, since it wasn’t the default style/theme. I have seen at least one blogging tool for which it is (one of?) the defaults, too. So the gallery should be useful to all kinds of users.

Wednesday, February 02, 2005

Quicktags for Comments

Filed under: — Carthik @ 8:41 pm

Arvind reminds me that the comments template for 1.5 themes can use Quicktags for the comment-entry field. Makes it a lot easier for visitors to add links to their comments, besides other things.

Sunday, January 23, 2005

Gallery and WordPress in the Same Boat

Filed under: — Carthik @ 4:04 pm

The most comprehensive list ‘o links to tutorials and narratives describing how to get Gallery and WordPress working together.

I’m a hurry, so I’ll run along now. Hope that is useful, to someone.

Saturday, January 22, 2005

Private Posts In 1.2 – Hack

Filed under: — Carthik @ 3:32 pm

You can mark your WordPress posts as “Private” in addition to “Public”, “Draft”, “Password Protected” and such. In 1.2 the private posts are not displayed on the blog, not even to the author of the private posts, when she’s logged in. So they are like drafts which do not show up as such. I beleive that the behaviour is the same with 1.5, with Private Posts disappearing down some crack, so the only place they are listed in in the admin section for managing posts. I have been thinking about making it so that the Private Posts are only visible to the author of the post, when she visits the blog.

It’s already been done. Here’s the code for “Fixing Private Posts” and here’s my hat-tip.

I beleive some thought needs to go into why private posts are not displayed on the blog at all, and as to what their purpose in life might be, in 1.5 at least :)

Wednesday, September 01, 2004

Recently Played on Winamp.

Filed under: — Carthik @ 12:20 pm

MrBurnz.Org offers a way to display the most recently played songs in Winamp 5 on your WordPress Blog.

The instructions are pretty detailed.

Friday, August 27, 2004

The One About Seriocomic’s Collapsible Menus

Filed under: — Carthik @ 2:58 am

Seriocomic is one of the better designed WordPress weblogs in town. (No, you do _not_ click on the tab called “intercourse” on the horizontal menu. :) )

If you find the collapsible menu items in the menu on the right in his weblog, he provides details on how to implement the collapsible items. You have his permission and his stylesheet too.

Monday, August 23, 2004

Cellphones, Email and WordPress

Filed under: — Carthik @ 8:25 am

Dr. Dave has released Wp-keitai-mail* , a hack for posting articles to your WordPress powered blog using a cellphone (keitai == cellphone in Japanese). He calls it a plugin, but I think it’s not one, since it can be installed outside of your WordPress directory. A plugin is something that plugs in like a plug plugs into a socket. Excuse me if that sounds obvious, but a lot of the “plugins” out there are more like Appliances. You probably have to plug them in, but that alone will not get them to work. You have to read the manuals that come with the Appliance and probably add/tweak a few things. That said, wp-keitai-mail has a few cool features, and once you get it working, posting using a cellphone, or through email should be easier.

I wrote a tutorial on how to blog by email a while ago. Of course, if there is something wrong with the tutorial, you can can edit it quite easily, at the wiki. The WordPress way of blogging by email is very simple, but requires a cron job to check for new mails periodically. wp-keitai-mail does not need a cron job. It does need a few extra things though, but if you can’t do without moblogging, then go get it.

One of the other blog-by-email developments I have noticed is the improved wp-mail.php from John Blade.

It has all the abilities of the current wp-mail.php plus:

* Allows image attachments (posts inline)
* Checks if user email address is in the database (otherwise discards message)
* Allows other file attachments (zip’s, exe’s, etc)
* Fairly good cleaner for removing excessive line breaks

I should say that if it does all that it says, John Blade’s enhancement to wp-mail.php should be an useful addition to a WordPress blog.

Also of note is this fix for an error that seems to be quite common when using the blog by email feature.

* seen at BloggingPro

Thursday, August 19, 2004

Batch Edit Categories

Filed under: — Carthik @ 10:48 pm

Sometimes I need to sort and edit categories for my past posts.

says the LcF Weblog, bringing to light a useful hack by Stephanie Booth.

Batch Categories 0.9 is a useful hack for those of use who are obsessed with arranging and re-arranging things. You can reassign categories for a whole bunch of posts simultaneously, without having to edit each post individually. This can be pretty useful after you import your posts from some other system, or like I mentioned earlier, to just rearrange things a bit.

WordPress on PostgreSQL

Filed under: — Carthik @ 7:43 pm

Some prefer PostgreSQL over MySQL, and some hosts provide only the former, so if you want WordPress to run off of a host who provides only PostgreSQL, a preliminary version of Wordpress that uses the PostgreSQL database, instead of a MySQL database is now available. WordPress-Pg. Help the author by using it, and letting him know of any errors or bugs. You can also donate money through Paypal.

Monday, August 16, 2004

Upload and get the Thumbnail

Filed under: — Carthik @ 9:54 pm

WordPress allows you to upload images to your server, and generates code to link to the image, ie, to include it in your posts. It also generates a thumbnail, but does not produce the code for it, so you can use the thumbnail in your posts.

Here’s a solution that modifies the upload.php file that ships with WordPress so you also get some code you can use to include the thumbnail in your post.

This was originally posted in the forums. I still think it will be a useful addition to the WordPress package.

Sunday, August 15, 2004

Hack for using WordPress as a CMS

Filed under: — Carthik @ 11:59 am

~davos announces a hack for WordPress as a CMS, by which he means using WordPress for both your blog, and for a few static pages. The method involved using “include” to construct pages. All the pages (static pages if you will) are stored in one directory, and the navigation links are in a small file, and the hack goes about constructing your website by including bits and pieces as and when required.

The hack home page has links to what looks like useful documentation too. I wonder, though whether a more elegant solution to the problem of adding static pages is not being worked out right now, using the “static” post option that has been around in the latest WordPress code.

In any case, this hack should be useful for new users, who want to extend the capabilities of their v1.2 install. A small problem with extensive hacks like this is that the author of the hack may have to rework some parts when a new version of WordPress comes out.

Thursday, August 12, 2004

Mertner.Com Family Blogs – An Experiment In Multiple Blogs.

Filed under: — Carthik @ 10:42 pm

Over at mertner.com, I found an interesting solution to the problem of creating multiple WordPress blogs in the same Server, using the same codebase.

Allan uses symbolic links, a modified wp-config.php and a file with a few functions to create multiple WordPress blogs, presumably one each for his family members, running off of the same set of WordPress files. The simplicity of the solution is amazing.

Read more about his solution in his article on Choosing and configuring the engine for mertner.com. He explains the process in sufficient detail, and it should be possible to follow the instructions there to create multiple blogs on a server.

While at his site, please also read his article on creating static pages, which reads easy as a tutorial to use the Faked Folder plugin. It infact tells you how to do it for multiple sites. The Faked Folder plugin allows you to create static pages linked to your wordpress blog.

Ruben’s MultiSite hack is an alternative solution to the multiple WordPress blogs problem. To quote him :

The general idea is to make a directory named sites under the current wp install and then making both a multi-conf.ini file and the corresponding directories under it. This approach uses the host part of the HTTP request to figure out which sites/dir to use and parse the wp-config.php inside it. After it has parsed it, it silently include()s the main wp-config.php which will define the variables (host, db etc) only if they have not been defined already.

If you cannot wait till WordPress comes out with a version that supports multiple blogs, then you can use these hacks to acheive what you need.

New Purple Links

Filed under: — Carthik @ 12:43 pm

DenkZEIT has made available a new client-side implementation of Purple Links for WordPress. The reason this implementation is “New” is that Stevarino has a purple links hack that does the same for you on the server-side.

So what are purple links?
Purple Links, or plinks as Simon Willison calls them, are a way to provide linkable anchors to all the paragraphs and other sub-elements on a page. Just so you can link to say, the third paragraph in a page. This can be quite useful when someone want’s to quote what you said in a long article. A link to the appropriate paragraph or sentence might be more appropriate than a link to just the article, as the reader who follows that link can see the context of the quoted statement more easily. An example might be in order here. Here’s one:

Simon Willison says that Javascript could have a bright future.

(Note: Notice how the link takes you to the last paragraph, which I linked-to using the URI http://simon.incutio.com/archive/2004/05/30/plinks#p-13)

More on Alternating Comment Backgrounds

Filed under: — Carthik @ 12:22 pm

In Comments with Alternating Background Color we looked at MooKitty’s solution to the problem of displaying alternate comments with different backgrounds, to make it easier for the reader to read and distinguish between comments.

GFMorris has a better solution that allows for better control over how the alternate comments are displayed, by giving the user two classes that can then be styled whichever way the user desires.

Personally I am a fan of LaughingLizard’s Threaded Comments Hack, which lets you reply to a particular comment among many comments, and threads the display too. It can be seen at work here.

Improving the Search Result Page

Filed under: — Carthik @ 1:51 am

WordPress has a good built in search function, and to use it to the fullest, all you have to do is use WordPress. If you want to adapt the way the search results are displayed, or if you want to deliver a better 404 page, using the search function, read on.

Providing a seperate page of Search Results with WordPress is a neat article explaining the long of short of how to make WordPress’ search results look like, well, search results using a seperate page to display the search results (WordPress, by default uses index.php for displaying the search results).

Raena’s solution, on the other hand, enables you to stop WordPress from redirecting the searcher to the matching post, without any explanation, and to add a friendlier note to head off the search results.

Finally, Mark Ghosh has a 404 page enhancement that redirects visitors to pages that may be similar to the ones they requested. I wish it was more user-friendly by including a note to the visitor saying that the exact page was not found, and that the page he/she is about to see might be the right match.

Sunday, August 01, 2004

Add an image to your RSS 2.0 feed

Filed under: — Carthik @ 8:00 pm

Reader of this weblog who use a feed reader should now be seeing a small image in their readers.
The RSS 2.0 specification allows for each “channel” or feed to have an image associated with it.

Adding an image to your RSS 2.0 feed is known to be perfectly harmless, and can add some color and jazz to your feeds in the feed-readers’ display. Of course, the effect is entirely cosmetic, but heck, if you can spend hours modifying the design of your blog, why not spend a few minutes modifying how your feed is displayed in readers, considering the fact that a lot of your regular readers might be using a feed reader?

To add an image to the RSS 2.0 feed created by your WordPress weblog, create an image (the maximum value for the width and height for RSS 2.0 feeds are 144 and 400 respectively), upload it to your wp-content folder, which is intended to hold all user-content, and edit your wp-rss2.php file/template to include the image. Change the permissions of the wp-rss2.php file to 666, and you can use WordPress’ in-built template editor to do the editing.

Here is the relevant portion from WordLog’s RSS 2.0 feed :
.
.

<channel>
<title><?php bloginfo_rss('name') ?></title>
<link><?php bloginfo_rss('url') ?></link>
<description><?php bloginfo_rss("description") ?></description>
<image>
<link>http://wordlog.com/</link>
<url>http://wordlog.com/wp-content/feedlogo.jpg</url>
<title>wordlog.com</title>
</image>
<copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate()); ?></copyright>
.
.

Wednesday, July 28, 2004

Comments with alternating background colors

Filed under: — Carthik @ 9:08 pm

Kitten has documented a sweet little trick at her Project Blog which will enable you to display comments with alternating background colors.

While you are at her Project Blog, do check out her plugins, and if you want a plugin or a hack that you think might also be useful to others, you can request her too.

A WordPress Video Blog

Filed under: — Carthik @ 5:25 pm

What’s cooler, WordPress, or its users?

Brice has an interesting Video Blogging Script that enables him to post Videos from his Sony-Ericsson P900 over GPRS to his WordPress blog. How cool is that?

My first video post… World First ?

Good question, we don’t know the definitive answer to that!

A preliminary search of the premises did not reveal any downloadable scripts for the use of WordLog readers, and I hope Brice will oblige us all soon.

Monday, July 26, 2004

Making Relative Links Work

Filed under: — Carthik @ 3:51 pm

If you use the Permalinks feature in WordPress, and you use relative links to link to files or images on your server, as follows:

<a href="images/foo.png"> in your index.php template, or your posts, then it will not work properly, since it will automatically become something like
<a href="http://example.com/archives/post/images/foo.png">

The usual work around is not to use relative links in your template, or posts.

But in case you want to, you can use the w3 org recommendation and add a base URI to your index.php, which looks like :
<base href="http://www.youwebsite.com/">
to the index.php file, in the “head” section. This should prevent the relative links from getting botched.

Originally seen at the Support Forums.

Thanks to chiensavant for posting the solution and Ali_ix for bringing it to my notice.

Sunday, July 25, 2004

Smileys, lots of Smileys!

Filed under: — Carthik @ 7:02 am

You can get more smileys for your wordpress installation at the following sites (besides others)

  1. RogotWorld
  2. Jason’s smiley collection

Add the new smileys to wp-images/smilies and then add new “text shortcuts” to smilies (like

 :) 

) in wp-includes/vars.php.

 

Powered by WordPress

eXTReMe Tracker