Archive for 2009 December

  • List of Publically accessible drupal sites you can play around with

    2009
    18
    Dec
    2

    Here's a list of sites for drupal developers to play around with.

    HTML Comments without moderation

    • www.themallblog.com
    • www.eatsleepandcode.com
    • www.layt.net

    Anonymous node editing

    • mature-ip.eu/node/115/edit
    • drupal.kldp.net (Its all Korean I dont know what all is possible)
    • drupal.x73.ch
    • proves2.iws.es/drupal
    • emusic.mozdev.org/drupal
    • www.news7newslinc.net
    • futuregrid.org
    • www.aidsvancouver.org
    • jennycrumiller.com
    Read More

  • Detect in form_alter if the node submitted is added or edited

    2009
    15
    Dec

    When you want to alter a form on Drupal, it is useful to detect if the form being submitted is to add a new node or edit an existing node. To detect if a form is being added or submitted, check the
    $form[<content-type>]['nid']['#value'].
    Example :
    $form['book']['nid']['#value'].
    If the value is new, the node is being added.
    If the value is numeric, the node with nid as the number is being edited.

    Anyone got better ideas ? Smiling



  • Making symbolic links on Windows xp using junction from sysinternals

    2009
    14
    Dec

    Symlinks is a utility that allows two paths to point to the same set of files and subfolders. This is a handy utility on linux which lets you point one path on linux to another path. To do achieve the same functionality on Windows XP, software called junction can be used. provided by SysInternals.

    Here is the help from the junction.exe

    D:\>junction /?
    Junction v1.05 - Windows junction creator and reparse point viewer
    Copyright (C) 2000-2007 Mark Russinovich
    Systems Internals - http://www.sysinternals.com

    Read More

  • Mall Blog XSS in Comments

    2009
    11
    Dec
    8

    So you came from the The MALL blog, this is because of opened out HTML comments on the MALL blog.
    The MALL blog has full html support in its comments, which is a dangerous feature.

    More sites :

    • www.eatsleepandcode.com
    • www.layt.net
    • mature-ip.eu : Any nodes can be edited on this site, wierd!!! Fix it ASAP


  • Installing Google Chrome on Ubuntu 9.10

    2009
    09
    Dec

    Google Chrome on Linux Ubuntu

    Installation

    Click Here to install Google Chrome on Ubuntu.



  • Perl Script to send Free SMS to any mobile number in INDIA using way2sms

    2009
    02
    Dec
    22

    The following script sends SMS to any number in INDIA using the free service provided by Way2Sms.com
    Requires WWW::Mechanize and Compress::Zlib libraries.

    Please remember to fill the username and password in the fields that is mentioned in the script.

    Updated code on 25th April 2010. If you face errors use the new script.

    #!/usr/bin/perl
     
    use WWW::Mechanize;
    use Compress::Zlib;
     
    my $mech = WWW::Mechanize->new();
     
    my $username = ""; #fill in username here

    Read More

  • Showing similar content nodes on Drupal

    2009
    01
    Dec

    To show similar content nodes on drupal you have to install the similar module. After installing the similar module

    • goto admin/build/block
    • Drag the Similar Entries module

    OR

    If you want to integrate the similar content to the node body, call the similar_content theme function.  print theme('similar_content', $node); on node.tpl.php

    Read More

  • Firefox 3.5 Embarrassing Error Message

    2009
    01
    Dec
    2

    Firefox Embarrassing

    That was an embarrassing error message Grinning