Coding

  • warning: Creating default object from empty value in /home/propdrop/public_html/modules/taxonomy/taxonomy.pages.inc on line 34.
  • strict warning: Non-static method view::load() should not be called statically in /home/propdrop/public_html/sites/all/modules/views/views.module on line 843.
  • strict warning: Declaration of views_plugin_display::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/propdrop/public_html/sites/all/modules/views/plugins/views_plugin_display.inc on line 1877.
  • strict warning: Declaration of views_plugin_display_block::options_submit() should be compatible with views_plugin_display::options_submit(&$form, &$form_state) in /home/propdrop/public_html/sites/all/modules/views/plugins/views_plugin_display_block.inc on line 193.
  • strict warning: Declaration of views_handler_field_broken::ui_name() should be compatible with views_handler::ui_name($short = false) in /home/propdrop/public_html/sites/all/modules/views/handlers/views_handler_field.inc on line 641.
  • strict warning: Declaration of content_handler_field::options() should be compatible with views_object::options() in /home/propdrop/public_html/sites/all/modules/cck/includes/views/handlers/content_handler_field.inc on line 208.
  • strict warning: Declaration of views_handler_sort_broken::ui_name() should be compatible with views_handler::ui_name($short = false) in /home/propdrop/public_html/sites/all/modules/views/handlers/views_handler_sort.inc on line 82.
  • strict warning: Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /home/propdrop/public_html/sites/all/modules/views/handlers/views_handler_filter.inc on line 585.
  • strict warning: Declaration of views_handler_filter::options_submit() should be compatible with views_handler::options_submit($form, &$form_state) in /home/propdrop/public_html/sites/all/modules/views/handlers/views_handler_filter.inc on line 585.
  • strict warning: Declaration of views_handler_filter_broken::ui_name() should be compatible with views_handler::ui_name($short = false) in /home/propdrop/public_html/sites/all/modules/views/handlers/views_handler_filter.inc on line 609.
  • strict warning: Declaration of views_handler_filter_boolean_operator::value_validate() should be compatible with views_handler_filter::value_validate($form, &$form_state) in /home/propdrop/public_html/sites/all/modules/views/handlers/views_handler_filter_boolean_operator.inc on line 128.
  • strict warning: Declaration of views_plugin_row::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/propdrop/public_html/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.
  • strict warning: Declaration of views_plugin_row::options_submit() should be compatible with views_plugin::options_submit(&$form, &$form_state) in /home/propdrop/public_html/sites/all/modules/views/plugins/views_plugin_row.inc on line 135.
  • strict warning: Non-static method view::load() should not be called statically in /home/propdrop/public_html/sites/all/modules/views/views.module on line 843.
  • strict warning: Declaration of views_plugin_display_page::options_submit() should be compatible with views_plugin_display::options_submit(&$form, &$form_state) in /home/propdrop/public_html/sites/all/modules/views/plugins/views_plugin_display_page.inc on line 481.
  • strict warning: Declaration of views_handler_argument::init() should be compatible with views_handler::init(&$view, $options) in /home/propdrop/public_html/sites/all/modules/views/handlers/views_handler_argument.inc on line 745.
  • strict warning: Declaration of views_handler_argument_broken::ui_name() should be compatible with views_handler::ui_name($short = false) in /home/propdrop/public_html/sites/all/modules/views/handlers/views_handler_argument.inc on line 770.
  • strict warning: Non-static method view::load() should not be called statically in /home/propdrop/public_html/sites/all/modules/views/views.module on line 843.
  • strict warning: Non-static method view::load() should not be called statically in /home/propdrop/public_html/sites/all/modules/views/views.module on line 843.

Facebook Like Button for Drupal

The Facebook Like button is showing up everywhere. And while it may seem simple to put it on your Drupal nodes and pages, it's a little trickier than normal.

You can't just put a piece of javascript in a .tpl file like you can with the old Facebook Share widget, because you need to dynamically pass the URL of the current page yourself.

But it's easy to accomplish. The following is for Drupal 6.

Read Only Fields for Drupal Forms

When developing CrowdedText.com, I ran into the problem of needing read-only fields once a node had been created.  I didn't want to prohibit editing completely. Only for a few fields.

You can't just hide or disable the field, although that's a necessary step.  Anyone with a tool like Firebug would still be able to edit the html in real-time and submit the form, changing the value.  When some of your backend logic depends on the keeping these values accurate, this is a big no-no.

Don't Reinvent the Wheel - Use Open Source

Don't reinvent the wheel.  It's a cliche for a reason.  And it's true in most aspects of life, especially business.  Very rarely will you want to start from scratch - with anything.

When launching a product or starting a business, would you like to invent plastic again?  How about paper?  The pen?  Of course not.

And yet with web development, many desire to do just that.  They desire to throw away years of experience and dedicated development in favor of untested, custom code.

Syndicate content