How To Place A Drupal Block Anywhere On Your Site
You might have noticed on the homepage of my site I have the 'Recent Comments' block integrated and floating inside my recent posts. Taught I would share how to do this. This is actually quite simple to do, all you need is this code:
<?php
$block = module_invoke('module_name', 'block', 'view', 0);
print $block['content'];
?>
Place that code anywhere you want a block to appear, just simply replace module_name with the name of the block you want to be shown, for my comment block it was as simple as changing it to comment
If you have any questions or problems, or wondering what block name to use? Post a comment and I'll get straight back to you!
How Fast Do You Type
Adsense On Twitter
Desert Island, With a Twist
Song To Work To - March 25th - Incubus - Drive
Ubuntu 8.10 Named! Intrepid Ibex
Fred on YouTube


Comments
In this article I review
In this article I review Apache and Drupal configuration changes to better control what files and directories are served and to whom they are served. I assume that you've already done the essentials. You've installed the folic acid latest versions and security patches for the OS, Apache, MySQL, PHP, and Drupal. You've picked good login passwords. You've disabled Apache and Drupal modules you don't use. You've configured your server and router firewalls to block everything but port 80, and you've run a port scanner to be sure. Finally, you've run security software like NESSUS, meridia NMAP, or Acunetix to poke at your server and recommend configuration changes.Please note:I do not discuss downloading or installing software or setting up directories, permissions, and chroot. valtrex How you do these is important, but beyond the scope of this article (see the Further Reading section for articles that cover this).I do not discuss basic Apache, PHP, MySQL, and Drupal configuration. I assume that you've already got things working and now you're ready to tighten security.This list is not exhaustive. No list could be.All of these settings have been tested on a Drupal site, but test them yourself before using them on a production site. Every site is different.
Hi, Super post, Need to mark
Hi, Super post, Need to mark it on Digg
Have a nice day
AlexAxe
Cheers AlexAxe! I'm just
Cheers AlexAxe! I'm just doing some changes to the site now, I'll have my Digg button back in place soon ;)
Post new comment