Austin Meetup on Tue, 7/3/07, 7-9 pm @ Four Kitchen Studios. Topic: Theming Your Drupal Site, Part 2

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Walt Esquivel's picture
Start: 
2007-07-03 19:00 - 21:00 US/Central

Who

Calling all Central Texas Drupalers!
Meetups are very informal and Drupal users of all levels - new users to expert users - are encouraged to attend and participate. Be sure to introduce yourself to the group.

What

Austin Drupal Users Group Meetup!
As agreed at our 6/5 meetup, we'll discuss "Theming Your Drupal Site".

When

Tuesday, July 3rd. 7-9 pm.

Where

Four Kitchen Studios
8701 Shoal Creek Blvd Ste 303
Austin, TX 78757
Office: 512-454-6659

A very warm "Thank you!" goes out to David Strauss and Four Kitchen Studios for allowing us to meet at their new offices. David has provided us directions and mentioned you should "Feel free to bring food, drink, and laptops."

Why

The Austin DUG wants YOUR participation and your fellow Drupalers want to meet you, make new friends/professional contacts, and learn about how you're using Drupal.

Sign Up

Sign up by adding your "Yes, I'll be there" comment below. It is courteous and helps in planning purposes by letting both the host and the venue know how many folks will be attending.

Comments

Nirvana

stefanwray's picture

Where is Nirvana so I can download that theme and try it out?

Nirvana is on its way

Todd Nienkerk's picture

We're in the process of thoroughly vetting and testing Nirvana before we release it publicly. ("Real" work has snuck up on us yet again.)

Here's our to-do list prior to release:

  • Layout testing in IE6, IE7, and Safari on Windows XP and Windows 2000
  • Performance optimization for all functions in template.php
  • Figuring out a better way (than an internal @IMPORT line) to include additional CSS files so they're processed using the Drupal's built-in CSS aggregator

A live version of Nirvana can be seen at drupal.fkdemos.com.

Todd Ross Nienkerk
Editor, That Other Paper | Co-founder, Four Kitchen Studios

Todd Ross Nienkerk
Digital Strategist and Partner
Four Kitchens: Big ideas for the web
IRC: toddross

Unofficial Nirvana release

Todd Nienkerk's picture

Here is it: http://groups.drupal.org/node/4999

Todd Ross Nienkerk
Editor, That Other Paper | Co-founder, Four Kitchen Studios

Todd Ross Nienkerk
Digital Strategist and Partner
Four Kitchens: Big ideas for the web
IRC: toddross

first one in line, last one to dine

texas-bronius's picture

Yes! I am definitely heading down for this one. Last presentation was such a hit... see you soon
(If anyone is reading this from ~Bryan/College Station, please feel free to pm me for a carpool)

Todd Nienkerk's picture

Go to root/includes

Open your theme.inc file.

Look for the theme() function on line 161. Find line 170. It should look like this:

<?php
return call_user_func_array($functions[$function], $args);
?>

Add this line directly above it (and comment out the original line):

<?php
   
return '<!-- begin ' . $functions[$function] . ' -->' . call_user_func_array($functions[$function], $args) . '<!-- end ' . $functions[$function] . ' -->';
//    return call_user_func_array($functions[$function], $args);
?>

This will output code like this in your HTML source:

<!-- begin theme_athemefunction -->[OUTPUT]<!-- end theme_athemefunction -->

Todd Ross Nienkerk
Editor, That Other Paper | Co-founder, Four Kitchen Studios

Todd Ross Nienkerk
Digital Strategist and Partner
Four Kitchens: Big ideas for the web
IRC: toddross

Displaying Theme Functions

Rod Cole's picture

Todd, again, thank you so much for the class last night. I am still a beginner at this but the class was very helpful.

I really appreciate your taking your time to help us.

You showed us a trick with Firefox that allowed one to highlight a section of a web page and display the code. My notes on that are unclear so would you mind telling me again?

I downloaded coda and that editor is incredible. I wish I hadn't bought BBEdit but I am probably going to purchase coda as well.

Thanks

Rod

Walt Esquivel's picture

I looked into Coda and found out it's designed only to work on a Mac. :( I have a new Windows PC. :) Regardless, here's a nice write-up on Coda. I also looked into BBEdit and I see that it's the leading professional-strength HTML and text editor for the Macintosh. So, can anyone name a few similar programs that work on Windows PCs? Also, is there an open-source alternative to Coda, BBEdit, etc., that will work on Windows PCs?
EDIT: I came across Wikipedia's Comparison of text editors, which provides a nice list of text editors by OS support, document interface, basic features, etc.

As to "a trick with Firefox that allowed one to highlight a section of a web page and display the code", go ahead and, in Firefox, highlight a section of a web page. Then, right-click on that selection with your mouse. Then, click on "View Selection Source". Another screen should pop up that shows you the code. "View Selection Source" is mentioned about half-way in this document.

