Drupal PO File WEB generator

Maybe you want to translate a drupal module or template, but can't find the original po file?
Do you want to create a new po file?
Simply use ther form below, and the WGenPo ("Web Drupal Po Files Generator") will give you the empty po file to fill with your translation strings.

The script - even if is fully working - is in the very early stage.
Your help (user feedback or developer improvement ) is very welcome!

Note:The idea comes from the GenPo 0.1 bash script

Paste here the module code from which create the po file

Drupal version

Drupal module code:


Ricarica la pagina con javascript

Mentre si realizza una pagina web, capita di aver bisogno di un semplice click per ricaricare la pagina. Molto semplicemente, possiamo usare il codice javascript esposto qui in basso: Se vogliamo un pulsante possiamo usare questo codice:

<form><INPUT TYPE="button" VALUE="Ricarica la pagina" onclick='location.reload()'></form>

Se invece preferiamo un normale testo cliccabile (link) possiamo usare:

<a href="javascript:location.reload()">Click per ricaricare la pagina</a>


Stop Spam from the Drupal feedback form

Sometimes may happen  that the usual boring guy will try to send you spam from the feedback form of your web site.

If you have the same problem, and your website runs on Drupal, you want want to add these few lines hack to your feedback.module code:

#do not accept feedback with links

if (preg_match("/href/i", $edit['body']))


    form_set_error('body', t('The subject cannot contain links.'));
watchdog('mail', 'Link injection [maybe spam] in feedback form subject: '.check_plain($edit['subject']), WATCHDOG_NOTICE);


Track Host Module for Drupal

$Id: README.txt,v 0.01 2007/04/03 09:50:53 finley Exp $

Track Host is a simple module for Drupal that help site publisher to follow the step-by-step navigation , tracking "how" and for"how long" anonymous and registered users browse through your web site.

Filtering information from the access_log table (host field) this module gives to you tracking of the user (IP host) navigation.

The module provides:
- a list table of the recent hosts
- a detail table with the host navigation traking
- a side block from which you'll have access to the list and detail table

Since these are information usually read from the site administrator (and/or mantainer)
it is a good idea to limit the block to the admin/* pages


-- Drupal 4.7.x core


1) copy the track_host directory into the modules directory

2) enable the 'track_host module' in drupal

3) edit admin/settings/track_host and change any other default setting depending your needs

4) enable the 'track_host block', probably to show up only on the admin/* pages



To do
- get host name from IP
- get regional localization from IP
- get client time navigation from IP

Written by:
Augusto Fagioli

(I haven't been keeping up with this sorry)

2007-04-03 Initial Release for Drupal 4.7

Syndicate content