Skip to main content

Wrong Return-Path fix

Posted in

Emails sent from Drupal have the Return-Path set to the server name rather than the sender of the email.

This module fixes the issue

http://drupalmodules.com/module/return-path

although this ought to be fixed in drupal core rather than having a module to do it.

All you have to do is install it there is nothing to configure.

 

Timestamps

Posted in

All times are stored in Drupal using the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).

This is not easy to interpret for human beings

I've made a little script to compare timestamps with the current time

 

Featured Content Module

Posted in

The Featured Content Module look like it could be useful sometime & the developers site has interetsing stuff including SEO.

http://www.kristen.org/content/new-drupal-featured-content-module

Trying Organic Groups

Posted in

This page has useful info http://drupal.org/node/483234

eg...

Hide blocks when viewing a node that is connected to a group

This PHP snippet, when placed in a block's page specific visibility settings, will display a block only on pages that are not connected with a group:

CiviCRM constituent relationship management

CiviCRM is web-based, open source, internationalized, and designed specifically to meet the needs of advocacy, non-profit and non-governmental groups.

  • CiviContribute - Online fundraising and donor management, now including pledges and personal campaign pages
  • CiviEvent - Online event registration and event management
  • CiviMember - Online signup and membership management
  • CiviMail - Personalized email blasts and newsletters.
  • CiviGrant - Simple grants management.
  • CiviCase - Integrated case management.

http://drupal.org/project/civicrm // http://civicrm.org/

Script SQL para pasar los usuarios de un drupa a otro en el mismo servidor

Posted in

Para migra usuarios de Drupal 6 a 7

 

insert into DB_DRUPAL_7.users(uid,name,pass,mail,theme,signature,signature_format,created,access,login,status,timezone,language,picture,init,data)

SELECT uid,name,pass,mail,theme,signature,'filtered_html' as signature_format,created,access,login,'1' status ,timezone,'und' as language,'0' picture,'0' as init,'' as data FROM DB_DRUPAL_6.users WHERE status = '1' AND uid > 1 ORDER BY uid ASC;

hide a user profile depending on role or a custom field

Posted in

collection of php snippets allow you to hide/show users based on user roles or a custom profile field.

http://drupal.org/node/45873

not sure if they work for later versions of Drupal

Changing all the table prefixes

Posted in

If you ever regret having used a particular prefix for your drupal tables this php script is the perfect thing for changing them all. (You'll have to edit your settings.php afterwards of course!)

Originally from http://ruleant.blogspot.com/2009/03/rename-multiple-tables-in-mysql.html

Cloudflare

Cloudflare seems to work by being your DNS nameserver and filtering out bad traffic before it ever reaches your server. Their own site isn't that informative about what it actually does. Too much hype, too little information. Netcraft writes about them, but it doesn't sound too promising.

 

Protect email address from spam

SpamSpan module http://drupal.org/project/spamspan

After installing & activating the module you have to add it to you input formats. Look at the readme.

The catch is if you run a site that is not in English. [at] & [dot] are not useful for non-javascript users. Currently you can configure the [at] but not the [dot].

To do that go to (eg) /admin/settings/filters/2/configure
and change the Replacement for "@" setting.

Syndicate content