This forum is for assistance with theme development.

Personal cv and 4.6RC

I just wanted to say that Personal theme cv placed in my themes folder breaks the admin/themes page on load up.

Drupal 4.5.2 users who want functionality of new Phptemplate engine, I have good news.

After whining about it for the last week, I somehow managed to splice all of the goodies that I want from the new (4.6) phptemplate.engine into the old one (4.5.2). The new engine has the $zebra functionality and the ability to load node-$type.tpl.php files for different node types. This engine does NOT allow for multisite config. If you are interested please contact me via my drupal contact info and I'll be sure to email it to you.

Mateo

xtemplate css question (hopefully easy)

OK, so I have this completely hacked mangled thing that I call a theme, and it's surprisingly pleasing to me given my complete lack of understanding of CSS. I am definitely adding "working knowledge of CSS" to the list of tasks once I go off active duty, but in the meantime, I have a really annoying visual element I can't figure out how to fix.

Hither is an example: http://www.sobrania.net/user/register

Theming bookreview module problems. How to properly use tables in php?

Hello all.

I am attempting to re-do how the theme_bookreview_list function is displaying my books. In template.php I have the following function to override the theme_bookreview_list function:

function phptemplate_bookreview_list() {
  $header = array(' ', array('data' => t('Title'), 'field' => 'n.title', 'sort' => 'asc'), array('data' => t('Author'), 'field' => 'b.author'));

  $sql = "SELECT DISTINCT n.nid, n.title, b.author from {node} n INNER JOIN {bookreview_authors} b on n.nid = b.nid WHERE n.type = 'bookreview'";
  $sql .= tablesort_sql($header);
  $result = pager_query($sql, 20);

  while ($node = db_fetch_object($result)) {
$output = '<table width="100%"><tr><td>';

    if ($node->title) {$output .= '<h2>'. l($node->title, "node/$node->nid"). ' - ';}
    else {$output .= '<h2>No Title';}

$output .= '</td><td align="right">';
    if ($node->author) {$output .= t($node->author). '</h2>';}
    else {$output .= 'Unknown Author </h2>';}

$output .= '</td></tr></table>';
    $rows[] = array(array('data' => $output, 'colspan' => '5'));
  }

  if (!$rows) {
    $rows[] = array(array('data' => t('No books available.'), 'colspan' => '4'));
  }

  $pager = theme('pager', NULL, 20, 0);
  if (!empty($pager)) {
    $rows[] = array(array('data' => $pager, 'colspan' => '2'));
  }

  return theme('table', $header, $rows);
}
?>

A way to style previews in your theme

If you've tried to apply a special style to node or comment previews in your theme, you've probably found that the information just isn't there to let you do it. This is unfortunate, because the similarity between a preview and a normal page view makes it easy to lose data when you forget to save after previewing.

Is it possible to make the Masthead image into a series of rotating images?

Dear forum,

I apologize for the poor title of this post. Let me try to explain what I want to do. At the moment on my site I have a masthead image that is a white neon light through a green background. Say I made copies of that masthead image and turned each copy into a different color so there was a green one, a red one, a blue one etc. Then would It be possible to have the images change every 5 to 10 seconds or so? What would it take to do that?

Any suggestions would be most appreciated.

Thanks alot

FrancisQ

Pages

Subscribe with RSS Subscribe to RSS - Theme development