Steve Krueger's blog
Add Block Regions to your User Profile page in Drupal 5 and 6
Aug
2008
Here's a small snippet to allow the output of blocks in your user profiles. This is assuming that you are currently over-riding the user page with the following code:
Update!
I've added code for both Drupal 5 and 6, take a look.
Drupal 5
<?php
/**
* Catch the theme_user_profile function, and redirect through the template api
*/
function phptemplate_user_profile($user, $fields = array()) {
// Pass to phptemplate, including translating the parameters to an associative array. The element names are the names that the variables
// will be assigned within your template.
/* potential need for other code to extract field info */
return _phptemplate_callback('user_profile', array('user' => $user, 'fields' => $fields));
}
?>(Code from: http://drupal.org/node/35728 )
and have your user_profile.tpl.php named as so.
Settings up your block regions:
First we'll slip into our theme's template.php file and make sure we create a new region.
Designers Guide to jQuery: Drupalcamp Vancouver Presentation
May
2008
Thanks to all that attended my session for Drupalcamp Vancouver. We had a much bigger turn out that expected and ended up having to move into the big room. I've attached the slides here as well as the link to both tutorials. Both JS files are linked in the tutorials at the footer.
Accordion Tutorial:
http://www.stevekrueger.com/jquery-accordion-tutorial
"Coda" tutorial:
http://www.stevekrueger.com/jquery-accordion-tutorial/index2.html
And here are the slides:
Drupalcamp Vancouver: jQuery for Designers and Drupal Theming
May
2008
So Drupalcamp Vancouver is right around the corner and I'm sitting here preparing for 2 of my sessions: Designers Guide to jQuery and Drupal Theming. Both sessions are focused towards beginners as well as designers, but as always, all are welcome to attend and participate in discussion.
The jQuery session will be back-to-back with the Developers Guide to jQuery lead by a collegue of mine, Katherine Bailey. I will be covering the very basics of jQuery for web designers who are interested in utilizing the potential of jQuery but are over-come by the learning curve of having to learn a programming language. Believe me, it's easy! I'll also be doing a live tutorial as well as some simple implementations of jQuery animations within Drupal.
Our Drupal Theming session, lead by Mark Yuasa and myself (and maybe Hubert), will be an overview of taking a design to a functioning drupal theme. If you happened to miss our theming session in January and wanted to attend, this will be the one to be at.
Hope to see some new faces and meet new people! See you then.
Update:
Here's my post on the slides from this presentation. Please leave comments and questions in that post and not this one.
http://stevekrueger.com/braingarden/2008/05/10/designers-guide-jquery-drupalcamp-vancouver-presentation
Vancouver League of Drupalers: Making Diamond Sparkle - Forums & The Business Objects Community Site
Mar
2008
Tonight's the Vancouver League of Drupalers monthly meetup. If you haven't already heard, drop by the office at Raincity Studios for some free Drupal lovin'.
Start:
2008-03-27 18:30 Canada/Pacific
Join
us at 6:30pm on Thursday March 27, 2008 at Raincity Studios for the
Vancouver League of Drupalers March meeting. This month's feature
presentation: Making Diamond Sparkle - Forums & The Business Objects Community Site with Tony Chang from Business Objects and Angus Pratt from Pratt Web Services.
We'll also have a mini-case study on the SurDel Girls Soccer website by Andrew Tuline and, as always, general Q&A on any and all things Drupal.
Date: Thursday March 27th, 6:30pm
Location: Raincity Studios, 1 Alexander Street, Suite 400 in Gastown. [Map]
Cost: There is no charge and all are welcome
For those who don't need to leave right away there's typically a more social discussion at a local pub afterwards.
Vancouver Drupal Camp - May 9-10, 2008
Mar
2008
So heads up for all that are interested in attending Drupalcamp in Vancouver. The details bellow:
Date: May 9-10, 2008
Where: Friday sessions at SFU Wosk Centre for Dialouge (Hasting and Seymour), Saturday sessions at Workspace (21 Water St., Gastown)
Who:You and about 80 other people (first come, first served - stay tuned for registration mid-April)
How Much: About $20 probably* - that'll get you 2 lunches and an eco-friendly t-shirt (*subject to change)
Hope to meet and see some of you awesome Vancouver Drupalists!








