Trent Wyman


Twitter integration for Drupal 6

Integrating Twitter with Drupal is very easy thanks to the module contribution from James Walker (Drupal User #1531)

Basic Drupal Twitter Setup


Drupal Imagecache applied to an image field

Here is an example of applying a Drupal Imagecache preset to the output of an imagefield within a .tpl file.

Example:

<?php print theme('imagecache', 'preset_name_here',$node->field_my_image[0]['filepath']);?>


PHP if (!empty) function

Here is a Drupal PHP example using !empty that checks to see if a particular field has content. If the field IS NOT empty, then display the contents of that field. Else, output a text string.

Example:

<?php
// Setup a variable
$crop = $node->field_cheer_three_photo_crop[0]['view'];

if(!empty($crop)){
print $node->field_cheer_three_photo_crop[0]['view'];
}else{
print 'There is no data to display';
}

?>


How to style the <hr /> (horizontal rule) in CSS

Below is a quick reference to apply styling to a horizontal rule using CSS.

hr {
margin:0px;
padding:0px;
width:190px;
height:4px;
color:#ff6600;/*-- set color for IE --*/
background-color:#ff6600;/*-- needed for FireFox & Safari --*/
border-color:#ff6600;/*-- optional --*/
}


Copyright and Registered Trademarks in Adobe Illustrator

To add a copyright symbol or registered trademark to an Illustrator document, go to Type > Glyphs to open this particular symbol pallet.

Using the Text Tool, click within the document where you want to put the symbol. Then, double click the desired symbol from Glyphs window to apply it to the document.


Firefox now supports CSS text-shadow

I've been waiting a long time for the CSS text-shadow to be supported by Mozilla Firefox. Now with Firefox 3.5, text-shadow effects can be applied to live text just as in Internet Explorer and Safari. Finally, all 3 of the top browsers support this CSS property, no longer needing to hack or create a work-around for the Firefox browser.

https://developer.mozilla.org/en/CSS:text-shadow


Search Engine Marketing 101

A couple of months ago (thanks to Mediacurrent), I had the pleasure of attending an SEM (search engine marketing) luncheon presented by AIMA (Atlanta Interactive Marketing Association). Below are notes from that luncheon.

Session Title: AIMA SEARCH SEM 101
----------------------------------

Presenters:


Add'em Atom

Add'em Atom Project Screenshot
Atomic Chemistry Tutorial
Project Description: 

Add'em AtomTM is a physical science resource consisting of Flash-based animations & user interactions designed to help students learn the concepts of atomic chemistry in a way that is fun & visually engaging. This interactivity teaches students about element properties, the Periodic Table, simple chemical compound structures, and how elements & compounds are formed.

This application works to teach students about the fundamental properties of atomic elements; the basic structure and classification system of the Periodic Table of Elements; and the simple bonding involved behind chemical compounds and their structures. Add’em Atom shows students how elements and compounds are formed on a microscopic level, through animations and user activities that involve visual art models consisting of basic shapes and simple motion graphics to visually represent such microscopic scenarios. User activities involve building basic atomic elements and simple compound structures by dragging & connecting together different components of artwork to visually create their own atomic models.

Project Goals: 

The goal of Add’em Atom is to create an interactive learning environment that simplifies the concepts of atomic chemistry in a way that entertains and inspires younger students, who may feel challenged when learning this type of subject matter.

Essentially, this is a physics resource as well as a tutorial to assist science students (Middle School & High School) in learning basic concepts behind atomic science and atomic chemistry. Through direct interaction and immersion within a graphically provided Periodic Table of the Elements, students will click through and explore the various elements shown.

While exploring the elements arranged on the Periodic Table, users should quickly learn to identify simple elements by their key physical properties (Atomic Mass, Electron-Configuration, Period Group, etc.) based upon the information they learn from the sub-section that provides animated demonstrations (mini-tutorials), that illustrate atomic concepts and processes.

Target Audience: 

The two main user groups for which this project has been designed/developed are:
- Primary users:
Science students ranging from middle school (7th & 8th grades), to junior high school students (9th – 11th grades)

-Secondary users:
Physical science teachers and others who are generally interested atomic chemistry, particle physics, and / or science in general, for their work, fun, or recreation

Benchmarks: 

The following websites have been analyzed based on similar goals or objectives to those of the Online Application being developed:

- Library.Advanced – http://library.advanced.org/
- Chemical.Elements – http://chemicalelements.com/
- Chemicool – http://chemicool.com/

Technology: 

The technology used to create this project consisted of the following:

Information Architecture:
- organization of content and subject matter such as creating sitemaps, process flows, etc.

Digital Illustration:
- to conceptualize and develop ideas for interactive artwork and visual designs for user interfaces

Vector Art:
- to convert illustrated artwork and concepts into a digital production environment (Adobe Illustrator)

Raster Art:
- to convert vector-based artwork for web delivery, in addition to adding effects & filters (Adobe PhotoShop) to the flat-looking vector graphics in order to produce images that have more depth or more 3-dimensional appearances

Animation:
- to convey physical processes, show sequencing of events, add non-linear perspectives and interactivity through action-scripting and motion graphics

Multimedia Composites:
- compose all content (animated & still images, static & dynamic text, and sounds) into singular and hybrid technological formats interchanged between Flash animations and the dynamic XHTML

Java Scripting:
- for behavioral and controlled delivery of dynamic content through user interaction with the XHTML output

Cascading Style Sheets (CSS):
- for visually formatting the layout and appearance of the web delivered content

XHTML:
- output static and dynamic content through any standard web-based browser

Announcements

Drupalcamp Atlanta Attendee

Drupalcamp 2010 Presentation

Oct. 2nd, 2010 @ Georgia Tech Research Institute
This year at Drupalcamp Atlanta, I plan to give a lecture on setting up a "Multi-Language site for Non-Programmers" using Drupal.
Learn more...


Press Release:
Michael C. Carlos Museum

Read the press release announcing the Drupal redesign of Emory University's Michael C. Carlos Museum.
View Press Release


Current weather

GA - Marietta / Dobbins Air Force Base

Broken clouds
  • Broken clouds
  • Temperature: 71.6 °F
  • Wind: Calm
  • Rel. Humidity: 88 %
  • Sunrise: 06:16
  • Sunset: 18:55
Reported on:
Thu, 09/09/2010 - 06:56
Syndicate content