Closed (fixed)
Project:
Guestbook
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
5 Jun 2007 at 01:43 UTC
Updated:
8 Oct 2007 at 11:21 UTC
Jump to comment: Most recent file
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
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | guestbook.module.patch | 1.48 KB | jaydub |
Comments
Comment #1
jaydub commentedI've made this an option in the guestbook settings page in the attached patch.
Comment #2
hba commentedThanks, jaydub. I've added this to the cvs version, but haven't had time to check if it works. Feedback is welcome.
Comment #3
(not verified) commented