By default, if an anonymous user comments on some content in your drupal site, your comments box will show something like Submitted by Guest (not verified). The user may have left a username, so we would like to use that instead.
Posted by Mr PHP on October 30, 2012
Quick code snippet, just drop this into clearcache.php and then load it in your browser.
Posted by Mr PHP on April 30, 2010
This php code can be used in a drupal block to display the most popular searches on your site.
Posted by Mr PHP on August 2, 2007
If you want to use a view to get the power of pagers but you need it to render in a block then follow this guide.
Posted by Mr PHP on July 27, 2007
This code snippet will allow you to only display a block on the node types you select. Simply paste into the PHP options.
Posted by Mr PHP on July 25, 2007
This example module will provide a form where you can enter your name and upon submission will display your name as a message on the following page. It is very basic but will give you a start to making your first module.
Posted by Mr PHP on July 21, 2007
This example will show you how to choose which node types use the TinyMCE module.
Posted by Mr PHP on July 5, 2007
This code snippet will put the node body into a CCK Field Group for selected node types.