drupal
How do I Increase the memory available to Drupal in a hosting environment.
This is something I have to do frequently so I am posting it here so I dont have to search for it!
Increase PHP memory limit (4 methods)
The one I use most is to use my php.ini file or do it inside the drupal settings.php file.
settings.php:
ini_set('memory_limit', '96M');php.ini:
memory_limit = 16M
Messing with Dates in Drupal
Dates and how they are used in drupal is a PITA.
this snippet of code helps to remember the easy way of moving dates back and forth in and out of timestamp format
$today['raw string'] = '2010-03-09 13:00:00';
$today['unix']=strtotime($today['raw string']);
$today['array']=getdate($today['unix']);
$today['YYYY-MM-DD HH:MM:SS']=date("Y-m-d H:i:s",$today['unix']);
$today['drupal-default']=format_date($today['unix']);
dpm ($today);
CVS Drupal 6 HOWTO
The following walkthrough is just a boiled down version of the great info found at the links below, this howto does the following:
Setups a CVS based drupal using version 6 dev.
puts the non cvs files and folders into your home directory and softlinks them into the CVS drupal folder. this includes:
- sites/default/settings.php
- sites/all/libraries
- sites/default/files
The following resources are very helpful:
Disabling the annoying On Hover Edit links in a Drupal View
Ok, Who is a stunned sob? Me thats who, I cant possibly tell you how long I have been annoyed, irradiated, frustrated with the little annoying and interfering edit/clone/export fields that pop on hover when an admin moves thier mouse near the title of a View in Drupal. Well, I was feeling pretty stupid when I was reading a post by the author who was chastising a girl for editing a the views.views.php.tpl file when there is a config option to disable these little buggers. IT can be found in views tools. not an intuitive place for a config option, but it exists and man do I love it.
Building a Ubuntu 8.10 Drupal Virtual Appliance
Download and install VirtualBox - http://www.virtualbox.org/wiki/Downloads
Start with Ubuntu server 8.10 cdrom in the drive (or ISO) - http://www.ubuntu.com/getubuntu/download-server
Create a new Vbox VM Ram to 512, disable floppy, enable cdrom passthrough, turn on PAE/NX
set vrdp to on, accept the default port
set network to bridged and choose a working NIC/Wireless in your host.
on boot choose minimal virtual machine (f4)
on install turn on Postgresql, LAMP, Tomcat and OpenSSH
After boot:
Choose install Guest Additions in the Vbox Gui for the VM
then on the vm:
My Favorite Drupal Modules (Postgres friendly)
The following list of Drupal modules is my chosen suite of tools for deploying drupal based business application and web solutions. And now in no particular order:
FCKeditor - A WYSIWYG editor with spell check capability,
rules - add business logic to drupal,
views - a reporting engine for drupal,
TAC Lite - apply taxonomy in a securoty context
advanced help - Provides additional help and hooks to help
helpinject - Glues advanced help and drupal books to make popup help anywhere in the site
feedapi & feedapi_mapper - Provide a way to generate nodes from rss feeds
New Discoveries in Drupal for WWVi
Popular content
All time:
Last viewed: