I just wanted something like the "share on facebook" button, but to post links on my (this) blog. I thought I would have to write a module to do that but.. no, Drupal itself allows us to do that directly :)
First of all, I created a CCK content named "bookmark". Here is the exported CCK code.
Download Bookmark CCK here
Yep, I copied this from the facebook "SHARE IT" button.. :)
New theme for the under-development http://natouren.eu!
This page gives a brief overview of some of the tools you can use to make Drupal development and debugging easier.
It covers the Devel contrib module, the Drupal for Firebug contrib module and Firefox extension, the FirePHP library, and the combination of NetBeans and Xdebug.
LDAP Contact Manager is a Drupal module to perform searches and manage entries on a LDAP directory.
Code and documentations are coming.
Also have a look at: http://views-help.doc.logrus.com/
Group on groups.drupal.org dedicated to ldap-related development and modules
I'm proud to announce that the Drupal administration module for PowerDNS I was writing is now available on Drupal.org at the address http://drupal.org/project/poweradmin.
Il riferimento italiano per Drupal
Drupal.org is the official website of Drupal, an open source content management platform.
PowerAdmin is a Drupal module that provides API and a GUI to administer the configuration of a PowerDNS Name Server, with MySQL/PostgreSQL backend.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/bin/bash # (c)2009 Samuele ~redShadow~ Santi <redshadowAThackzineDOTorg> # Under GPL v3 # Please visit: http://www.hackzine.org # Download from: http://svn.hackzine.org/misc/scripts/drupal/drupal-module-from-svn.sh # samu 2009-12-30 MODNAME="$1" SVNREPO="$2" if [ "$MODNAME" == "" ] || [ "$SVNREPO" == "" ]; then echo "Usage: $0 <modname> <svnrepo>" exit 1 fi CDATE="$( date +%s )" ORIGPWD="$( pwd )" TEMPDIR="/tmp/.drupal-module-${MODNAME}-${CDATE}" mkdir -p "$TEMPDIR" cd "$TEMPDIR" echo "Exporting $SVNREPO -> $MODNAME" svn export "$SVNREPO" "./$MODNAME" |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/bin/bash # # Drupal sites cronjob runner. Useful to be put into crontab. # samu 2009-12-06 # ## --- Configuration --- CONF_SITES="/usr/local/etc/drupal-sites" # sites list CONF_LOGDIR="/var/log/drupal-cron" # logs dir ## --- End Config --- # load sites list, stripping lines that are empty or starting by # SITES="$(cat "$CONF_SITES" |grep -ve "^$\|^[^A-Za-z0-9]*#")" # create log directory if not exists if [ ! |
I`m successfully trying this Drupal module to publish post titles / links on Twitter. It`s similar to the module I planned to write a while a go, but never did it.
You can find the module here: http://drupal.org/project/twitter
I also found a problem while installing the module on PostgreSQL, since some data types used in the schema are not supported (at least, on postgres 8.3..3). I wrote a patch for that, you can find the bug reporting here: http://drupal.org/node/631972 and the patch file in the attachment.
Non so perché, ma ultimamente il modulo devel generate mi sta dando alcuni problemi.. in particolare, non riesce a creare associazioni decenti nodi generati/termini tassonomia.
Ma il tutto si può facilmente risolvere con un paio di query a livello database...
Segnalo questo post di mavimo in cui spiega come creare una "Tag Cloud" (vedi verso fondo pagina) in Drupal usando il modulo views e views_cloud.
Allego anche il codice delle due views utilizzate.
Altro modulo che sto sviluppando per Drupal!
Un'agenda indirizzi, ovviamente con campi multipli e definibili, un po' stile cck per intenderci..
Per il form, ho usato i subform, come descritto in un post precendente, mentre la struttura del database è organizzata su quattro tabelle:
..ecco qua un nuovo modulo per Drupal! :)
E' un semplicissimo browser per le pagine del manuale UNIX ('man'), cosa che trovo molto comoda, soprattutto per funzioni di ricerca ecc.. ecc..
Al momento, i sorgenti sono disponibili via SVN su http://svn.hackzine.org/drupalmodules/modules/manpages/ (in particolare si veda il branch 6.x-0.x):
svn co http://svn.hackzine.org/drupalmodules/modules/manpages/branches/6.x-0.x/ manpages
In questo post vediamo come creare dei form con campi multipli, aggiungibili dinamicamente. Per esempio, ho creato un semplice tipo di nodo, che definisce un contatto di rubrica telefonica, con nome, cognome e vari campi con occorrenze multiple.
Come prima cosa, contiamo il numero di campi da disegnare. (Il numero di campi definiti collegati al nodo, e non meno di due):
Yeah! ci siamo, finalmente ho concluso una versione utilizzabile del modulo jtooltips per Drupal.
Le nuove caratteristiche sono
Non ho ancora caricato su drupal.org, aspetto che mi diano accesso a CVS.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/usr/bin/env python """ MySQL Database Backupper Copyright (C) 2008 Samuele ~redShadow~ Santi - http://hackzine.org This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/bin/bash # # Script to create Drupal Modules # by Samuele ~redShadow~ Santi # http://hackzine.org # if [ "$1" != "" ]; then modname="$1" else echo "Usage: $0 <modulename> [<core>]"; exit 0 fi if [ "$2" != "" ]; then dcore="$2" else dcore="6.x" fi gpl=" /* * $modname - A Drupal $dcore module * Copyright (C) `date +%Y` ${USER}@${HOSTNAME} * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of th |