This forum is for assistance with theme development.

Applying a node theme to all themes

Is it possible to have node.tpl.php or other element themeing file applied to all themes? I'm thinking of a situation where you allow users to switch themes but you want to keep content themes constant across the site. The only way I can see of doing this is to have a copy of the node.tpl.php etc. in each theme.

How to install theme that using PHPTemplate?

Try to find in this forum about that problem. But not found. So how to install any theme that using PHPTemplate because its not display in the admin-->Theme. Please help me! TQ

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.

Pages

Subscribe with RSS Subscribe to RSS - Theme development