Follow Me on Twitter!

Information

You are currently browsing the CypherHackz.Net weblog archives for November, 2006.

pbdebitcard

Last week I have applied for Public Bank debit card. Because I am still a student so I could not afford to use a credit card. So get a debit card is the only option for me.

bsnmatrixI applied for debit card because I want to activate my Paypal account. Really want to activate it. As soon as possible is better. At first, I thought I can use BSN Matrix card because it has Visa Electron. But when I type in the card number, it got rejected. And after asked in MalaysiaBloggers forum, they said that BSN Matrix card is useless. It is not accepted anywhere in online. Duh…

Why PB debit card?

Well first I can’t use BSN Matrix card, that’s why I applied it. Beside than I am still a student, so I choose a debit card rather than credit card. If we use debit card, we can manage our spending properly. We only can use the debit card if there is money in it. So no need to pay the monthly bills. To topup the money into the card, just need to cash-in into our account. And the annual fee is cheap. Just RM24 per year.

Cypher: Really hope that I will receive the debit card next week.[tags]bank, debitcard, malaysia, visa, visaelectron[/tags]

How do you test your PHP scripts? Upload them to your website server and test them one by one, or you test them locally on your computer first before upload them to the server?

To test my PHP files, I use WAMP . With WAMP, you can make your computer act as a website server. Before I knew about WAMP, I always upload my PHP files to web server to test them. But after one of my friends, name Azhar (I called him Ja’a) told me about WAMP, I now will test the scripts locally in my computer before I upload them to my site. [tags]wamp, wampserver, php[/tags]

What is WAMP?

WAMP is stands for Windows – Apache – MySQL – P HP. These are services that are needed to make your computer act as a server. When you install WAMP, WAMP will automatically configures them to work together. So you can test your scripts before you upload them to your server.

Read more…

For those who like to put Copyright [year] in footer might like this trick. It is just simple trick by using php date function. Usually we see a copyright at footer like this:

Copyright © 2004 – 2006 www.website.com

But when the next year come, you have to edit the footer for the next year. But with php, it will save your time. Just put this code:

  1.  
  2. Copyright © 2004 –  <?php echo date("Y") ?> <a href="http://www.website.com">www.website.com</a>
  3.  

in your footer and you no need to update your footer every year. It will automatically change to the current year.

[via WPMalaysia][tags]php, copyright, auto update[/tags]

There are many anti-spam plugins available on the net that you can use to prevent your website from getting/blocking more spams in comments or trackbacks. Some of them are working just fine and some of them are too strict which even blocking human visitors (there are two types of visitors, human and robots) from visiting your website. I’m sure many of Wordpress users use Akismet (wiki) as their website spam protection because it comes in the installation package. But using Akismet alone is not enough. Why?

Akismet will check the comment entered and compare it with the database in Akismet web service. If it found that the comment is a spam, it will block and waiting you to decide whether to delete or de-marked it as spam. If you only use Akismet plugin, you will get about 10 or 30 (maybe more) spams caught in one day. And some of the comments maybe came from legit visitors comment or we can say good comments. Do you will use the all-delete button or you will analyze each comments one by one?

Read more…

Currently I working on to make my own Wordpress theme. I already knew basic HTML but I need to learn and master CSS. I want to learn how to use <div>. If using <table> it is easy because you can set which place you want to put the rows and the datas but if using <div>, it is all depends on CSS.

I think I want to use Dreamweaver as my platform to design and create the theme. But as you may know, if we using Dreamweaver or Microsoft Frontpage, we are limited on the software it self. So I use EditPlus as my text editor to make my own Wordpress theme.

Subscribe my feed

Btw I just make my own RSS feed icon to use on my site. It took me about 1 hour to design it. The hard part is when I want to design the RSS logo. At first, I don’t know but after tried so many times, at last I got the design. Any comments, condamns, etc? He3. [tags]wordpress, theme, rss, feed, icon[/tags]

Want to watch free tv shows, cartoons or animes? Here is come the website you are waiting for, TV Links.

tvlinks

TV Links with their slogan “Better than a Remote Control” is a website that provide links to available videos from various sources such as youtube, dailymotion or bolt. They collect all these links and compile them in one page and let you decide which video you want to watch.

TV Links doesn’t host the videos, they only link to them. If you want to download the videos, you can use YouTubeX for YouTube. And to watch them, you need this FLV Player.

Btw do you know, how many rejected slogans they have before they decided to use the current one? Check this out.

[via Ghacks][tags]tv links, video, movie, tv show, anime, cartoon[/tags]

I would like to announce my new plugin, Today Posts. This plugin will list down your posts for that day. Let say, you have published multiple post in a day. So maybe some of the posts published will not be read by your site visitors because they need to scroll down. By list down your today posts, the chances for your posts be read by your site readers will high.

Plugin Name: Today Posts
Plugin URI: http://www.cypherhackz.net/plugins-themes/today-posts/
Description: Display a list of today posts. Useful for bloggers who publish multiple posts in a day.
Version: 1.0
Author: Fauzi Mohd Darus
Author URI: http://www.cypherhackz.net/

For more details, demo and download link, you can visit the plugin page here, WP Plugin: Today Posts . [tags]plugin, post, update[/tags]

I just edited my Easy Announcement plugin which is, it will display a link to edit the announcement when you are login to your website. So you can directly go to edit file page, without need to go to admin panel > manage > edit file. Here are the screenshots on what I mean.

easyannouncement edit01
Image 1: When you are not login

easyannouncement edit02
Image 2: When you are login

I have update the plugin and you can download the plugin from the plugin page. Read the readme on how to update the plugin. [tags]download, plugin, tweak[/tags]

Cypher: I don’t know why but I love watching the chicken dance. Lol… =))

Some posts from Week 46, 2006 (20th – 26th November 2006) that you might want to read. ;)

PSA stands for Public Service Ads which mean you will get nothing if peoples click on those ads. These ads will appear on your site if there is not enough contents or adsense crawler has not yet crawled to your website pages.

Beside you can fill the ads with solid color, you can remove the PSAs with this following code:

  1.  
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  6. <title></title>
  7. <script src="http://pagead2.googlesyndication.com/pagead/google_adsense_script.js" type="text/javascript"></script>
  8. </head>
  9. <body style="background-color: transparent;">
  10. </body>
  11. </html>
  12.  
  1. Copy the code above and save it as a html file. Eg: adsense_script.html.
  2. Upload it to your website (usually in root, eg: www.website.com/adsense_script.html)
  3. Setup your Adsense ads as usual.
  4. In the “Show non-Google ads from another URL”box, type in the html file url.
  5. Done!

With this, the PSAs will not show up because they have been replaced with the script above. :)

[via Malaysia Bloggers][tags]adsense, public service ads, tips, how-to[/tags]