Computed Field

Computed Field is a module that lets you add a computed field to custom content types. You can choose whether to store your computed field in the database, or simply have it calculated upon view. You can also choose whether to display the field, and how to format it. The value of the field is set using PHP code so it can draw on anything available to Drupal, including other fields, the current user, database tables, etc. The drawback of this is of course that you must be PHP-savvy to use it.

Recovering the administrator password

There are several methods to recover the Drupal administrator ("user 1") password. DrupalConsole and drush provide commands to recover and manage users passwords. If you do not use DrupalConsole or drush you can recover the password via mail.

Recover password with DrupalConsole

DrupalConsole offers several ways of recovering the administrator's password.

How to use an SQL snippet

An SQL snippet is one more more statements of SQL (Structured Query Language), a relatively standard language for querying databases. An SQL-enabled database engine, such as MySQL or PostgreSQL, will interpret a sequence of statements (queries) and execute them. Statements can request data, insert or update existing data, or alter the structure of the database. Because SQL statements can change (e.g., completely destroy) your database, one must be very careful in executing SQL snippets. Therefore, consider this an advanced topic. You have been warned.

Configuring Apache and PHP for Drupal in a Shared Environment

These are some simple guidelines for setting up Drupal on a classic Linux-Apache-MySQL-PHP (LAMP) stack that provides a fair amount of security for the rest of your system.

PHP Configuration

To start, some common PHP configuration options can be optimized. On some systems, these settings may already be set, but it never hurts to add them yourself just in case.

PHP settings can be controlled in a number of ways. If you have access to the php.ini configuration file (usually found at /etc/php.ini), you can simply edit this file to cause system-wide changes. If you'd prefer to make these changes just for your Drupal installation, however, the best place to do so is in your Drupal installation's settings.php file.

  1. First, increase PHP's memory limit to avoid getting out-of-memory errors when you begin to add a few modules. These errors may look something like this:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 30720 bytes) in /path/to/drupal/modules/system/system.module on line 1022

  2. In your php.ini file, include a line that reads: memory_limit = 16M. Or…

Privatemsg: An internal messaging System

The Privatemsg module allows users to send messages to each other without having to share their e-mail addresses. Once the module has been enabled, an inbox link will appear in the navigation menu. "Write to author" links are included in posts, allowing users to write private messages instead of commenting openly. Allowing users to communicate directly with each other is an important part of community building.

Pages

Subscribe with RSS Subscribe to RSS - Advanced