How to Display Some Text OnMouseover an Input Text Box

February 24th, 2015 No comments

No need JavaScript to do this. Just use :hover pseudo-class the css:


Categories: Website Tags:

[usercake] Regex Must Contain Number And Letter on registration form

February 24th, 2015 No comments

On register.php usercake, i found ctype_alnum not working as well to validate form. someone who fills in only letter or only number will pass the form. where the correct is, they must fill combination NUMBER and Letter only. so, i use this regex:

so final working code is:

and now, add to language file on models/languages/en.php this line

Categories: Website Tags: , ,

Regular Expression Form Validation

February 24th, 2015 No comments

In theoretical computer science and formal language theory, a regular expression (abbreviated regex or regexp) and sometimes called a rational expression is a sequence of characters that forms a search pattern, mainly for use in pattern matching with strings, or string matching, i.e. “find and replace”-like operations. The concept arose in the 1950s, when the American mathematician Stephen Kleene formalized the description of a regular language, and came into common use with the Unix text processing utilities ed, an editor, and grep (global regular expression print), a filter. Wikipedia In practical terms, i gonna use regex to validate from, before…

Categories: Website Tags: , , ,

[Usercake] Disable Submit Button before Tick ‘I Agree’ check box

February 19th, 2015 No comments

This is another enrichment tips to our usercake project: adding checkbox named “I Agree” and disable submit button before user check. I got this script from, and place it on modified usercake registration file. add this script before closing </head>

add this to form:

so like this

replace this

by this

Categories: Website Tags:

[Usercake] How to Retain Value on form when Failed after submit

February 19th, 2015 No comments

By default, usercake form registration field returned to empty when one or more inputs has wrong value. This is terrible when someone registered and failed. He must fill field from beginning. In register.php you got this

now, i added this error reporting to handle error.

next, i added this on input value:

finally, code like this:

that`it. You may also like Check User Availability Using AJAX on Usercake Registration

Categories: Website Tags:

Raise Upload File Size Limit for wordpress on webmin

February 12th, 2015 No comments

By default, if we upload image file , only 2M available on wp system. We could raise file size limit as we need. the absolute working (for many server type) tips is, change PHP Configuration manually. To do this, follow steps below: Login to your webmin ( on search module form, type “php conf” at result choose “PHP Configuration” like this change below value, just use CTRL F and find the corrent params post_max_size = 41M upload_max_filesize = 40M memory_limit = 128M max_execution_time = 200 max_input_time = 200 save

Categories: Website Tags: ,

[Usercake] Check User Availability Using AJAX on Usercake Registration

February 7th, 2015 15 comments

Yep, Usercake is simple opensource membership cms we can play with. Come with simple GUI but we can freely modify the codes. In this article, i just combined usercake with AJAX Username Verification from Bit Repository. Below what i did. Step 1. Change original header.php (find on folder “models”)

to be like this

yep, i just remove header code and place it on every page, in this case, i move the header content to single page. Step 2. Change original register.php

to be like this. ( i changed every double quote, remove some echoes, make it compatible…

Categories: Website Tags:

Adding New Whos.Amung.Us Widget On My WordPress.Com Site

February 7th, 2015 No comments said: IMPORTANT: hosted WordPress blogs (ie. you have a site like require a slightly different code and the map widget can not be embedded directly in your blog. Contact for the appropriate code for your blog. If you run your own WordPress installation the normal widget codes will work fine. so you cannot paste code directly to, please consider use this way. Step 1. get code from pick one,i.e. The small widget. Double click and Ctrl + C you got this:

take a look, the “9yuhqjikxxx3″ is your tracking code, simply paste this modified…

Categories: Website Tags: ,

Menghilangkan pesan error pada wordpress autoinstaller masterweb spanel

February 5th, 2015 No comments

Error ini terjadi pada instalasi wordpress menggunakan autoinstaller milik masterweb dalam paket spanel. Paket wordpress yang diinstall masih versi 3.8, dan ketika diupgrade ke versi terkini so far so good. Tapi muncul pesan error pada bagian footer yang cukup mengganggu, karena pada pesan itu ada username akun hostingnya. Pada bagian /home/sloki/user/XXXXXXX/, huruf x itulah username hostingnya.

maka, downloadlah wo-config.php pada root wp.

setelag FTP_PASS tambahkan baris ini

catatan: ini wp-config dari autoinstallernya masterweb.

Categories: Website Tags:

Fetch list daftar fungsi pada client SOAP menggunakan Php

February 5th, 2015 No comments

Untuk mengetahui fungsi-fungsi apa saja dalam suatu webservice (dalam contoh ini SOAP), bisa menggunakan php. Tapi, satu hal yang harus dicatat, apakah client mendukung SOAP atau tidak. Untuk memastikannya, gunakan file berikut ini, lalu panggil melalui browser. gunakan fungsi

Jika SOAP Enabled, maka lanjut dengan mengupload file ini:

Categories: Website Tags: ,