Blocks are the boxes of content that can be displayed in regions (such as footer or sidebar) on your page. Depending on your themes regions you may have the ability to include blocks in your right,
If you want to highlight the code/syntax when making yor comments/post in Drupal and WordPress, just wrap it with the following tag.
// Your Code Here
The above piece of code will be highlighted with PHP code format.
The most popular Drupal modules
Here you will find a list of the most popular Drupal modules, a short description of what they do, a download link plus how to install instructions.
Following are the steps to add an external link to menu in Drupal:
1. In the navigation menu click Administer -> Site Building -> Menus
2. Choose the menu you would like to add the external link to
To detect the iPad, search for the word iPad in the User Agent of super-global variable $_SERVER. Below a very useful snippet of PHP code that detects whether the person viewing your website is on an iPad.
I want to convert URL in $string into link, that is convert the URL http://avinash6784.wordpress.com to <a href=”http://avinash6784.wordpress.com”>http://avinash6784.wordpress.com</a>. For achive this I have written following helpful PHP code.
$string = “This is my PHP blog http://avinash6784.wordpress.com”;