Skip to Content

Newsfeeds

Feeds: Import.io

New Drupal Modules - 14 November 2014 - 12:31pm

Provides a Feeds Parser and Fetcher for import.io data sets.

Feeds: Import.io can be used for both one-off imports or a continued stream of data from import.io, a web data platform and web scraping tool.

Categories: Drupal

Bootstrap CKEditor

New Drupal Modules - 14 November 2014 - 10:46am
Categories: Drupal

Midwestern Mac, LLC: Creating a contact form programmatically in Drupal 8

Planet Drupal - 14 November 2014 - 10:24am

Drupal 8's expanded and broadly-used Entity API extends even to Contact Forms, and recently I needed to create a contact form programmatically as part of Honeypot's test suite. Normally, you can export a contact form as part of your site configuration, then when it's imported in a different site/environment, it will be set up simply and easily.

However, if you need to create a contact form programmatically (in code, dynamically), it's a rather simple affair:

First, use Drupal's ContactForm class at the top of the file so you can use the class in your code later:

Categories: Drupal

See how top F2P spenders are shaping our industry at GDC 2015

Social/Online Games - Gamasutra - 14 November 2014 - 9:42am

Kongregate cofounder and CEO Emily Greer returns to the Game Developers Conference in March to share insight into the personalities, play patterns and spending habits of top F2P game spenders. ...

Categories: Game Theory & Design

Drupal Association News: Happy Global Training Day!

Planet Drupal - 14 November 2014 - 9:39am

It's Global Training Day and we couldn't be more excited! All across the world, people are teaching and learning Drupal, and sharing that open source love.

Global Training Days happen once a quarter, and focus on one of two curriculums:

  • "Introduction to Drupal," a full day training on the basics of Drupal. Attendees will leave having successfully built a Drupal site. It is ideal for those interested in exploring Drupal as a career path.
  • "What is Drupal?" This half-day workshop will address the basics of Drupal, and will give an overview to those interested in evaluating or implementing Drupal.

Here are some of the highlights of today's Global Training Day tweets.

The first Global #Drupal Training Day Hungary is ON! @tanarurkerem and @kuszingjanos on the stage :) cc @DrupalAssoc pic.twitter.com/DGt1yvFuPg

— Zsófi M. (@zsofimajor) November 14, 2014

We are ready #drupalday!!! pic.twitter.com/ezIIl1aNHC

— Wellnet (@Wellnet) November 14, 2014

#DrupalCampMelbourne2014 Day 1 Group Photo in sunny Melbourne! pic.twitter.com/DgFh9Wcb7I

— Drupal Melbourne (@DrupalMelbourne) November 14, 2014

Where's Global Training Day happening? This map shows you where people are learning about Drupal all over the world.

Categories: Drupal

Paul Booker: How to create Blocks in Drupal 7

Planet Drupal - 14 November 2014 - 9:28am
// $Id$ /** * @file * Implements various blocks to improve pending content workflow. */ /** * Implements hook_block_info(). */ function approval_block_info() { $blocks['pending_comments'] = array( 'info' => t('Pending Comments'), 'status' => TRUE, 'region' => 'sidebar_first', 'weight' => 0, ); $blocks['unpublished_nodes'] = array( 'info' => t('Unpublished Nodes'), 'status' => TRUE, 'region' => 'sidebar_first', 'weight' => 0, ); return $blocks; } /** * Implements hook_block_configure(). */ function approval_block_configure($delta) { $form = array(); switch($delta) { case 'pending_comments': $form['pending_comment_count'] = array( '#type' => 'textfield', '#title' => t('Configure Number of Comments to Display'), '#size' => 6, '#description' => t('Enter the number of pending comments that will appear in the block.'), '#default_value' => variable_get('pending_comment_count', 5), ); break; case 'unpublished_nodes': $form['unpublished_node_count'] = array( '#type' => 'textfield', '#title' => t('Configure Number of Nodes to Display'), '#size' => 6, '#description' => t('Enter the number of unpublished nodes that will appear in the block.'), '#default_value' => variable_get('unpublished_node_count', 5), ); break; } return $form; } /** * Implements hook_block_save(). */ function approval_block_save($delta = '', $edit = array()) { switch($delta) { case 'pending_comments': variable_set('pending_comment_count', (int)$edit['pending_comment_count']); break; case 'unpublished_nodes': variable_set('unpublished_node_count', (int)$edit['unpublished_node_count']); break; } return; } /** * Implements hook_block_view(). */ function approval_block_view($delta = '') { switch ($delta) { case 'pending_comments': $block['subject'] = t('Pending Comments'); $block['content'] = approval_block_contents($delta); return $block; break; case 'unpublished_nodes': $block['subject'] = t('Unpublished Nodes'); $block['content'] = approval_block_contents($delta); return $block; break; } } /** * A module-defined block content function. */ function approval_block_contents($delta) { switch ($delta) { case 'pending_comments': if (user_access('administer comments')) { $nbr_comments = variable_get('pending_comment_count'); $result = db_query("SELECT cid, subject FROM {comment} WHERE status = 0 limit $nbr_comments"); $items = array(); foreach ($result as $row) { $items[] = l($row->subject, 'comment/'.$row->cid.'/edit'); } return array('#markup' => theme('item_list', array('items' => $items))); } break; case 'unpublished_nodes': if (user_access('administer nodes')) { $nbr_nodes = variable_get('unpublished_node_count'); $result = db_query("SELECT nid, title FROM {node} WHERE status = 0 limit $nbr_nodes"); $items = array(); foreach ($result as $row) { $items[] = l($row->title, 'node/'.$row->nid.'/edit'); } return array('#markup' => theme('item_list', array('items' => $items))); } break; } } Tags: URL: paulbooker / gist:5420976
Categories: Drupal

