western willow ventures inc.

eye on the net
  • Home
  • Contact
  • Web
  • Graphics
  • ARDi
  • Samples
  • Terms of Service
  • Fun
  • Privacy

Search

Home

drupal

How do I Increase the memory available to Drupal in a hosting environment.

Tue, 2010-05-11 19:31 |  Franco

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

Franco's blog |  Login to post comments |  352 reads |  Tags: drupal, hosting, memory

Messing with Dates in Drupal

Mon, 2010-03-08 16:15 |  Franco

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);

Franco's blog |  Login to post comments |  207 reads |  Tags: drupal, php

CVS Drupal 6 HOWTO

Tue, 2009-09-29 07:16 |  Franco

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:

  • http://www.redleafmedia.com/blog/converting-existing-drupal-site-cvs
Read more
Franco's blog |  Login to post comments |  415 reads |  Tags: cvs, drupal, howto, install

Disabling the annoying On Hover Edit links in a Drupal View

Sun, 2009-07-19 16:38 |  Franco

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.

Franco's blog |  Login to post comments |  1119 reads |  Tags: annoyance, drupal, views

Building a Ubuntu 8.10 Drupal Virtual Appliance

Sun, 2009-06-21 00:05 |  Franco

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:

Read more
Franco's blog |  Login to post comments |  309 reads |  Tags: drupal, ubuntu, virtualbox

My Favorite Drupal Modules (Postgres friendly)

Thu, 2009-04-30 07:05 |  Franco

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

Franco's blog |  Login to post comments |  213 reads |  Tags: drupal, modules

New Discoveries in Drupal for WWVi

Tue, 2009-04-28 07:13 |  Franco
  • Well, a few new crazy ideas this week: Access your content while permissions honor a taxonomy. A use case for this is regional weather clerks can only make regional weather entries, or a hay river moderator can only make nodes with taxomony hay river. This is what the TAC Lite module: http://drupal.org/project/tac_lite does for your drupal. Permissions access that respect a taxonomy.
  • Next up is the technique for embedding views. Imagine a node with 3 different views inside it!
  • Read more
    Franco's blog |  Login to post comments |  228 reads |  Tags: discoveries, drupal, embed, php, tac lite, views

    Popular content

    Today's:

    • Contact
    • ready for the oven
    • Alexandra Falls, NWT

    All time:

    • Contact
    • Web
    • ARDi - Aerial Research Drone One

    Last viewed:

    • Contact
    • Web
    • How it works

    Navigation

    • Login
    • Album photos
    • Contact form
    • Feed aggregator
    © 2010 Western Willow Ventures Inc.

    Designed by Heidi Selzler.