';
// Show the message anchor and a "new" anchor if this message is new.
if ($message['id'] != $context['first_message'])
echo '
', $message['first_new'] ? ' ' : '';
if ($message['member']['group'] == "Super Administrator" or $message['member']['group'] == "RMRK Mod" or $message['member']['group'] == "RMRK Admin" or $message['member']['group'] == "RMRK Super Moderator") {
echo '
';
}
elseif ($message['member']['group'] == "Donator") {
echo '
';
}
else {
echo '
';
}
// Show information about the poster of this message.
// Show information about the poster of this message. Here begins the custom postbit.
echo '
';
//RMRK User Postbit menu
echo'', $message['member']['name'], ' ';
echo '
';
echo '
'. $message['member']['name']. '
';
echo '
View ', $message['member']['name'], ''s profile
Give ', $message['member']['name'], ' a comment
';
if ($message['member']['website']['url'] != '')
echo '
Visit ', $message['member']['name'], ''s website
';
if (empty($message['member']['hide_email']))
echo '
Email ', $message['member']['name'], '
';
if ($context['can_send_pm'])
echo '
PM ', $message['member']['name'], '
';
echo '
Find more posts by ', $message['member']['name'], '
';
echo '
View ', $message['member']['name'], '\'s statistics
';
echo '
';
echo '
';
// Gender icons are shown up top next to the username, in a special area.
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $message['member']['gender']['image'], '';
//close the postbit top bar and show the main postbit area, including avatar backing:
echo '
';
if ($message['member']['group'] == "Super Administrator" or $message['member']['group'] == "RMRK Mod" or $message['member']['group'] == "RMRK Admin" or $message['member']['group'] == "RMRK Super Moderator")
{
echo'
';
}
else {
echo'
';
}
echo '
';
// If the user has avatar display set to ON, Display the avatar itself:
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
', $message['member']['avatar']['image'], ' ';
//if the avatar was shown or not, close it's table.
echo'
';
// Show the member's primary group (like 'Administrator') if they have one. ##Uncomment this to enable. I have it disabled as their primary group is displayed text in a single star image.##
/* if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], ' '; */
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['group_stars'], ' ';
/*echo '
', $message['member']['post_group'], ' ';*/
// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], ' ';
// Is karma display enabled? Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '';
elseif ($modSettings['karmaMode'] == '2')
echo '
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '';
// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
', $modSettings['karmaApplaudLabel'], '
', $modSettings['karmaSmiteLabel'], ' ';
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '' : '', $settings['use_image_buttons'] ? ' ' : $message['member']['online']['text'], $context['can_send_pm'] ? ' ' : '', $settings['use_image_buttons'] ? ' ' . $message['member']['online']['text'] . ' ' : '', '';
// Show how many posts they have made.
$number = explode('.',round(pow (log10 ($message['member']['real_posts'] + ($context['common_stats']['latest_member']['id'] - $message['member']['id'])), 3),2));
$string = $number[0]. (isset($number[1]) ? ' ('. $number[1] . (strlen($number[1]) <2 ? '0' : '') .'%)' : '');
echo ' Level ', $string , ' ';
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '
';
//This finishes up the main template.
echo' ';
// Following is the bottom bar, which contains the contact info and email, online buttons, etc.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '';
// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
', ($settings['use_image_buttons'] ? ' ' : $txt[27]), ' ';
// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
', ($settings['use_image_buttons'] ? ' ' : $txt[515]), ' ';
// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
', ($settings['use_image_buttons'] ? ' ' : $txt[69]), ' ';
// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
', $settings['use_image_buttons'] ? ' ' : $message['member']['online']['label'], ' ';
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
', ($settings['use_image_buttons'] ? ' ' : $txt[69]), '
';
// End custom postbit here. Phew! Now, on to the post itself.
// Done with the information about the poster... on to the post itself.
echo '
';
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
« ', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ': ', $message['time'], ' »
';
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
Reply ';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
Reply ';
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
Modify ';
// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
Delete ';
// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
Split ';
// Maybe they want to report this post to the moderator(s)?
if ($context['can_report_moderator'])
echo '
';
// Show the IP to this user for this post - because you can moderate?
if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
echo '
';
// Or, should we show it because this is you?
elseif ($message['can_see_ip'])
echo '';
// Okay, are you at least logged in? Then we can show something about why IPs are logged...
elseif (!$context['user']['is_guest'])
echo '';
// Otherwise, you see NOTHING!
else
echo '
';
echo ' ';
// Show a checkbox for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
echo '
';
// Show the post itself, finally!
echo '
', $message['body'], '
', $message['can_modify'] ? '
' : '' , '
';
// Now for the attachments, signature, ip logged, etc...
echo '
';
// Assuming there are attachments...
if (!empty($message['attachment']))
{
echo '
';
foreach ($message['attachment'] as $attachment)
{
if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
';
else
echo '
';
}
echo '
' . $attachment['name'] . ' (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)
';
}
echo '
';
}
echo '
';
// Show "« Last Edit: Time by Person »" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
« ', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], ' »';
echo '
';
echo '
';
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
', $message['member']['signature'], '
';
echo '
';
}
echo '
';
// As before, build the custom button right.
if ($context['can_add_poll'])
$normal_buttons['custom'] = array('text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
elseif ($context['user']['is_logged'] && $settings['show_mark_read'])
$normal_buttons['custom'] = array('text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
echo '
', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' ' . $txt['topbottom4'] . ' ' : '', '
';
if ($context['can_reply']) echo' Reply ';
if ($context['can_mark_notify']) echo' Subscribe ';
if ($context['can_add_poll']) echo' Add Poll ';
echo'
';
if ($context['show_spellchecking'])
echo '
';
echo '
';
if ($settings['linktree_inline'])
echo '
', theme_linktree(), ' ';
echo '
', $context['previous_next'], '
';
$mod_buttons = array(
'move' => array('test' => 'can_move', 'text' => 132, 'image' => 'admin_move.gif', 'lang' => true, 'url' => $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0'),
'delete' => array('test' => 'can_delete', 'text' => 63, 'image' => 'admin_rem.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt[162] . '\');"', 'url' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id']),
'lock' => array('test' => 'can_lock', 'text' => empty($context['is_locked']) ? 'smf279' : 'smf280', 'image' => 'admin_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_sticky']) ? 'smf277' : 'smf278', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'merge' => array('test' => 'can_merge', 'text' => 'smf252', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),
'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start']),
'calendar' => array('test' => 'calendar_post', 'text' => 'calendar37', 'image' => 'linktocal.gif', 'lang' => true, 'url' => $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id']),
);
if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
$mod_buttons[] = array('text' => 'quickmod_delete_selected', 'image' => 'delete_selected.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" id="quickmodSubmit"', 'url' => 'javascript:document.quickModForm.submit();');
echo '
';
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post'])
echo '
';
if (empty($settings['use_tabs']))
echo '
';
echo '
';
echo '
';
echo ' ';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
echo '
';
}
if ($context['show_spellchecking'])
echo '
';
}
?>