• RESUME
  • LOGIN

balanced scale media

  • blog
  • projects
  • services
  • contact
Home › Blogs

boz's blog

Generate Word Documents With PHP

boz — Sun, 01/29/2012 - 16:45

It turns out you have to do a lot of digging online to find some quality solutions for generating Microsoft Word documents in PHP. Both of these products have their quirks, but its usually all in how you setup your template. PHP Word http://phpword.codeplex.com/ This is a nice PHP library for updating doc and docx documents.
  • PHP
  • Add new comment
  • Read more

Delete CCK Inactive Fields

boz — Sat, 01/28/2012 - 07:08

Inactive fields occur when active fields controlled by a feature are deleted from the feature and the feature is reverted on a database where the fields deleted are currently active. Here's how to delete them.
$fieldname = "";
 db_query('DELETE FROM {content_node_field} WHERE field_name = "%s"', $fieldname);
 db_query('DELETE FROM {content_node_field_instance} WHERE field_name = "%s"', $fieldname);
  • Drupal
  • Add new comment

Delete Nodes From A Certain Date in Drupal

boz — Thu, 11/24/2011 - 20:07

I wrote this snippet to clear out some nodes that I had imported that ended up being duplicates. I thought I would share.

$time = mktime(0,0,0,11,23,2011);

$result = db_query('SELECT * FROM node WHERE created > %d', $time);
while ($item = db_fetch_object($result)) {
  node_delete($item->nid);
}
  • Drupal
  • Add new comment

Automated Node Titles Without Auto Node Title

boz — Thu, 10/06/2011 - 14:04

I am a features user and if you are too then you will share my frustration when you find aspects of other modules that are not exportable, i.e. not capable of being packaged in your feature. Such is the case with the Auto Node Title module. However, this is to be expected right? Ctools module provides the api for making things exportable and we should know not every developer will go ahead and implement this in their module. So back to our discovery of the non-exportable. When we get to this point there are several options.

  • Drupal
  • Add new comment
  • Read more

Drupal Camp Iowa Ajax Example

boz — Sat, 09/17/2011 - 10:37

This is the example module I wrote for Drupal Camp Iowa. It demonstrates simple ajax requests inside a Drupal 7 custom module. You can find my slides for the presentation here. Enjoy.
  • Drupal
  • Add new comment
  • 1 attachment

Get Paid To Learn Drupal!

boz — Fri, 08/05/2011 - 07:50

Balanced Scale Media, LLC is beginning the search for a qualified PHP developer to learn Drupal and take part in the deveopment of Drupal projects.

Job Description:

Learn Drupal by doing!  Be able to develop custom modules and custom themes for Drupal 6 and 7 based on requirements documentation and design mockups.  Work hours are open.  Work is part time as needed.  

Requirements:

 

  • Drupal
  • 1 comment
  • Read more

Presenting "JavaScript Guidelines : When and When Not to Script"

boz — Wed, 07/20/2011 - 12:27

I've been asked to present on proper use cases for JavaScript in web development at the Iowa Drupal Users Group next Monday July 25th 2011. The over-user of JavaScript in web applications is the main issue. My talk will hopefully provide a clearer perspective on how to use JavaScript as a powerful front end development tool while holding on to good coding practices, design patterns, and performance. http://groups.drupal.org/node/163384
  • Drupal
  • 1 comment

Drupal Form Alter on a Node Reference Widget

boz — Mon, 07/18/2011 - 14:53

My latest battle with Drupal was overriding a select box that was a node reference. Intuitively I tried to simply update $form['#options'] with my array of custom data. No deal. After experimenting with about five ways to implement #after_build on both the form and the field, I realized that the type of a widget is something like 'nodereference_select' instead of just select. Switching the type back to 'select' allowed me to make the change. Wow. Lost a day to that one.

  • Drupal
  • 1 comment
  • Read more

The Paradox Of Drupal

boz — Fri, 07/08/2011 - 09:24

What is the paradox of Drupal? That often, the complex tasks are simple and yet the trivial tasks are difficult.

  • Drupal
  • Add new comment
  • Read more

Programmatically Creating Users in Drupal with Profile Fields

boz — Fri, 06/10/2011 - 10:16

I learned from this comment on the api that user_save() will not save data to your profile_values table unless your profile field has the "Visible in user registration form" checkbox checked. Save yourself some pain.

  • Drupal
  • Add new comment
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • next ›
  • last »
Syndicate content

Recent Posts

  • Generate Word Documents With PHP
  • Delete CCK Inactive Fields
  • Delete Nodes From A Certain Date in Drupal
  • Automated Node Titles Without Auto Node Title
  • Drupal Camp Iowa Ajax Example
  • Get Paid To Learn Drupal!
  • Presenting "JavaScript Guidelines : When and When Not to Script"
  • Drupal Form Alter on a Node Reference Widget
  • The Paradox Of Drupal
  • Programmatically Creating Users in Drupal with Profile Fields
more

Topics

  • Android
  • Apace
  • Aptana
  • Bazaar
  • Browser
  • Code
  • Drupal
  • Eclipse
  • Flex
  • HTML 5

Archive

  • February 2008 (1)
  • May 2008 (1)
  • July 2008 (3)
  • December 2008 (2)
  • January 2009 (2)
  • March 2009 (3)
  • April 2009 (5)
  • May 2009 (1)
  • July 2009 (1)
  • August 2009 (3)
more

Links

 

  • blog
  • projects
  • services
  • contact

© 2012 Balanced Scale Media, LLC. All Rights Reserved.