This forum is for assistance with theme development.

Apparent CSS problem. IE vs FireFox

I've been customizing the wonderful Sky Theme by changing a few things in the page.tpl.php and style css files. One thing I've done is add a Flash header in place of the default jpeg css background.

Heres the site:

http://www.danbraun.com/drupal/

The problem I'm having is that in Firefox, the header seems to be pushing the rest of the content down a few pixels. However, this only happens in Firefox. In Internet Explorer, it looks correct.

Hide teasers from 'preview'

Hi,

I want to hide teasers for being shown in 'preview' mode.
Why?
1. Teasers don't get used (in this case)
2. Teasers sometimes break page layout when previewing, due to invalid HTML, when the autogenerated teaser contains non closing HTML tags.

If someone can please tell me how?

Thx,

Kees

Changing table layout

In a previous post, I wrote that I had found a solution for formatting the user permissions table, as it was displaying too wide for my design so that it showed in the vertical rather than the horizontal using the following code:


// defining an function to act as an adaptor between form_render
// and drupal_render functions, if and only if it 'form_render' doesn't already exist

if (!function_exists('form_render')) {
function form_render($content) {
return drupal_render($content);
}
}

function phptemplate_user_admin_perm($form) {
foreach (element_children($form['permission']) as $key) {
// Don't take form control structures
if (is_array($form['permission'][$key])) {
$row = array();
// Module name table row
if (is_numeric($key)) {
$row[] = array('data' => form_render($form['permission'][$key]), 'class' => 'module', 'colspan' => '2');
// Module permissions table rows
}
else {
$row[] = array('data' => form_render($form['permission'][$key]).$module_name, 'class' => 'permission');
$data = '';
foreach (element_children($form['checkboxes']) as $rid) {
if (is_array($form['checkboxes'][$rid])) {
$data[] = '

'.form_render($form['checkboxes'][$rid][$key]).' '.$form['role_names'][$rid]['#value'].'

';
}

How to put username as block title like Drupal.org has

Is there a way to do this in the admin section ? I didn't see it. I want to setup a user block like here on Drupal with the username being the block title.

php if (!is_front) does reverse of what I thought it should

I am trying to make a metatag show on my front page but not on other pages. I have added the following snippet to the head section of my page.tpl.php file:

 <?php if (!$is_front):?>
  <meta name="webagogo-verify" content="xxx=" /> 
  <?php endif; ?>

The metatag is printing in all the pages except the frontpage; which is the opposite to what I want. What do I need to do to reverse the situation?

[ edited by: VeryMisunderstood; added code tags so HTML would not be filtered out ]

CSS Problem - Driving Me Insane

Hi all,

I'm currently developing a website as seen here:
http://dev.freespiritresortdarwin.com.au/

The theme is a hacked up version of Zen (one of the older releases). The problem I've got is that there is a 2px padding/margin underneath each of the menu items on the left. What's driving me insane is that this shouldn't be there. What's interesting is this spacing between items doesn't appear in IE, so I'm assuming it's some sort of style that is ignored by IE.

Pages

Subscribe with RSS Subscribe to RSS - Theme development