This forum is for assistance with theme development.

Linebreaks for every form element in CVS

Throughout the whole Drupal site (CVS version), there is a linebreak afer each and every form element. This is particularely annoying in the 'Events' and 'Schedule' modules, because these have form elements for day, month, year, hour and minute. Drupal adds a linebreak between each of these, including even the colon between hour and minute.

Does anyone know how to deal with this? I briefly installed Drupal 4.5.2, and didn't see the probem there. This should probably be fixed in CVS as well, as I would consider it a layout bug.

Calling theme() in phptemplate

in chameleon theme, i could do this do get the output of quote

$output .= theme('quotes_quote', node_load(array('nid' => quotes_get_quote($the_block, TRUE))));

what is the equivalent of the same in phptemplate ie., how to mention the same in page.tpl.php

i have tried the above, no result and also removed $output again no result

Experience with PhpTal

I had recently installed phptal from cvs. I am encountering problems in adding custom function. I refered to the success story here.

i tried adding the function to a new template.php (same instruction is mentioned here too in the theme directory (tal_grey), and then calling the function from page.tal as mentioned. I get an error

Call to undefined function: test_menu() in /tmp/tpl_0_7_0_30fdeeba25be02f39337800a87c412c5.php on line 131

Need help adding a separation bar to Kubrick

Hi forum,

I'm using the Kubrick theme on my site and would like to integrate a simple separation bar (a jpg image) that would appear at the bottom of each new post on the site automatically. Is anyone familiar enough with Kubrick to know where to implement this? And what would the code be to do it (in noob language please).

Thank you very much indeed!

FrancisQ

Add another column to Manji?

I know that Manji is a single column theme, in looking at the code, I'm not able to pinpoint where I might be able to open it up for having the classic left-right columns.
Anyone have any ideas?

Lisa

Calling Drupal Functions in phptemplate.engine's template.php file

So I think I am way confused about the order in which phptemplate works. In my node.tpl.php file I want to have a div that contains the number of comments posted on a particular node. I want this to be visible on the full view as well as the view that gives me a bunch of entries and the article stubs.

So I thought I would try something like "comment_num_all($nid)" But I can't even get the $nid variable to pass through into the node.tpl.php file.

Pages

Subscribe with RSS Subscribe to RSS - Theme development