Archive | March 2010

Drupal: Print User Profile in Body Content

I need to print user custom profile on my content body. I just need these code for print out my user profile.

<?php global $user; ?>
<?php $profile =  profile_load_profile($user); ?>
<?php print $user->profile_company_name; ?>
<?php print $user->profile_company_address; ?>

Advertisements

Step By Step Guide for Windows Server 2003 Domain Controller and DNS Server Setup

Hi there, Just want to share how to configure domain controller and DNS server setup. I found very easy and useful step by step guide from microsoft. Hope it helps you as well.

http://www.windowsreference.com/dns/step-by-step-guide-for-windows-server-2003-domain-controller-and-dns-server-setup/

Regards,

Eric Wijaya

print drupal parameter in content body

I need to print user’s picture in the body of my content so I use the php input format and add this following lines:

<?php
global $user;
print $user->uid;
?>

To view all attributes of the user:

<?php print_r($user); ?>

VMWare USB cannot connect to Host USB

I have problem with VMWare USB. The vmware cannot read the usb I plugged on my host. When the vmware start, there are some warning about usb not connected.

The root cause of this problem is that VMWare only support USB root hub driver from Microsoft. When your USB root hub driver get updated by another software (sony ericsson pc suite, AMD, etc.) the vmware cannot detect the usb driver.

What you can do is install the Microsoft USB Hub Driver on your Host. This is how you do it:

1.  Right Click on your My Computer icon and click Manage. Go to Device Manager. Search for USB Root Hub.

2. Double Click on one of USB Root Hub. Check the Driver Provider. If it is a Sony Ericsson or provider other than Microsoft, you should install the Microsoft Driver. Klik Update Driver to Install Microsoft Driver.


Read More…

Strange Way To Save The World

“Strange Way To Save The World”

Sure he must have been surprised
At where this road had taken him
‘Cause never in a million lives
Would he had dreamed of Bethlehem
And standing at the manger
He saw with his own eyes
The message from the angel come to life
And Joseph said…

[CHORUS]

Why me, I’m just a simple man of trade
Why Him, with all the rulers in the world
Why here inside a stable filled with hay
Why her, she’s just an ordinary girl
Now I’m not one to second guess what angels have to say
But this is such a strange way to save the world

To think of how it could have been
If Jesus had come as He deserved
There would have been no Bethlehem
No lowly shepherds at His birth
But Joseph knew the reason
The love had to reach so far
And as he held the Savior in his arms
He must have thought…

[CHORUS]

Drupal CSS for forms, collapsible settings, comment

Just want to share some drupal css for forms, collapsible admin settings, and comment border.

/* make form radios and checkboxes inline with its label */
.form-radios .form-item p, .form-checkboxes .form-item p{
display: inline;
}
.form-item label.option, .form-checkboxes label.option{
display:inline;
font-weight:normal;
position:relative;
top:4px;
}
.form-checkboxes, .form-radios {
margin:0;
}

/*———- collapsible setting ————-*/
fieldset {
border:1px solid;
display:block;
padding:10px;
position:relative;
}
html.js fieldset.collapsed {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:transparent none repeat scroll 0 0;
padding:10px;
}

/* give dotted border for margin that is published */

.comment-published {
margin-left:10px;
padding:10px;
border:2px dotted #DBDBDB;
}

Karma VS God Jugdement

It’s been a long time since my last post eh… Lagi kepikiran aja tentang karma.. Kalau dipikir2 sekilas, sistem karma bisa juga dibilang adil. orang yang berbuat jahat, suatu saat akan menerima balasannya supaya tau rasanya dijahatin. Mungkin orang-orang yang pernah disakiti mengerti perasaan ini, ingin sekali rasanya orang yg menyakiti itu bisa merasakan sakitnya dan berharap suatu saat dia pun bisa merasakan hal yang sama bahkan lebih parah. Bahkan dalam kalangan orang Kristen, berharap agar Tuhan yang membalas perlakuannya. Seperti dalam bait pada salah satu lagu indo “semoga Tuhan membalas semua yang terjadi kepadaku suatu saat nanti…” Tapi hal itu bukanlah hal yang baik…..

Kenapa? Kalau setiap perbuatan yang menyakiti akan menerima balasannya, maka dunia ini ga pernah akan menjadi lebih baik, bahkan lebih busuk. Misal saja seperti ini: A menyakiti B, suatu saat C akan menyakiti A, suatu saat D akan menyakiti C, suatu saat E akan menyakiti D, dst dst dst… Untunglah Tuhan tidak memakai sistem karma ini untuk menegakkan keadilan di dunia.

Syukur kepada Tuhan kita yang panjang sabar dan besar kasih setia-Nya. Tuhan selalu memberi kesempatan supaya orang bisa bertobat dan menjadi lebih baik. Tuhan tidak membalas kejahatan dengan kejahatan. Tapi Tuhan juga tidak membiarkan kejahatan begitu saja. Ada cara cara Tuhan sendiri untuk memberikan peringatan-Nya.

but it’s really hard to accept this in some painful situations.. But God always have unique ways to help us understand..

Have a blessed days…