This forum is for assistance with theme development.

Checkboxes and radios

I seem to be unable to theme certain form items by overriding their css classes or ids. For example I have discovered checkboxes and radio buttons have the classes .form-radio and .form-checkbox but adding these to my css file seems to have no effect and they stay white background black foreground. I have managed to theme buttons fieldsets etc but these items appear to be rather stubborn. Any documentation around here that I may have missed or do I have to accept them as they are.

regards.

Blocks Missing

I have created a new theme, and have been prepping it for Drupal 6. There's not much to it, so all I changed was putting in a .info file, and so forth. On my Drupal 6 installation, when using this theme there are many blocks missing, including Login and Navigation. They don't show up in the Blocks configuration page at all.

But when I switch to the Garland theme, they all show back up.

What would make them do this? Do I need to call them somehow? I've looked through the Garland code and don't see anything.

-micah

Access user picture in comment.tpl.php

Hello,

I wonder how to access the user->picture inside a comment.tpl.php. I want to drop the theme function and use imagecache instead. But I don't know which variables to put in. $picture delivers a picture surrounded by HTML.

  $avatar = $user->picture;
  print theme('imagecache', 'width41', $avatar, 'User Pic', 'Title',  null); 

This leads to ...nothing. No picture is shown. Any ideas?

Jquery in Themes (particularily rounded corners) problems

Hi there,

I don't seem to be able to get to the bottom of a particular problem i have with using jquery in my themes (particularily rounded corners). The rounded corners don't display ... i must be overseeing sth. Here my code. I have downloaded and added jquery.curvycorners.packed.js (http://methvin.com/jquery/jq-corner.html) into a folder drupal/sites/all/scripts/

in page.tpl.php added following

<?php print $scripts ?>

in template.php added following

drupal_add_js('sites/all/scripts/jquery.curvycorners.packed.js');

drupal_add_js(
    '$(document).ready(function() {
      $("div.whois").corner("round 10px");
    });',
    'inline'
  );

in style.css added following:

#whois {
    background-color:#dcdcdc;
    margin-top:10px;
    padding:10px;
}

in block-user-3.tpl.php (the who is online block) added following:

<div id="whois">
  <?php print $block->content; ?>
</div>

The result in the HTML output

in the header for the javascript looks like this:

mobile, handheld, drupal friendly site wanted...

I would great appreciate a bit of guidance here. I would like to create a handheld friendly version of my site. That is, pda's, mobile phones etc. and I have looked far and wide and...come up empty handed. Here is my problem. Yes, there are mobile themes on drupal...but they have there own issues. Take the mobi loader module and accompanying mobi theme. It's a great idea...but you need a .mobi domain. I don't have this and don't want to force my users to try and figure out that I have one...even if I did.

CAPTCHA for search_box

i installed CAPTCHA module and found annoying that the search_box now accompanying with CAPTCHA - Place a chanllenge.........

i m now using Zen theme. how can i fix it?

thanks.

Pages

Subscribe with RSS Subscribe to RSS - Theme development