This forum is for assistance with theme development.

How to catch and alter user names in template.php?

Hi all,

I've worked out how to get the html into node.tpl.php to display user points and user badges having installed their appropriate modules:

if (module_exists('user_badges')) { print user_badges_for_uid($uid); }

if(module_exists('userpoints')) { print userpoints_get_current_points($uid); }

Chameleon Theme no longer being supported?

I love the chameleon theme and have a website that has a lot of information entered into drupal 4.7. I want to upgrade my site to drupal 5.1, but the only thing that is holding me back is the theme. Chameleon looks great at first, but it is missing the user and date information at the end of a story/page and comment.

Chameleon does not have a separate "issue" section as do most other themes.

spacer image addes padding to table cell in firefox

I can't figure this out. I have a table with spacer images (transparent gifs) in table cells that causes the cell to have bottom padding. This only happens in firefox and not in IE. I'm still going through all the various style sheets, but does anyone know why this is happening? The strangest part is that it looks fine outside of the drupal theme, but inside, it gets this strange padding.

Include .js sitewide

I have two questions really.
1) I've noticed that jquery.js is not included on all pages. I've written a javascript function to fix apply the filter fix for png images in IE6 that needs to be included on all pages when my theme is being used. Is it best to write it so that it depends on jquery or better just to make it totally separate? If it's the former, how do I include jquery.js on all pages?

E-commerce Module Help Theming

Is there anyway to make to add a thumbnail to an ecommerce product? It seems goofy that there isn't a place for that. Right now I'm using upload_image to show a thumb at the bottom but on the products page there's only text links. Any ideas?

I've posted this once but if anyone could help I would appreciate it.

Hacking Chameleon/Marvin for 5.0...custom top banner?

Hi, folks! I have a design problem that I'm hoping someone familiar with Chameleon and/or Marvin can help me with.

I'm upgrading my site at YoungWizards.com as a Drupal installation. There are some aspects of the original site which I want to keep, specifically the banner at the top.

The banner itself is handled by this PHP-based image rotator from AutomaticLabs, which brings up a different banner each time. In my new Drupal installation I want to keep this feature, and keep the positioning at the top left, just as it is. But I'm having trouble figuring out how to manage this, in terms of where exactly to place the code to call the rotator.

In normal HTML, you simply call the installed rotator like this:

<IMG SRC="http://www.youngwizards.com/006699/rotator.php">

The called images live in the same directory with the script. On the present web page, I haven't bothered adding any CSS styling to this element in terms of "position: absolute;"... or anything similar, since in a normal HTML page it's the very first thing that loads, and the way it's called has been working fine.

Pages

Subscribe with RSS Subscribe to RSS - Theme development