Bootstrap Frontend Experience

New Drupal Modules - 14 November 2014 - 8:35am
Categories: Drupal

Paul Booker: How to create an autocomplete form element in Drupal 7

Planet Drupal - 14 November 2014 - 8:22am
<?php function demo_menu() { $items['demo-autocomplete-test'] = array( 'title' => 'Test autocomplete', 'page callback' => 'drupal_get_form', 'page arguments' => array('demo_form'), 'access arguments' => array('view published content'), 'type' => MENU_NORMAL_ITEM, ); $items['demo-autocomplete-engine'] = array( 'page callback' => 'demo_autocomplete', 'access arguments' => array('view published content'), 'type' => MENU_CALLBACK, ); return $items; } function demo_form($form, &$form_state) { $form = array(); $form['colors'] = array( '#title' => t('Colors'), '#type' => 'textfield', '#maxlength' => 60, '#autocomplete_path' => 'demo-autocomplete-engine', ); $form['submit'] = array( '#type' => 'submit', '#value' => 'Submit', ); return $form; } function demo_autocomplete($text) { $results = array(); $query = db_select('colors', 'c'); $query ->condition('c.color', '%' . db_like($text) . '%', 'LIKE') ->fields('c', array('color')) ->orderBy('color', 'ASC'); $colors = $query->execute(); foreach ($colors as $row) { $results[$row->color] = check_plain($row->color); } drupal_json_output($results); } Tags:
Categories: Drupal

MariqueCalcus: Prius is in Beta like Drupal :-)

Planet Drupal - 14 November 2014 - 8:05am

Alongside the long awaited Drupal 8 Beta release, we have also updated our first Drupal 8 theme. We haven't include many new features but we have tried to clean up its code and have improved our starter kit. Anyway, let's dig into the latest new features we have discovered with the first Beta releases of Drupal 8. Feel free to check out the code on drupal.org or read our dedicated blog entry if you want to find out more about our first Drupal 8 theme. If you can wait to see the result, take a look at our online demo.

Read More...
Categories: Drupal

Revisionism

New Drupal Modules - 14 November 2014 - 7:48am

Revisionism helps to manipulate entity revisions, particularly useful for modules that would like new revisions to be created without being immediately published.

Categories: Drupal

Blue Drop Shop: Failing is Important: Drupal Camp A/V Kit Update

Planet Drupal - 14 November 2014 - 6:17am

When I learned BADCamp wasn't going to be recording sessions, I jumped at the chance to field-test the camp record kits I'm working on. After all, I was confident I fixed the audio equation and was going to start talks with the Drupal Association about next steps.

The current recipe for the kit is a Hauppage HD Rocket PVR for the screen capture and the Zoom H2N voice recorder as the microphone. Add to that a handful of dongles and converters to cover HDMI in/out for the PVR, and you're good to go.

Walking in to BADCamp, I was feeling great. I'm a big advocate for session records and I would be covering three rooms. Pretty cool, right? 

Wrong.

Throughout day one of sessions, a couple laptops had connection issues and had to bypass recordings, but overall things appeared to be going smoothly. It wasn't until the end of the day when copying files off the thumb drives that I noticed many recordings were 0k mp4 files, primarily from the main room. This was the most disconcerting, because every indication was that things were working.

On this, I have a couple ideas, but no solid understanding of why the files didn't write. That was the easiest room in terms of handshake between PVR and projector, plus there was a dedicated A/V crew that was helping hook up laptops.

When we tested at Fox Valley's camp, the laptop was typically disconnected by the time I made it to the rooms to swap out equipment. I suspect that disconnecting the device before hitting the stop button and waiting long enough for the files to write may kill the save. This one will be easy to test.