Walt Esquivel, MBA; MA; President, Wellness Corps; Captain, USMC (Veteran)
$50 Hosting Discount Helps Projects Needing Financing

Walt Esquivel, MBA; MA; President, Wellness Corps; Captain, USMC (Veteran)
$50 Hosting Discount Helps Projects Needing Financing

good editors in windows

texas-bronius's picture

Walt-
I stand firmly behind Edit Plus as my choice text editor. Code highlight with custom syntax files, integrated sFTP for remote edits, project files organizer, code folding, regex find/replace.

I can't let a post on editors go by without mentioning the incredible Beyond Compare which does file comparison on text, binary, and even visually compares images by overlay/diff! Comparison lets you move files, lines, or edit in-line on either of two or three-way compared files. It, too, has FTP integrated (but not sftp-- use tunnel to workaround) to do remote file comparison on the fly. This thing reigns king when upgrading drupal or moving between development/production directories/servers.

-bronius

Check out Zend Studio

jhallers's picture

For PC users, check out Zend Studio for an alternative to Coda. An added bonus is that it includes a debugger. And, for those dabbling with PHP coding itself, the Zend Framework should be on the short list as well as a library you may well want to be using.

  • Jim

Eclipse + PDT + Subclipse +

michaelfavia's picture

Eclipse + PDT + Subclipse + Zend Debugger = Great Drupal IDE with syntax highlighting, code formatting, code completion, full debugging capability for stepping through execution, etc.

PDT is the new Eclipse extension that Zend Studio will be built on in the future. Written by Zend as well the folks who brought you the PHP engine.

Firebug = Better alternative to native firefox HTML inspection (better than web developer toolbar even).

If anyone needs help setting up a dev environment just let e know it isnt too involved of a process.

http://www.eclipse.org/
http://www.zend.com/pdt
http://subclipse.tigris.org/
https://addons.mozilla.org/en-US/firefox/addon/1843

my picks

Matt V.'s picture

For Windows text editors, I like PSPad, which is freeware. On the open source front, you may want to check out Notepad++.

Eclipse is definitely worth looking into too, but expect to invest some time getting up to speed. To make the setup a little less daunting, you may want to check out the Easy Eclipse project, which offers several pre-configured bundles of Eclipse plugins. However, since Eclipse just released an upgrade in the last few weeks, Easy Eclipse isn't yet at the latest version.

And since someone mentioned diff/merge utilities, I really like WinMerge, which is open source.

Thanks fellas! Excellent info!!!

Walt Esquivel's picture

Kudos to all for excellent feedback and tips!

With a Windows PC emphasis:

Comparison of text editors
EditPlus
Notepad++
PSPad
(various others; Eclipse is not listed, but it does include a text editor)

Comparison of file comparison tools
Beyond Compare
Eclipse
WinMerge
(various others)

Comparison of integrated development environments (IDE)
Eclipse
Zend Studio
(various others)

By far, the most helpful app I've seen that integrates a text editor, a file comparison tool, a debugger, Subclipse, is an IDE, and is open source is EasyEclipse for PHP. The "Comparison of IDE" above is a bit misleading because it lists Eclipse as a Java IDE and Zend Studio as a PHP IDE, but obviously EasyEclipse has put together a very nice PHP IDE.

EasyEclipse for PHP contains the tools needed to start developing PHP code: the PHPEclipse IDE, some database tools, as well as Subclipse providing connectivity to Subversion.

Thanks again to all for the excellent tips! So many interesting things to explore and learn about, that's for sure! :)

Walt Esquivel, MBA; MA; President, Wellness Corps; Captain, USMC (Veteran)
$50 Hosting Discount Helps Projects Needing Financing

Walt Esquivel, MBA; MA; President, Wellness Corps; Captain, USMC (Veteran)
$50 Hosting Discount Helps Projects Needing Financing

"View Selection Source"

Todd Nienkerk's picture

The trick I used is called "View Selection Source," and it only works when you've installed the DOM Inspector for Firefox. (IIRC, you can only select this option when you first install Firefox. I don't think you can add it later on. You may have to reinstall Firefox and select "Custom" or "Advanced" options during installation.)

Select the text you want to view the source for, right-click, and select "View Selection Source." It's literally that easy, but you need to have DOM Inspector installed.

Todd Ross Nienkerk
Editor, That Other Paper | Co-founder, Four Kitchen Studios

Todd Ross Nienkerk
Digital Strategist and Partner
Four Kitchens: Big ideas for the web
IRC: toddross

Another interesting Drupal theming article

mymaestro's picture

This IBM DeveloperWorks page, part of a 15-some-odd part article on using Drupal, shows a step-by-step process for setting up your PHP editor and developing a theme.
IBM DeveloperWorks articles are usually of very high quality, and easy to understand; this series of articles is what convinced me to choose Drupal over other other CMS options.