Freelancer's Playground! New knowledges every now and then

22Nov/110

Cara Membuat Project Android Menggunakan Eclipse

Karena kedepannya saya berencana untuk membuat lebih banyak lagi tutorial dan contoh-contoh program Android, maka cukup masuk akal kalau saya membuat tutorial bagaimana cara membuat project android, pada ide eclipse. Sebab, saya bisa dengan mudah mereferensikan ke halaman ini, saat menulis tutorial, atau bila ada pertanyaan.

3Sep/110

Pengalaman Seminggu Menggunakan BlackBerry

Bulan puasa kemarin, saya diserahi tanggung jawab memegang device blackberry untuk team saya, tepatnya sebuah blackberry torch 9800. Sebagai orang yang sudah cukup lama memakai android dan sering kali mendapat berita atau review bagaimana #sux-nya blackberry, saya merasa ini bisa jadi kesempatan untuk menggunakan dan merasakan secara langsung bagaimana pengalaman ber-blackberry. Sebagai catatan, saya menggunakan android samsung galaxy 551 (device dengan keyboard fisik).

4May/110

Upload File Pada WordPress Post Page

Pada kebanyakan kasus penggunaan file upload pada kustomisasi wordpress. Umumnya, implementasi yang digunakan adalah dengan memanfaatkan fungsi upload file built-in pada halaman admin wordpress.

16Feb/1125

[CR]Post2PingFM Plugin Ported To [CR]HelloTXTExtended

Hello there, users of [CR]Post2PingFM!. I know how frustrating it is when my old plugin is no longer working due to incompetence people at ping.fm / seesmic. Yes, incompetence, because of bad people, they had to shutdown the whole plugin. Not just that particular bad people :( .

18Nov/100

Dua Plugin Baru [CR]PostWarning dan [CR]PaidLinkManager

Bingung juga cari-cari bahan tulisan yang asik. Mau melanjutkan tulisan berseri mengenai IMAP+PHP kok ya kena writer's block. Ujung-ujungnya malah jadi dua plugin ;) ). Yup, dalam 15 hari (eh, bener gak ya? yang pasti sih gak lebih dari satu bulan) dapat dua plugin wordpress. [CR]PaidLinkManager dan [CR]PostWarning.

13Nov/100

Menyembunyikan Category Tertentu Dari Widget Categories

Menggunakan widget untuk menampilkan daftar kategori dan ingin menyembunyikan kategori tertentu dari daftar tersebut? Ya, saya tahu kalau widget bawaan wordpress tidak mendukung hal ini. Tapi jangan takut, posting kali ini akan mengajarkan cara menyembunyikannya.

9Nov/100

[CR]Post Warning

Have you been in position where you've published post but forgot to set proper category, or featured image, or maybe forgot to spell check your post? Well, with this new plugin, I hope those days will never happened again.

What is it?

[CR]Post Warning is simple plugin that will alert user whenever they want to publish the post. When you are on post add / edit or page add / edit. Everytime you hit that Publish / Update button, you will be greeted by confirm window just like this:

Free Image Hosting at www.ImageShack.us

How do I configure it?

You can customize that message on screenshot above easily. After the plugin is installed, it will create new sub menu called "[CR]Post Warning" under "Settings".

Free Image Hosting at www.ImageShack.us

On that page, you can specify what message you want to display whenever publish / update button pushed.

Free Image Hosting at www.ImageShack.us

How do I get it?

Download it from wordpress's plugins repository page.

Filed under: No Comments
26Oct/104

Cara Menyembunyikan Suatu Post Dari Kategori Tertentu Dari Home

Ada kalanya, kita ingin agar suatu kategori tidak dimunculkan di halaman depan. Biasanya sih, ini dilakukan untuk kategori posting yang berbayar. Biar tidak mengganggu pengunjung yang setia. Walaupun bisa juga diimplementasikan untuk suatu kebutuhan yang lain. Nah, bagaimana caranya?

25Oct/1015

[CR]Paid Link Manager

Introduction

Do you sell your blog-roll and having problem in keeping an updated information as to when this particular link is expired? You will no longer be in trouble with this plugin. Introducing: [CR]Paid Link Manager. A plugin that will help you manage your paid link's life cycle.

The main features is:

  • The ability to create a separate group so that you can further set each group belong to what condition. I'll explain this later.
  • The ability to set per link age. So that it will automatically hide link that's expired.
  • The ability to store per link notes. It is useful for storing link detail, like client info (email subject reference maybe), so that you can remind him that their link is expiring.
  • Add support for infinite age link
  • Automatic email reminder for expiring links

With planned (not so distant) future upgrade:

  • Plugin API, so that other plugin or theme developer can use it seamlessly with too much hack
  • Add javascript for link age input. I know you will love this
  • Add ability to specify different separator for 'coma' mode

How To Use

Adding Link Group

After downloading and enabling the plugin (download link available below), you need to create URL Group. One already created for you, which is called 'frontpage'.

Image Hosted by ImageShack.us
Image Hosted by ImageShack.us

You can add, edit, and delete any URL Group here.

One note on deleting link group: Make sure there are no other link active on that group. Because, my plugin will remove that too!

Adding Link List

After you have link group, now you need to add a link to that group.

Image Hosted by ImageShack.us

There's one catch when adding link. You must adhere to my plugin requirement. For date, you MUST use 'YYYY-MM-DD' format. That is, if you want to input 03 October 2010, you need to write it this way: 2010-10-03. Also, if you want to set certain link to never expired, set second date as '0000-00-00'.

Adding Links To Your Theme

Using Widget

To add plugin widget, all you have to do is, go to "Appearance » Widgets" and add [CR]PL Manager widget to your widget area. If you don't have any, that will be addressed later. So, hang on!.

Image Hosted by ImageShack.us

Please note that there's Widget logic that maybe not available on your installation. It's from another plugin called *well, obviously* Widget Logic. This plugin can help you set particular widget to show on condition you defined to it.

Using Code Directly

If you don't have any widget area or you just want to code directly, you can use cr_paid_link_manager_show_links() function. It take parameters:

  • $group_id: links will be extracted from this group id
  • $mode: accepted value is 'list' and 'coma'
  • $separator: only work on $mode = 'coma'. Is used to separate each link

Here's how you do it:

<?php

//show group_id 1 with mode 'list':
cr_paid_link_manager_show_links(1);
//show group_id 1 with mode 'list':
cr_paid_link_manager_show_links(1, 'list');
//show group_id 1 with mode 'coma' and separator ', ':
cr_paid_link_manager_show_links(1, 'coma');
//show group_id 1 with mode 'coma' and separator ' | ':
cr_paid_link_manager_show_links(1, 'coma', ' | ');

?>
Image Hosted by ImageShack.us

Image above show the different between each $mode.

Additional note

As already stated above, my plugin work best with Widget Logic that I've been blogged. With this plugin, you can set certain widget to only show on certain condition, like: only on homepage, only on single page, etc, etc, etc.

Version Changelog

  • Version 0.1 - October 25, 2010:
    1. The ability to create a separate group so that you can further set each group belong to what condition
    2. The ability to set per link age
    3. The ability to store per link notes
    4. Introducing template function: cr_paid_link_manager_show_links()
  • Version 0.2 - January 17, 2011:
    1. BUGFIX: Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'cr_post_2_pingfm_init' was given in PATH/wp-includes/plugin.php on line 395
  • Version 0.3 - February 6, 2011:
    1. Introduce ability set certain link to never expired (set date2 to 0000-00-00)
    2. Introduce ability to send expiring email daily

Download

Follow link below, to download from wordpress's official plugin repositories.


Filed under: 15 Comments
10Oct/100

Cara menggunakan Kode PHP Sebagai Isi Widget

PHP dengan widgetnya memang sangat memanjakan pengguna. Selain menjadi sangat fleksibel dalam menambah maupun mengurangi informasi yang ingin ditambahkan di suatu halaman. Seperti yang sudah saya tulis di posting terdahulu, tentang cara menampilkan widget pada kondisi tertentu. Juga sangat mengurangi akses langsung ke template, yang secara otomatis juga membuat lebih mudah proses update template (bila menggunakan template dari repositori wordpress).