Projectors were also an issue. In the main space, none were HD and all were different flavors of Sony. Some hooked up just fine, while others squeezed the output. The Saturday-only keynote room was loving it. 

And then there were presenter laptop issues. There were a few older VGA-only laptops. One refused to work with the VGA to HDMI converted, while one worked for about 15 minutes before failing off and on, mid-presentation. One of the A/V techs suggested that maybe there is not enough USB power on the laptops to handle both the PVR and the converter, so a powered USB hub may be in order. Most Macbooks were fine, but a handful gave output with a very green tint to it.

No surprise, HDMI in/out is proving to be more of a hurdle than originally anticipated. In addition to HDMI in, the PVR also has an option to accept component video. It's likely that converting VGA out from a laptop to component video in to the PVR will be a safer bet. So the question becomes whether I can convert the HDMI out of the PVR to VGA for the projectors.   

All in all, this was an enormous fail. That said, this was the absolute best time for it to happen. My goal is to build a system that can handle the majority of the random that a camp will throw at it. 

I'm looking forward to testing the next iteration.

Tags:
Categories: Drupal

Ledger Cost Center

New Drupal Modules - 14 November 2014 - 5:14am

This module adds the ability to handle cost centers for the Ledger module. Cost centers are connected to account entries and a view is provided where cost centers are listed.

The module currently doesn't support Ledger books.

Categories: Drupal

Tyler Frankenstein: Build a Mobile App to Geo Locate Nearby Places with Drupal

Planet Drupal - 14 November 2014 - 4:30am

In this tutorial (for DrupalCamp Ohio 2014) we'll explore how to build a mobile application and website that can geo locate places near our current position. The nearby location results will be displayed on a map, and will allow us to click on a result item to view its complete details.

The website will be powered by Drupal 7. The mobile application will be built using DrupalGap, which is powered by PhoneGap and jQuery Mobile. Let's get started!

Categories: Drupal

InternetDevels: Welcome us in Lviv! New office of InternetDevels company

Planet Drupal - 14 November 2014 - 4:11am

Long time ago in a galaxy far far away… Hold on, it was precisely 7 years ago, 15 November, 2007 in Lutsk, when the InternetDevels Drupal development studio was founded. The company has made a long way since then: overcomed lots of obstacles to gain the respected position at web development market; established number of contacts and connections; made significant contribution to the world’s Drupal community; taken over new development technologies, like Symfony framework… But there’s always something to do!

Read more
Categories: Drupal

How Much Time do You Spend Engaged with Gaming as a Hobby? With GMing?

Gnome Stew - 14 November 2014 - 12:00am

Over on Google+, I asked a question that seems particularly well-suited to Gnome Stew: What does your engagement with gaming as a hobby look like? Specifically, how many hours do you spend on different elements of that engagement, and how does that shake out percentage-wise?

Right now I spend about 14 hours a week engaged with the hobby in some way. Here’s my current breakdown, sorted by time spent:

  • Playing 50%
  • Reading 29%
  • Publishing 7%
  • Blogging 7%
  • Researching 7%
  • Buying 0%
  • Design 0%
  • GMing 0%

My “buckets” aren’t intended to be exhaustive; rather, they’re personal. You might choose different categories. And of course my stats change regularly: When I’m running a game, GMing spikes; when I’m deep into editing a new Engine Publishing book, publishing goes up.

What got me thinking about this topic was that 0% under “Buying.” I’m trying to dial buying stuff way back, including gaming books, and historically a large part of my engagement with the hobby has been through collecting. I love collecting books, and I miss that aspect of the hobby.

But on the flipside, by doing less of that I’m not only saving money, I’m freeing up time every week that currently goes into playing. Looking back over 30 years of gaming, 50% is probably not my all-time high for playing, but I suspect it’s a record if I look at just the past decade.

So how about it: What does your engagement look like? And are you happy with it? Tell us about it in the comments!



Categories: Game Theory & Design

Business of Gaming Retail: The $2 Adventure

RPGNet - 14 November 2014 - 12:00am
A Deal at Twice the Price.
Categories: Game Theory & Design

Development Environment

New Drupal Modules - 13 November 2014 - 10:51pm
Module goal
Categories: Drupal

Jvector Map pack

New Drupal Modules - 13 November 2014 - 9:59pm

Placeholder for the Jvector map pack for use with the Jvector module, once it's out in a stable release. It aims to contain maps of all countries with administrative regions, gathered from .

Categories: Drupal

Congratulations! You're a game dev lead...Now what?

Social/Online Games - Gamasutra - 13 November 2014 - 12:55am

A guide from Insomniac's Mike Acton: "Congratulations! You're a lead. Now what? In general, whatever skills you've demonstrated that got you to this point aren't the same things you'll be doing from here on out." ...

Categories: Game Theory & Design
Syndicate content


Google+
about seo