nerd afdelingnerd afdeling

Generic JavaScript function for opening popups

  /**
   *
   */
  function custom_popup(link, options) {
Tags JavaScript, Front-end
Install Webmin In Ubuntu 12.04

To install webmin in Ubuntu 12.04, open terminal and add the following repository:

1- Edit /etc/apt/sources.list file

sudo vi /etc/apt/sources.list
 
Tags Ubuntu, webmin, terminal
Search contents of files using the Terminal

find / -type f | xargs grep 'some text'

Tags terminal, command line
Fixing imagecache on IIS

When having trouble getting the imagecache module to work in IIS create a .htaccess file in sites/default/files containing:

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.73
 
#SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
#Options None
#Options +SymLinksIfOwnerMatch
 
# ----
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
Tags code, htaccess, IIS
Configurable custom block

<?php
// Declare block to Drupal
/*
 * Implements hook_block_info()
 */
function MY_MODULE_block_info() {
Tags block, php
Add starting level 2 to Nice menus

<?php
function THEME_NAME_preprocess_nice_menus_build(&$variables) {
Tags php, code, Drupal

Pagina's