This forum is for assistance with theme development.

add avatar to recent comments block?

is there a way to add user icons to the recent comments block?

I've tried a few tweaks of the SQL query so as to pull in the relevant users picture field, but this seems to add a whole lot of overhead to the process, and significantly slows things down.

there must be a more efficient way - any help appreciated.

Regions in Inthebox theme

If you want to use the box inthebox as Regions in PHPTemplate
make a file template.php and write in there

function inthebox_regions() {
  return array(
    'left'  => t('left sidebar'),
    'right' => t('right sidebar'),
    'content' => t('content'),
    'header' => t('header'),
    'footer' => t('footer'),
    'box' => t('box')
    
  );
}
?>

Then open page.tmp.php
and modified the code

				<div class="sidebar" id="main-content-right">
          				<div id="square-ads"><img src="themes/inthebox/passat_square.gif" alt="ads" /></div>
									<?php if ($sidebar_left != ""): ?><div class="sidebar" id="sidebar-left"><?php print $sidebar_left ?></div><?php endif; ?>				                  <?php if ($sidebar_right != ""): ?>
                  <div class="sidebar" id="sidebar-right"><?php print $sidebar_right ?></div><?php endif; ?>
				</div>
 <br class="clear" />  

to ---->

if ($box != ""):
print $box

endif;

if ($sidebar_left != ""):

endif; if ($sidebar_right != ""):

Theming Category Archives

Hello,

I'm new to drupal. I've got my theme to display the front page differently, different node types differently, etc. But how do I get it to theme category archives differently? I can't seem to find the hook to get it to direct to my page.archive.tpl.php.

comment left identation

Hi,
in the comment.module file the function:

theme_comment_thread_expanded($comment)

has hardcoded:

style="margin-left"

so, for instance, every RTL theme would have to override this function.

I think styling should be left outside the code & left for the CSS to handle.

Differentiate between node and taxonomy listing in page.tpl.php

I'm using Drupal 4.7, trying to figure out how to make my page.tpl.php file display $breadcrumb and $title in different places if the displayed page is either a node (article) or a taxonomy term listing.

$page==0 doesn't seem to help. Any ideas?

Bullets don't show up in unordered lists in Internet Explorer

I want to use the theme Contented7 for my site.
One problem though: Bullets don't show up in unordered lists in Internet Explorer, same for ordered lists. In Firefox, everything is OK.

You can see it yourself on http://tcp-lp-mod.sourceforge.net/ in the article "TCP Low Priority module (TCP-LP-MOD)".

Any idea how to correct this?

thanks,
Peter

Pages

Subscribe with RSS Subscribe to RSS - Theme development