“pleasure in the job puts perfection in the work”
– Aristotle

Posts Tagged ‘wordpress’


27
Oct

This plugin is dependent on WP/GeoTrack by Johannes Lietz, this is NOT a stand-alone plugin, it won’t work if WP/GeoTrack is not installed anyway, so it’s safe.

And don’t look for it in WP Plugins repo, you won’t find it there :D

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
Plugin Name: Top Visitors Flag
Plugin URI: http://www.marvinmarcelo.com/
Description: This plugin displays visitors on sidebar as widget dependent on <a href="http://dadabase.de/weblog/archives/2006/05/23/wordpress-geotrack-plugin">WP/GEO-Track plugin</a>.
Author: Marvin Marcelo
Author URI: http://www.marvinmarcelo.com/
Version: 1.0.0
*/
function tvf_get_topvisits()
{
  global $wpdb, $table_prefix;
  $sql = "select count(*) as `rows` , `country` , `flagname` from `".$table_prefix."geotrack` group by `country` order by `rows` desc limit 0 , 12";
  $flagstats = $wpdb->get_results($sql);
 
  $html = "<li id='top-country-flags'><h2>Top Visiting Countries</h2><div>\n"; /*  id string */
  foreach ($flagstats as $cf)
  {
    $cf->rows = number_format($cf->rows, 0, "", ",");
    $html .= "<img src=\"". GEOTRACK_URL . "flags/" . $cf-/>flagname . ".png\" alt=\"Flag of $cf->country with $cf->rows visits\" title=\"$cf->country with $cf->rows visits\" />\n";
  }
  $html .= "</div></li>";
  echo $html;
}
 
function init_tvf_init(){
	register_sidebar_widget("Top Visitors Flags", "tvf_get_topvisits");
}
 
if (defined('GT_NOT_INSTALLED'))
{
  echo "<!-- You need \"http://dadabase.de/weblog/archives/2006/05/23/wordpress-geotrack-plugin\" installed first-->";
}
else
{
  add_action("plugins_loaded", "init_tvf_init");
}

Also, you have to forgive the function, constants, and variables names, we all struggle for a better and sensible one :) Happy coding!

13
Aug

This is REAL work! They do not only trace bugs, but also annoyances, which is a big factor in UI experience.

WordPress 2.8.4: Security Release
Posted August 12, 2009 by Matt. Filed under Releases, Security.

Yesterday a vulnerability was discovered: a specially crafted URL could be requested that would allow an attacker to bypass a security check to verify a user requested a password reset. As a result, the first account without a key in the database (usually the admin account) would have its password reset and a new password would be emailed to the account owner. This doesn’t allow remote access, but it is very annoying.

We fixed this problem last night and have been testing the fixes and looking for other problems since then. Version 2.8.4 which fixes all known problems is now available for download and is highly recommended for all users of WordPress.

Source: http://wordpress.org/development/2009/08/2-8-4-security-release/

16
May

Header.php

<!--
  replace "WP_STYLESHEET_DIRECTORY" with this 
    <?php bloginfo('stylesheet_directory'); ?> 
  Need to bring your own minified (not packed) jquery version, 
  some bug that it didn't work using WP jquery package
-->
<script src="WP_STYLESHEET_DIRECTORY/javascript/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="WP_STYLESHEET_DIRECTORY/javascript/superfish.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
        $('ul.sf-menu').superfish();
});
</script>
<link rel="stylesheet" href="WP_STYLESHEET_DIRECTORY/superfish.css" type="text/css" />
echo '<ul class="sf-menu">';
echo '  <li><a href="' . get_option('home') . '">Home</a></li>';
/** 
 * do not include links 
 * wp_list_pages('title_li=&exclude=590,155,163'); 
 **/
wp_list_pages('title_li=&');
/**
 * or use only specific categories 
 * wp_list_bookmarks('title_li=&categorize=0&category=7'); 
 **/
wp_list_bookmarks('title_li=&'); 
echo '</ul>';

24
Feb

Theme out of Blueprint CSS framework and Superfish UL Based menu

blueprint-sf

15
Jan

iphone-compatible-plugin-1

iphone-compatible-plugin-2

iphone-compatible-plugin-3

iphone-compatible-plugin-4

11
Jan

Hands-on on wordpress for iPhone.

12
Sep

Thanks to ndesign-studio for this very nice theme. I guess you figured out what it’s trying to emulate, right – iPhone / Mac. But I don’t have a Mac, only the iPhone. What I like about this system is that it looks really firm, stable, though not too colorful or fancy skins, it is pretty solid in its own.

I retain the random quotes below the header, that’s what I had in Ice theme.

08
Aug

I just got the most weirdest comment made on WordPress today, that is:

(Email)
I’ve had a play with 2.6 it still isn’t an advance on the current live versions that we’re currently using

(IM)
i’m shockled how much i hate the new version

What?!!! When did any given group of developers or software companies created a new version of their product that is worse than the previous one? Especially WordPress, having a great attention these days.

Simply compare the two versions “Create New Post” page

30
Jul

Yesterday, I signed up at LinkReferal to try the scheme, and it really works. Members there are really doing their part – visiting other site so that others visit yours, nice!!! I have setup GeoTrack plugin for wordpress to track my recent visitors, and indeed, I have quite a number of referers coming from LinkReferal. Here’s my GeoTrack Status

So I’m planning to keep up with it on my free time. It isn’t too much, in exchange for a traffic. Check it out yourself.

29
Jul

I installed this cool All in One SEO Pack plugin but I noticed the rendered header tags has two entries for meta description and meta keywords. If you haven’t moved your tags in the header template, those are the first meta pair from your current theme. The other two were generated by the All in One SEO Pack plugin.

To keep this from duplicating, which I’m not sure if having two versions of these metas is good or bad, I added condition in my header template to disable the static metas from my current theme.

1
2
3
4
5
6
7
8
9
<?php
if (!class_exists("All_in_One_SEO_Pack")) 
{ # move these metas here 
?>
<meta name="keywords" content="......" />
<meta name="description" content="......"/>
<?php
} 
?>

And if you deactivate the plugin, these hardcoded metas from your plugin will work instead.