jump to navigation

Stattraq plugin for Wordpress 29 August 2006, 21:23

Posted by Orhan in : Geeky Techy Stuff , add a comment

I started using the stattraq plugin to collect statistics about my blogs. There was a problem with character encodings in summary and search string result pages, though, since I post in Turkish in some blogs. If you are having similar issues, the following fix could also work for you.

I was able to fix the character encoding issues I had with Turkish characters like this:

Edit summary.php under the wp-stattraq/reporter directory. Find:

htmlentities(stripslashes($row->post_title)); and change it to

htmlentities(stripslashes($row->post_title), ENT_COMPAT, ‘UTF-8′);

Also, in the query_strings.php, find:
htmlentities($row->search_phrase) and change to

htmlentities($row->search_phrase, ENT_COMPAT, ‘UTF-8′)

Wordpress plugin: recent posts list with short titles 24 August 2006, 16:53

Posted by Orhan in : Geeky Techy Stuff, WP-Plugins , 24 comments

Updated: 06/18/2007 - Ver 1.06

For those who have experienced problems with WP 2.2, try this version 1.06..

——————————————————————————

I have searched for a long time and was unasble to find a plugin that can display recent posts with short titles so that the list is read one post per line.

Then I realized this was a good opportunity to write my own (and first) Wordpress plugin.

What it does is that it lists the recent posts just like wp_get_archives() function but an additional parameter sets the limit of the post title length as characters. Only the first X characters of the post title is displayed. The full name can still be read if the mouse is pointed on the links.

Current Version 1.06: -strip_tags on shortened titles eliminates html tag errors, this version should also work with no problems in WP 2.2

—V1.06 Download oden_latest_posts.txt (rename to oden_latest_posts.php)

Version 1.05: Converted for WP 2.1.x to fix a bug which caused static pages to appear in the list. I am not sure if it will work with WP ver. 2.0.x! WP 2.0.x users, do not upgrade at this time if you do not have any problems.

Version 1.04: Added offset feature. Skip the first n posts when listing. Also, when you move along the pages, it automatically skips the posts on thatpage too.

—V1.04 Download oden_latest_posts.txt (rename to oden_latest_posts.php)

Installation:

  1. Put oden_latest_posts.php file under wp-contents/plugins folder
  2. Activate ODEN latest posts in admin panel plugin area

Usage:

oden_wp_get_archives(…, $title_limit=XX, $oden_offset=XX);

where XX is the number of characters you would like to limit the post titles in the recent posts list.

Example:

<?php if($paged || is_home()) _e(’Earlier Posts’); else _e(’Recent Posts’); ?>

<ul><?php oden_wp_get_archives(’type=postbypost&limit=20 &title_limit=34&oden_offset=10′); ?></ul>

Note: put no space before &title_limit. I had to put a space because it did not fit here!

Demo: In the side bar recent/earlier posts.

Hope someone else finds it useful too!

KMU-30A Review 1 August 2006, 07:22

Posted by Orhan in : Geeky Techy Stuff, Review , 2 comments

kmu-30a skype regular phone adapterI have been wanting to post my eperiences about the KMU-30A regular phone adapter for skype but I also had been kind of lazy. Today I received a comment asking about the KMU-30A’s performance from azn, so azn, this is for you.

First of all, I purchased this item for my family back home so that they could speak to me on a regular phone set when I call them, and also they can call me on Skype much easier with the speed dial set up. I have only spent a few hours setting it up and assigning speed dials etc. and have been away from it since then.

Having said that, lets move on to the review.

(more…)

Counter

Log in