This forum is for assistance with theme development.

Taxonomy Icons in CVS

I'm new to PHP so I'm not sure how to do this. I made some nifty .gifs to represent the taxonomy terms on my website. I use Drupal CVS with Xtemplate and it seems like a couple lines of PHP could change the taxonomy link on a node to a taxonoxony link with a .gif.

I've looked at Polder which seems to have that feature but I think it's the old style of theme. I've checked out the Node_image but it doesn't want to work.

It seems like this can almost be hardcoded -- try to replace the link with a link and gif if the picture has the right name.

Any ideas how to start?

xtemplate and textarea problems

When typing the first letter into a textarea box on any create content page the text area window expands. On my modified theme, it expands completely out of the browser window. Even on -this- site it expands a good 15 pixels. Anyway to fix this? Works fine in netscape. Perhaps a better class declaration for this?

Easily duplicatable. IE 6... try submitting a response to this. When you type first letter in body, keep eye on right edge of text area.

How to make page same as node title?

I'm using 4.3.2 and would like to make the page title the same as the node title. I notice the Drupal site is currently doing this, but on my 4.3.2 version with whichever theme I try (e.g. Marvin, XTemplate or the hacked version of Polder I use), the page title matches the node title for about 2 levels in, and then reverts to the site title.

Any clues? Or is this something that's changed in HEAD?

thx! michael

Problem with Interlaced Theme

When I was doing development and testing with Drupal and the Interlaced theme, everything was great! My hat off to the wonderful development and support. However...now I have a small problem. My ISP is masquerading my DNS, so my URL is really something else...I believe they call it cloaked. However, http://www.longanberry.com resolves to http://www2.longanberry.com:7228/ . I think that it's a frame cloak. But now the site is messed up.

Image Module: Tip for aligning thumbnail pics in albums

I'm using Drupal 4.3.2, with Image Module 4.3.

By default, the image module is set to shift the thumbnail text to left while it centers the thumbnail images. What this means is that if you only have one or two images in an album, the thumbnail and thumbnail title will be out of alignment -text left, imaged center.

To fix this, open the image.module with a text editor and goto line 1360. Look for - align=\"center\ - and change the "center" to left. This will cause your thumbs to shift to the left, over the text. Things will look tidy again.

By the way:

Trying to hide title and author on static pages

Hi,

I'd like to be able to hide the 'title' and 'submitted by' lines on static
pages. To do that I modified the xtemplate.xtmpl file to dynamically remove
the 'title' and 'submitted by' lines on static pages. I tried to do this with
the following script:

<!-- BEGIN: node -->

<div class="node">

<?php

if ($node->type != 'page') {

echo '<div class="title"><a href="' . {link} . '">'
. {title} . '</a></div>';

echo '<span class="author">Submitted by ' . {author} . ' on
' . {date} . '.</span>';

echo '<span class="taxonomy">' . {taxonomy} . '</span>';

}

?>

<div class="content">{content}</div>

<div class="links">&raquo; {links}</div>

</div>

<!-- END: node -->

Problem with this latter approach is that it's not getting processed by the
php engine. My when testing this page forum entry the following output is generated:

Node Title | Site Title :( -- note: same as browser title

submitted by John Doe on dateX }?>:(

Ok, when I view source the entire php block is still present in the page sent
to the browser. That makes me thing that this change isn't being processed by
the php engine. Am I correct, and how do I work around this problem if so?

Pages

Subscribe with RSS Subscribe to RSS - Theme development