This forum is for assistance with theme development.

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.

Good stylesheet for Pdfview?

Hi Everyone,
I was wondering if anyone had a good stylesheet they could recommend to be used with PDFView? The css that comes with this module is very basic (by the authors own comments), and sadly does not translate line breaks or even font tags into the document.

I think its a great mod but would somehow like to merge the site stylesheet with it so the content looks cleaner and consistant.

Thanks in advance,

Geoffrey

Pages

Subscribe with RSS Subscribe to RSS - Theme development