I want to make significant changes to how the guestbook is laid out because it looks awful on my site (not blaming the module... Could be conflicts with my theme). Anyway, I find it easier to work with .tpl files so I figured out how to get them. I'm posting this here in case it's useful to anyone. Should probably go in the handbook. If I have some time, I'll write it up nicer and put it there.

In your template.php, put:

function YOURTHEMENAME_guestbook_entry($uid, $entry, $comment_entry = NULL, $confirm_delete = false) {
  return _phptemplate_callback('guestbook-entry', array('uid'=>$uid, 'entry'=>$entry, 'comment_entry' => NULL, 'confirm_delete' => false));
}

Then use the .tpl file I attached.

This is just for an individual entry as that's where the problems are for me. The other theme_ functions would work in a similar fashion. Don't forget to change YOURTHEMENAME to your theme name.

Michelle

PS: the site is munging my file name... Should be guestbook-entry.tpl.php

CommentFileSizeAuthor
guestbook-entry.tpl_.php_.txt2.1 KBMichelle
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

Status: Active » Postponed (maintainer needs more info)

Hmmm... this looks pretty standard to me, and is already documented in the theming handbooks AFAIK. Can we close this issue?

Michelle’s picture

Status: Postponed (maintainer needs more info) » Fixed

LOL! Sure. This was back when _phptemplate_callback was a new and exciting thing to me. I thought I was doing something cool by explaining it. :)

Michelle

sun’s picture

Status: Fixed » Closed (fixed)

Great! Closing it now to reduce current issue queue from 3 to 2 pages. :)