Theming breadcrumbs

Theming breadcrumbs in drupal is extremely easy, simply using the theme_breadcrumb hook

1
2
3
4
5
6
7
8
9
10
function mytheme_breadcrumb($breadcrumb) {
  if (!empty($breadcrumb)) {
    $lastitem = sizeof($breadcrumb);
    $crumbs = '<div id="breadcrumbholder"><b>Location : </b>';
    
    
    $a=1;
    foreach($breadcrumb as $value) {
        if ($a!=$lastitem){
         $crumbs .= '<p>'.$value.'martin</p>

Theming imagecache content

The more you get into drupal the more you find that it isnt as module as you would hope. I just spent the afternoon trying to find a solution to all my image uploads appearing at the bottom of my posts (Im using image cache with CCK imagefield). For templating this isnt where I would like my images to appear. The main issue is that the relevant string is enbriled in the $content variable.

The solution to get around the problem initially I thought it was the $vars['field_imagename_rendered'] = ''; the %vars vairable coming from the $node.

Straight up rotation about a center point

Some rotation around the center point straight forward to do

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
var hold:MovieClip = new MovieClip();
var r1:red = new red();
 
addChild(hold);
hold.addChild(r1);
 
//r1.x = 200
hold.rotation = 50
 
hold.x = 150
hold.y = 150
         
r1.x = (r1.width/2)*-1 
r1.y = (r1.height/2)*-1 
                                 
addEventListener(Event.ENTER_FRAME, onEnterFrame);
 
 
var i:int = 0;
function onEnterFrame(event:Event):void{
        
        
        hold.rotation = i
        i= i+1;
        }

Something for your next presentation

Wow all I can say is its but a while since I posted anything so much so Im starting over. Been working some web projects over the last few months in Drupal but Im hoping to get back into doing more actionscript.