Hacking, Articles, Smartphone by rizapn, 10 November 2008 6:28 am

Dopod c720wI have a keypad problem with my old XPhoneII. So, I decide to change it with another smartphone device, Dopod c720w. A GSM smartphone with 320x240 landscape screen, running on Windows Mobile 5 operating system. For us, who familiar with phone flashing, of course, there is a forum to discuss about upgrading its OS to the new WM6. I, personally, don’t want to migrate to WM6 for the time being. Usually, higher WM version, faster CPU speed is needed. If not, we will get a slower OS running in our phone.

Buy from the largets Indonesian community, kaskus with a good price (at least in my opinion, because I did search in the mall, and found no shop is selling this device, and there are some online adv with higher price). My first impression when the real device is coming into my hand is : slim and elegant, which is very different from the feeling that I got when I see it in the web.

And of course, just like my previous mobile phone, what I want to do in the first time is hacking (or tweaking) it. To make it possible, we must : ‘unlock’ the device, so we can modify (or create) registry values with no restriction using this Smartphone Registry Unlock software. If we want to modify the registry throught a script (very useful for mass modification), we can use this RAPIConfig software.

(Read more details …)

Articles, Script, wordpress by rizapn, 24 October 2008 10:06 am

Photo GalleryFinally, I finish my own photoblog gallery plugin for Wordpress MU. What will we get after installing this plugin? We will be able to display the page in a thumbnail format, just like photo gallery. The display will become normal in a single post condition or in admin mode. The advantage of this method is : we still can use all of available theme without any modification needed.

* This plugin is tested under WPMU 2.6.2 only *

Download this file (right click, Save As … rename it to photoblog_gallery.zip), and then extract it. Copy photob_gallery.php into your plugins directory, and plugopt.php into the mu-plugins directory. Yes, there are two plugins : one is the photoblog gallery and the other is plugin options. Plugin Options plugin (sorry for the name), will give us an additional [Plugins Options] sub-menu under Plugins menu. This submenu is usefull to change the plugins option. I make it customizable, so anyone who want to add their own plugin options part can do it very easily.

The plugin will add three option : Gallery Title, Display Format, and Image Type. (Read more details …)

Hacking, Script, wordpress by rizapn, 23 October 2008 3:30 pm

Wordpress MU again … :p

I wrote a plugin, I call it : Header Insert Plugin, which can insert a HTML code into the head section. Using this plugin, Site Admin can insert a specific HTML into the head admin, and users can supply their own value.

For example, Site Admin enter this code :

<style>.myimage { url(%image_url%); }</style>

and the user enter this as ‘image_url’ parameter in the Header Insert Options :

http://myserver.com/username/files/2008/10/test.jpg

then, the plugin will display :

<style>.myimage { url(http://myserver.com/username/files/2008/10/test.jpg); }</style>

in the user’s client.

What is this for ? (Read more details …)

Hacking, Articles, wordpress by rizapn, 21 October 2008 1:52 pm

Still about Wordpress MU plugin. I use Donncha’s Sitewide Tags Plugin to display all recent post from the whole users. The problem is, the comment count is displayed in the wrong way. It is always display 0 (zero), even there is a comment in the original post.

Search in the core code, and found this :

return apply_filters('get_comments_number', $count);

in the comment-template.php file. Voila, we can change how WP display the number of comment.

I add these lines into that plugin, and it works very well … Great WP !

function sitewide_tags_get_comments_num($count)
{
  global $blog_id,$wpdb,$post;
  $tags_blog_id = get_site_option('tags_blog_id');
  if (!$tags_blog_id || $blog_id!=$tags_blog_id) return $count;
  $base = $wpdb->base_prefix;
  list($post_blog_id,$post_id) = explode('.', $post->guid);
  $r = $wpdb->get_col(\"SELECT comment_count FROM $base{$post_blog_id}_posts WHERE ID=$post_id\");
  if (is_array($r)) return $r[0];
  return $count;
}
add_filter('get_comments_number', 'sitewide_tags_get_comments_num');

You probably need to also modify (Read more details …)

Hacking, Script, wordpress by rizapn, 19 October 2008 2:35 pm

Searching, reading, learning … then improve … :p)

After knowing more about Wordpress MU (wpmu), I know that my first plugin for Wordpress MU (Custom CSS menu) is not good in term of coding. It use two separate file, which is actually possible to use only one. Not only two files, but also need to copy one of them to wp-admin folder.

For you who like that plugin (like me :p), just download the latest ones from here. Save the file as a PHP file (if you don’t know how: right click, and then Save Link As … / Save Target As … rename the destination file to “ccss.php”), and copy it to your wp-content/mu-plugins folder, and you will get the additional Custom CSS sub-menu under the Design menu.

The difference between the 1st version and this update is (Read more details …)

«« Next       Prev »»