Hey,

I am trying to change the link of the pictures to point to the User Profiles of the users instead of their guestbook.

How would I achieve it with this code?

  <div class="guestbook-author" style="float:left;">
    <?php
    if ($entry['author'] == 0) {
     print "<strong>" . check_plain($entry['anonname']) . "</strong>>";
    } else {
     print "<strong>" . theme('guestbook_user_picture', $entry['author']) ."</strong>";
    }
    ?>
  </div>

That's the code that I use for displaying the picture and the name of the comment author in the guestbook. I also use a guestbook-entry.tpl.php page to do this.

Thanks alot!

Charles
CommentFileSizeAuthor
#1 guestbook.module.patch1.48 KBjaydub

Comments

jaydub’s picture

Status: Active » Needs review
StatusFileSize
new1.48 KB

I've made this an option in the guestbook settings page in the attached patch.

hba’s picture

Assigned: Unassigned » hba
Status: Needs review » Fixed

Thanks, jaydub. I've added this to the cvs version, but haven't had time to check if it works. Feedback is welcome.

Anonymous’s picture

Status: Fixed » Closed (fixed)