Review of Business Collaboration Platform – Bitrix24

Bitrix24 is an online business collaboration platform. Bitrix24 serves users by providing collaboration tools such as document sharing, tasking, CRM, calendaring, search, and project management. These tools integrated in a social-style environment which incorporates user profiles, liking, commenting, chat, and content sharing.

A full list of features can be viewed here Continue reading

How do I use the Google Analytics API class from the Eden PHP project to access Analytics Data?

Often APIs are a pain. However, the Eden PHP Project is here to save the day. Here I demonstrate how to access Analytics data using the Google API and Eden. Remember to set up your credentials in the Google Developers Console / Google Cloud and set permissions for your Analytics user to be accessed from the account you are authorising with. I also used krumo() to display vars. Continue reading

What is the best iPhone To-do list app that uses GTD methodology?

Review of the Walker iPhone Productivity App (with GTD methodology).

Walker is a productivity app that differs from others  because it walks you through your task management and with a  clear guidance system. It implements ‘Getting Things’ Done by David Allen, which is a life/task management system that, I believe, this app makes easier to implement and maintain. Walker’s Kickstarter project was published on july 2012 and reached its goal in the first 16 days. Check out the project’s website.

I have been interested in the GTD method since 2008 when I started using a notebook to keep track of things I was thinking whilst cycle touring to capture creative notes. The paper notebooks quickly filled up, pages feel out, they lacked visual coherence and generally became difficult to manage.
Continue reading

How Do I Use A Field Formatter To Output Fields With A Custom Format In Drupal?

A field formatter outputs a field in a particular way. Copy the following code and change ‘mysite’ to your module name. Please leave a comment or get in touch if you have any questions.

  /**
/**
* Implements hook_field_formatter_info().
*/
function mysite_entities_field_formatter_info() {
  return array(
    'mysite_entities_sm4_comments' => array(
      'label' => t('SM4 Comments'),
      'field types' => array('list_boolean'),
    ),
  );
}

/**
* Implements hook_field_formatter_view().
*/
function mysite_entities_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  $element = array();
  $path = drupal_get_path('module', 'mysite_entities');
  if ($display['type'] == 'mysite_entities_sm4_comments') {
    foreach ($items as $delta => $item) {
      if ($item['value'] == 1) {
        $element[$delta] = array(
          '#markup' => theme('mysite_entities_field_formatter_' . $display['type'], array('element' => $item)),
        );
      }
    }
  }
  return $element;
* Implements hook_theme().
*/
function mysite_entities_theme($existing, $type, $theme, $path) {
  return array(
    'mysite_promo_list' => array(
      'path' => $path . '/templates',
      'template' => 'mysite-promo-list',
      'variables' => array('items' => array(), 'view_mode' => NULL,),
    ),
    'mysite_promo_item' => array(
      'path' => $path . '/templates',
      'template' => 'mysite-promo-item',
      'render element' => 'element',
    ),
    'mysite_entities_field_formatter_mysite_entities_sm4_comments' => array(
      'path' => $path . '/templates',
      'template' => 'mysite-social-comments',
      'variables' => array('element' => NULL),
    ),
  );
}


}

How Do I Use Db Select In Drupal?

Returns a new SelectQuery object for the active database. More information available at https://api.drupal.org/api/drupal/includes!database!database.inc/function/db_select/7

Example:

$query = db_select('node', 'c')

->fields('c')
->execute()
->fetchAssoc();
var_dump($query);

$query = db_select('node','n')
->condition('n.nid','5')
->fields('n')
->fields('p');
$query->Join('field_fieldname','p','p.entity_id = n.nid');
$result = $query->execute();

while($record = $result->fetchAssoc()) {
print_r($record);
}

Where Can I Find Some Good Examples Of HTML5 Websites?

HTML5 is a markup language used for structuring and presenting content for the World Wide Web and a core technology of the Internet. It is the fifth revision of the HTML standard (created in 1990 and standardized as HTML 4 as of 1997) and, as of December 2012, is a candidate recommendation of the World Wide Web Consortium (W3C).

Here are some sites with examples of HTML5 use.

What Is The Loop() In WordPress?

The Loop is PHP code used by WordPress to display posts. Using The Loop, WordPress processes each post to be displayed on the current page, and formats it according to how it matches specified criteria within The Loop tags. Any HTML or PHP code in the Loop will be processed on each post.

if (have_posts()) : while (have_posts()) : the_post();
the_content();
endwhile;
else: _e('Sorry, no posts matched your criteria.');  endif;