We usually found CSS problem when we work with IE browser, there is a good article from http://www.michikono.com/2007/02/03/ie7-css-classid-is-not-the-same-as-class-id/ and worth to read.
As Summary, we have to aware of the space between #id and .class. Tiny careless bring huge effect to the display result.
Other references:
http://coding.smashingmagazine.com/2009/10/14/css-differences-in-internet-explorer-6-7-and-8/
http://net.tutsplus.com/tutorials/html-css-techniques/9-most-common-ie-bugs-and-how-to-fix-them/
http://www.sitepoint.com/10-fixes-for-ie6-problems/
Wednesday, July 24, 2013
Monday, July 22, 2013
How to Change DNS from MYNIC and Get Server Code
How to Change DNS from MYNIC and Get Server Code
- Remember Login as technical username, else you cannot notice section of Modify DNS. Admin and technical will have difference CODE to login.
- After Login -> go to Domain Name -> Modify Domain Name
- Search for your Domain -> Check the box -> Click Modify
- Then you will see the section of Modify Name Servers
- After check on Modify Name Servers option radio button, you will see the following list
- Now we come to most confusing part, the Server Code is auto generated by the system. But first of all you have to click on "+" button --> enter host name and IPV4 ip --> Click Create button --> System will prompt Error message but it actually showing you the server code number.
- Copy one of the highlighted code and paste into Server Code text box from previous page. Then Click Close button.
- Do the same action for Secondary Name Server.
- Click Modify button when you finish filling the info. That's all.
- Changes of DNS only be activated after 24 hours, then only proceed to your own hosting to do domain addon or domain parking.
~ END ~
Tuesday, July 2, 2013
How to Create Block Programmatically in Drupal 7
How to Create Block Programmatically in Drupal 7:
I try to create with block with update hook but failed. So have to check out with another method which is hook_block. We need to use the following hook:
The following link explain how to use the hook
References: http://fourkitchens.com/blog/2012/07/18/building-custom-blocks-drupal-7
The following is the sample how to set text format:
function MODULE_block_configure($delta=''){
$form = array();
switch ($delta) {
case 'blockname':
# Text field form element
$form['text_body'] = array(
'#type' => 'text_format',
'#title' => t('Enter your html code'),
'#default_value' => variable_get('text_variable',''),
'#format' => 'full_html',
);
break;
}
return $form;
}
I try to create with block with update hook but failed. So have to check out with another method which is hook_block. We need to use the following hook:
- hook_block_info : To define custom block and display block at administration page
- hook_block_configure : To define custom block configuration block (e.g. title, body, text format)
- hook_block_save : To save configuration option from hook_block_configure()
- hook_block_view : To build the contents of the block, can include functionality code
The following link explain how to use the hook
References: http://fourkitchens.com/blog/2012/07/18/building-custom-blocks-drupal-7
The following is the sample how to set text format:
function MODULE_block_configure($delta=''){
$form = array();
switch ($delta) {
case 'blockname':
# Text field form element
$form['text_body'] = array(
'#type' => 'text_format',
'#title' => t('Enter your html code'),
'#default_value' => variable_get('text_variable',''),
'#format' => 'full_html',
);
break;
}
return $form;
}
Subscribe to:
Posts (Atom)