Closed (works as designed)
Project:
Guestbook
Version:
4.7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2006 at 15:38 UTC
Updated:
27 Jan 2008 at 23:05 UTC
Hi, I need to display the user picture outside the author div, and I just dont know if this is possible, as I´ve seen that "$author" controls the username and the user image display at the same time.
This is part of the code:
$output .= "\n<div class=\"guestbook-entry\">\n";
if ($comment_entry == $entry['id']) {
$output .= '<a name="comment-entry"></a>';
}
// author
if ($entry['author'] == 0)
$author = "<b>" . check_plain($entry['anonname']) . "</b>";
else
$author = theme('guestbook_user_picture', $entry['author']);
$output .= '<div class="entry-details"><div class="entry-author">' . $author .'</div>';
// date, email, website
$output .= '<div class="entry-date">';
if (in_array('date', $display)) {
$output .= format_date($entry["created"], "medium");
}
if (in_array('email', $display) && !empty($entry['anonemail'])) {
$output .= ' | <a href="mailto:'. check_url($entry['anonemail']) .'">' . t('e-mail') . '</a>';
}
if (in_array('website', $display) && !empty($entry['anonwebsite'])) {
$output .= ' | <a href="http://'. check_url($entry['anonwebsite']) .'">' . t('website') . '</a> ';
}
$output .= '</div></div>';
// message
$output .= '<div class="guestbook-message">'. check_markup($entry['message'], variable_get('guestbook_input_format',1)) ."</div>";
if ($entry['picture']) {
$output .= '<hr style="clear:both;" />';
}
// links
if (_guestbook_access('administer', $uid) && !$confirm_delete) {
if ($comment_entry != $entry['id']) {
$pager = $_GET['page'] ? 'page='. $_GET['page'] : NULL;
$output .= '<div class="guestbook-admin">';
$output .= l(t('delete entry'), "guestbook/$uid/delete/{$entry["id"]}", array(), $pager);
$output .= '</div>';
}
}
$output .= "\n</div>";
Right now username and picture are in the entry-author div. I need to put the picture in the message (guestbook-message) div, I suppose this is something about the theme_guestbook_user_picture function but I have no idea how could this be fixed.
Is this possible? Thanks! :)
Comments
Comment #1
amardeshbd commentedHi there....
i dont want to show the picture in the posts !
what do i need to modify there? any idea ?
I belive it should work if i dont add the picture link with output.
Will this work without causing any problem !?
Comment #2
nahhe commentedyes, that won´t cause any problem, just will not show the pics :)
Comment #3
hba commentedPlease don't change the title.
Comment #4
sunSorry, this issue has been in the queue for too long.