This forum is for assistance with theme development.

How to get this php snippet to show thumbnails if available?

I got this snippet from the handbook but no one is answering my question. I suspect the title of the article might be the issue so I'm posting this here hoping someone will respond.

How can I get this to show with thumbnails (if available) or maybe even a teaser instead?

Easy way to let a customer modify his theme?

I have a customer who doesnt know much about HTML let alone stylesheets but I want him to be able to modify his theme for his drupal website. He will want to do things like change the width of the menus for example. I'm wondering what the easiest way for him to do this without getting him to learn css.

Customising Forms

Hello,

I would like a little push in the right direction to help with customising forms. I've been reading documentation for a few hours and I've experimented a little and I'm fluent in php etc.

I'd like to cutomise some of my forms by placing labels and fields in tables (for example). I've used theme_form_element and theme_form but this gets a little messy on some forms that I don't need to alter.

How can I modify individual forms like the login block or ecommerce for example? Should I use hook_form_alter?

Thanks in advance,
Rimian

Show some drupal features in other engines

Hello everybody,

First of all, I would like to thank all the users, who helps each other. I found here a lot of useful stuff, but this time I am asking for help.

So I have 3 engines. Drupal (root directory), shop system (/shop directory) and forum(/forum directory). I would like to take away from Drupal some features such as primary links, searchbox, site name (all of them together consist the header of the portal)

Need help squashing an IE bug

I've got an annoying IE 7 (possibly 6, too, but I haven't tried yet) bug on http://couleeregiononline.com/ . If you look at the login block at the top of the main content, the background comes and goes. It also takes out the top part of the background on the first node. This doesn't happen in Firefox, so I'm assuming it's some glitch in IE that I need to put in a hack for. I thought it might be the "peekaboo" bug but I read the description of that and it talks about floats and there's no floats in the login block.

Turning primary links into a horisontal dropdown list w/just CSS

Back when I used 4.7 I had no problem converting my primary links into a unordered list. Now in 5.0 however, I can't get this to work.

So back in the 4.7 days I did something like this:

<?php
print '<ul>';
foreach ($primary_links as $link) {
   print '<li>'. $link .'</li>';
}
print '</ul>';
?>

And your primary links are all set to be in a unordered list with additional

  • and sub
      's
    • 's(cildren of children..see an eg. under).

      Now in 5.0 however this is an issue for me.

      According to documentation, the right way is(to output primary links):

      <?php
      print theme('links', $primary_links);
      ?>

      ok, this gives me the primary links. But not the children of those links.

      Apperantly I was missing something...

      <?php
      print theme('links', $primary_links, array('class' =>'primary_links', 'id' => 'navlist'));
      ?>
      

      but no luck.

      So looking at the html output(eg turn of styling under firefox), and you can see the unordered i clean html. Would look something like this. But that is not the case with my primary links. And this is how I want my primary links to appear with no styling:

  • Pages

    Subscribe with RSS Subscribe to RSS - Theme development