This forum is for assistance with theme development.

PHPTemplate - different pages to different modules?

Hi,

I'm building a PHPTemplate theme, and I wish it to create a different page for each module that is displayed.
For example:
If i'm on the front page, I want it to display the sidebar_left, sidebar_right and region 1 from flexiblock (with no body content).
If i'm on /node/x (where x is a number), I want it to display the sidebar_left and the node module's content.
If i'm on /forum, I want it to display region 2 from flexiblock, and the forum page.

Theme Graphic Not Displaying in IE

I've encountered a strange problem with the graphics from a theme not displaying in IE but displaying fine in Netscape. The URL for the graphics is www.mysite.com/themes/mytheme/graphic.gif, but should be www.mysite.com/webdev/themes/mytheme/graphic.gif. The theme has src= property for the img tag that begins with /theme, but even removing the leading slash didn't help. What could possibly cause this? And, how to fix? Thanks.

box_grey template displays '0' top left

On both my browsers (IE & Firefox), the box_grey template displays a '0' at the top left of the screen, as does its more colourful offspring box_cleanslate. Anyone have any idea why this might be so? BTW, I don't have a logo.
The reason I ask is that I'd like to use it as a model to develop a theme. Or is there a 'better' theme that uses the phpTemplate engine that I should use as a model?
As an aside, I was sure I posted this yeaterday but can't find the post. Must have been dreaming!
Puzzled.

Using Flash in the header

Hello Everyone,

I am having a problem with flash displaying in IE. The same flash displays fine in Firefox. My question is for the placement of the swf file as far as what directory to place it in. Right now I have it in the grey box directory is this correct and if so what else could be causing it to dislay in firefox but not IE.

functions in smartytemplate.php

I'd like to use custom functions in my smarty theme so I added them to the smartytemplate.php file in my theme-root. Taking hints from the snippet posted here, I came up with the following:

smartytemplate.php:

function smarty_register_functions() {
  return array('bla' => 'do_smarty_assign');
}
function do_bla($params, &$smarty) {
  $smarty->assign('tester', 'test successful');
}

node.tpl

Problem with white space in the header div

Hello everyone,

I am having a problem using a table inside the header div to display the images for my header. There is white space between each td and i don't know what is causing this. I have cellpadding and spacing set to 0 and there is not space between the img tage and the td tag. Has anyone had this problem before if so how did you fix it. Thank You

Pages

Subscribe with RSS Subscribe to RSS - Theme development