This forum is for assistance with theme development.

Drupal 7 block hook after preprocess and before render with all blocks and block classes

I'm searching for a hook that runs between hook_preprocess_block() and the render function in Drupal 7. This hook needs to contain all the blocks pre-rendered and the blocks classes in an array.

Tips of hooks that handle this?

Custom user-register-form.tpl.php not working in Admin

Hi,

I have created a custom layout for my page by setting the tpl file in my custom module then placing the tpl file in my theme directory. Everything works perfectly for users. The problem is, when I am logged in using the Admin interface and try to add a user I get the following error message:

Warning: include(/u/s/sim-one/www.sim-one.ca/sites/all/modules/simone_forms/user-register-form.tpl.php): failed to open stream: No such file or directory in theme_render_template() (line 1495 of /u/s/sim-one/www.sim-one.ca/includes/theme.inc).
Warning: include(): Failed opening '/u/s/sim-one/www.sim-one.ca/sites/all/modules/simone_forms/user-register-form.tpl.php' for inclusion (include_path='.:') in theme_render_template() (line 1495 of /u/s/sim-one/www.sim-one.ca/includes/theme.inc).

And this prevents me from creating users.

One thing I noticed is the error message says:

Warning: include(/u/s/sim-one/www.sim-one.ca/sites/all/modules/simone_forms/user-register-form.tpl.php): failed to open stream: No such file or directory in theme_render_template()

This is strange because :
/u/s/sim-one/www.sim-one.ca/sites/all/modules/simone_forms
is where my module file is located, but the tpl file it's referring to is actually here:
/u/s/sim-one/www.sim-one.ca/sites/all/themes/sim_one/templates

Altering a form field with CSS

Hello this might be trivial but I would love some guidance on how to reference a field on a form using CSS. I've googled it but I haven't found a good example I can learn from. For example if I had a contributed module with a field in a form $form['test']['reference_me'] = array( //values) how would I reference this field? Would it be dependent on the values within that array?
Thanks

div tags around the form elements

I have themed my form, everything works fine but drupal renders

tags around every input field, how to get rid of them?

Change theme path?

How would I change a themes path?

Thanks!

Two side by side blocks breaking the footer layout.

I am using a bartik theme and have got a couple of blocks in the footer. One floated to the left, and another to the right. I want them to be aligned so they are top aligned.

The following code makes the blocks display perfectly in IE, but in FF block-5 is not displayed inline with block-3, instead it is pushed down, for the height of block-3.

#block-block-3 {    
    float: left;    
}
#block-block-5 {    
    float: right;        
}

The following code however, positions the blocks perfectly in FF, but in IE it adds around 750px of horizontal white spage under the (default dark grey Bartik) footer.

#block-block-3 {    
    float: left;
    position: absolute;    
}
#block-block-5 {    
    float: right;        
}

What am I doing wrong? How do I get the two blocks to display correctly in both browsers without introducing the extra scrolling and white space under the footer in ie8?

This is the html from source code, for the footer.


Pages

Subscribe with RSS Subscribe to RSS - Theme development